MCP TypeScript SDK (V2)
    Preparing search index...

    Additional initialization options.

    type ProtocolOptions = {
        debouncedNotificationMethods?: string[];
        enforceStrictCapabilities?: boolean;
        supportedProtocolVersions?: string[];
        tasks?: TaskManagerOptions;
    }
    Index

    Properties

    debouncedNotificationMethods?: string[]

    An array of notification method names that should be automatically debounced. Any notifications with a method in this list will be coalesced if they occur in the same tick of the event loop. e.g., ['notifications/tools/list_changed']

    enforceStrictCapabilities?: boolean

    Whether to restrict emitted requests to only those that the remote side has indicated that they can handle, through their advertised capabilities.

    Note that this DOES NOT affect checking of local side capabilities, as it is considered a logic error to mis-specify those.

    Currently this defaults to false, for backwards compatibility with SDK versions that did not advertise capabilities correctly. In future, this will default to true.

    supportedProtocolVersions?: string[]

    Protocol versions supported. First version is preferred (sent by client, used as fallback by server). Passed to transport during connect().

    Runtime configuration for task management. If provided, creates a TaskManager with the given options; otherwise a NullTaskManager is used.

    Capability assertions are wired automatically from the protocol's assertTaskCapability() and assertTaskHandlerCapability() methods, so they should NOT be included here.