langchain.js
    Preparing search index...

    Interface MCPToolsetOptions

    Options for creating an MCP toolset.

    interface MCPToolsetOptions {
        cacheControl?: BetaCacheControlEphemeral;
        configs?: MCPToolConfigs;
        defaultConfig?: MCPToolConfig;
        serverName: string;
    }
    Index

    Properties

    cacheControl?: BetaCacheControlEphemeral

    Create a cache control breakpoint at this content block.

    configs?: MCPToolConfigs

    Per-tool configuration overrides. Keys are tool names, values are configuration objects.

    defaultConfig?: MCPToolConfig

    Default configuration applied to all tools in this toolset. Individual tool configs will override these defaults.

    serverName: string

    Must match a server name defined in the mcp_servers array in call options.