Expand description
Transport module for communication with MCP servers.
This module provides transport layer implementations for communicating with
Model Context Protocol (MCP) servers. It defines a common Transport trait
that abstracts the communication details and provides implementations for
different transport mechanisms.
Currently supported transport mechanisms:
StdioTransport: Communicates with MCP servers via standard input/output
Re-exports§
pub use json_rpc::JsonRpcMessage;pub use json_rpc::JsonRpcRequest;pub use json_rpc::JsonRpcResponse;
Modules§
- json_
rpc - JSON-RPC implementation for MCP communication.
Structs§
- Stdio
Transport - StdioTransport provides communication with an MCP server via standard I/O.
Traits§
- Transport
- Transport is the core trait for communication with MCP servers.
Functions§
- create_
transport_ for_ config - Creates a new transport for a server using the provided configuration