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 are recoverable by reconnecting — resetting the session and re-running the MCP handshake — rather than surfacing to the caller. Distinct from a genuine tool/application error, which must be reported as-is and never retried.

Traits§

McpTransportConn
Abstract transport for MCP communication.

Functions§

create_transport
Create a transport based on config.