Skip to main content

Module mcp_transport

Module mcp_transport 

Expand description

MCP transport abstraction — supports stdio, SSE, and HTTP transports.

Structs§

HttpTransport
HTTP-based transport (POST requests).
SseTransport
StdioTransport
Stdio-based transport (spawn local process).

Enums§

McpTransportError
Transport-level failures that require reconnecting and re-running the MCP handshake. The client may retry only when the request is known not to have been written; failures after a possible write are surfaced without replay. Distinct from a genuine tool/application error, which is always reported as-is and never retried.

Traits§

McpTransportConn
Public compatibility surface for direct transport users.

Functions§

create_transport
Create a transport based on config.