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 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§
- McpTransport
Conn - Abstract transport for MCP communication.
Functions§
- create_
transport - Create a transport based on config.