mcp.transport

mcp.transport — opt-in transport wiring for the MCP SDK.

import mcp; exposes only the curated public API (protocol types, McpServer / McpClient, the UDA / reflection layer, and the error builders). Server / client transport plumbing — stdio, Streamable HTTP, the SSE channel, session management, the OAuth-proxy mount, and the draft transport helpers — is brought in explicitly with import mcp.transport;.

Modules

coordinator
module mcp.transport.coordinator
Undocumented in source.
duplex
module mcp.transport.duplex
Undocumented in source.
oauth_proxy_mount
module mcp.transport.oauth_proxy_mount

HTTP mount for an OAuthProxy (basic/authorization §Authorization Server Discovery + §Dynamic Client Registration; RFC 8414 / RFC 7591 / RFC 9728).

peer_roundtrip_test
module mcp.transport.peer_roundtrip_test

End-to-end test of the server->client request round-trip between this SDK's own McpServer and McpClient, over a real Streamable HTTP transport.

session
module mcp.transport.session
Undocumented in source.
sse_context
module mcp.transport.sse_context
Undocumented in source.
stdio
module mcp.transport.stdio
Undocumented in source.
streamable_http
module mcp.transport.streamable_http
Undocumented in source.

Public Imports

mcp.transport.stdio
public import mcp.transport.stdio;
Undocumented in source.
mcp.transport.streamable_http
public import mcp.transport.streamable_http;
Undocumented in source.
mcp.transport.session
public import mcp.transport.session;
Undocumented in source.
mcp.transport.sse_context
public import mcp.transport.sse_context;
Undocumented in source.
mcp.transport.oauth_proxy_mount
public import mcp.transport.oauth_proxy_mount;
Undocumented in source.
mcp.protocol.modern
public import mcp.protocol.modern;
Undocumented in source.