Module mcp_transport
Expand description
MCP transport abstraction — supports stdio, SSE, and HTTP transports.
Structs§
- Http
Transport - HTTP-based transport (POST requests).
- SseTransport
- Stdio
Transport - Stdio-based transport (spawn local process).
Enums§
- McpTransport
Error - 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§
- McpTransport
Conn - Public compatibility surface for direct transport users.
Functions§
- create_
transport - Create a transport based on config.