mcp-use TypeScript API
    Preparing search index...

    Interface WithMcpUseOptions

    Options for withMcpUse.

    interface WithMcpUseOptions {
        basePath?: string;
        entry?: string;
        mcpDir?: string;
        projectRoot?: string;
        viewsDir?: string;
    }
    Index
    basePath?: string

    MCP route mounted by the application.

    "/api/mcp"

    Optionalentry

    entry?: string

    Authored MCP server entry, relative to projectRoot.

    "mcp/server.ts"

    mcpDir?: string

    Conventional MCP source directory containing the entry and views/.

    "mcp"

    projectRoot?: string

    Next.js project root.

    process.cwd()

    viewsDir?: string

    Explicit views directory, relative to projectRoot.