Module transport

Module transport 

Source
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§

StdioTransport
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