Skip to content

McpProtocol

Defines the MCP protocol implementations that an McpServer can support.

3 exports Added in v4.0.0 Source

Models

ProtocolAdapter type

Added in v4.0.0 Source

An implemented MCP protocol that can be supplied to McpServer.

Signature

type ProtocolAdapter = Internal.ProtocolAdapter<
"2025-06-18",
RpcGroup.Rpcs<typeof McpSchema.ClientRpcs>,
RpcGroup.Rpcs<typeof McpSchema.ClientNotificationRpcs>,
RpcGroup.Rpcs<typeof McpSchema.ServerRequestRpcs>,
RpcGroup.Rpcs<typeof McpSchema.ServerNotificationRpcs>
>;

ProtocolVersion type

Added in v4.0.0 Source

The MCP protocol versions implemented by this release.

Signature

type ProtocolVersion = ProtocolAdapter["protocolVersion"];

Protocols

v2025_06_18

Added in v4.0.0 Source

The MCP 2025-06-18 protocol implementation.

Signature

declare const v2025_06_18: ProtocolAdapter;