Expand description
Shared components used by both client and server.
Re-exports§
pub use batch::BatchRequest;
pub use batch::BatchResponse;
pub use context::ClientInfo;
pub use context::ContextPropagator;
pub use context::RequestContext;
pub use event_store::EventStore;
pub use event_store::EventStoreConfig;
pub use event_store::InMemoryEventStore;
pub use event_store::MessageDirection;
pub use event_store::ResumptionManager;
pub use event_store::ResumptionState;
pub use event_store::ResumptionToken;
pub use event_store::StoredEvent;
pub use logging::init_logging;
pub use logging::LogConfig;
pub use logging::LogEntry;
pub use logging::LogFormat;
pub use logging::LogLevel;
pub use middleware::AuthMiddleware;
pub use middleware::LoggingMiddleware;
pub use middleware::Middleware;
pub use middleware::MiddlewareChain;
pub use middleware::RetryMiddleware;
pub use protocol::ProgressCallback;
pub use protocol::Protocol;
pub use protocol::ProtocolOptions;
pub use protocol::RequestOptions;
pub use protocol_helpers::create_notification;
pub use protocol_helpers::create_request;
pub use protocol_helpers::parse_notification;
pub use protocol_helpers::parse_request;
pub use reconnect::ReconnectConfig;
pub use reconnect::ReconnectGuard;
pub use reconnect::ReconnectManager;
pub use session::Session;
pub use session::SessionConfig;
pub use session::SessionManager;
pub use stdio::StdioTransport;
pub use transport::Transport;
pub use transport::TransportMessage;
pub use uri_template::UriTemplate;
pub use websocket::WebSocketConfig;
pub use websocket::WebSocketTransport;
pub use http::HttpConfig;
pub use http::HttpTransport;
pub use streamable_http::StreamableHttpTransport;
pub use streamable_http::StreamableHttpTransportConfig;
Modules§
- batch
- Batch request handling for JSON-RPC 2.0.
- context
- Request context propagation for distributed tracing and metadata.
- event_
store - Event store and resumability support for MCP connections.
- http
- HTTP/SSE transport implementation for MCP.
- http_
constants - Constants for HTTP headers and content types used in MCP.
- logging
- Advanced logging with correlation IDs and structured logging.
- middleware
- Middleware support for request/response processing.
- protocol
- Protocol implementation for MCP.
- protocol_
helpers - Protocol helper functions for parsing and creating messages.
- reconnect
- Advanced reconnection logic with exponential backoff.
- runtime
- Runtime abstraction for cross-platform support (native and WASM).
- session
- Session management for HTTP-based transports.
- sse_
parser - Server-Sent Events (SSE) parser for MCP HTTP transport.
- stdio
- Standard I/O transport implementation.
- streamable_
http - Streamable HTTP transport implementation for MCP.
- transport
- Transport layer abstraction for MCP.
- uri_
template - RFC 6570 URI Template implementation for MCP resource URIs.
- websocket
- WebSocket transport implementation for MCP.