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;loggingand non-WebAssemblypub use logging::LogConfig;pub use logging::LogEntry;pub use logging::LogFormat;pub use logging::LogLevel;pub use middleware::AdvancedMiddleware;pub use middleware::AuthMiddleware;pub use middleware::CircuitBreakerMiddleware;pub use middleware::CompressionMiddleware;pub use middleware::CompressionType;pub use middleware::EnhancedMiddlewareChain;pub use middleware::LoggingMiddleware;pub use middleware::MetricsMiddleware;pub use middleware::Middleware;pub use middleware::MiddlewareChain;pub use middleware::MiddlewareContext;pub use middleware::MiddlewarePriority;pub use middleware::PerformanceMetrics;pub use middleware::RateLimitMiddleware;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;Non-WebAssembly pub use reconnect::ReconnectGuard;Non-WebAssembly pub use reconnect::ReconnectManager;Non-WebAssembly pub use session::Session;pub use session::SessionConfig;pub use session::SessionManager;pub use stdio::StdioTransport;Non-WebAssembly pub use transport::Transport;pub use transport::TransportMessage;pub use uri_template::UriTemplate;pub use websocket::WebSocketConfig;websocketand non-WebAssemblypub use websocket::WebSocketTransport;websocketand non-WebAssemblypub use http::HttpConfig;httpand non-WebAssemblypub use http::HttpTransport;httpand non-WebAssemblypub use streamable_http::StreamableHttpTransport;streamable-httpand non-WebAssemblypub use streamable_http::StreamableHttpTransportConfig;streamable-httpand non-WebAssemblypub use sse_optimized::OptimizedSseConfig;ssepub use sse_optimized::OptimizedSseTransport;ssepub use connection_pool::ConnectionId;Non-WebAssembly pub use connection_pool::ConnectionPool;Non-WebAssembly pub use connection_pool::ConnectionPoolConfig;Non-WebAssembly pub use connection_pool::HealthStatus;Non-WebAssembly pub use connection_pool::LoadBalanceStrategy;Non-WebAssembly pub use connection_pool::PoolStats;Non-WebAssembly pub use connection_pool::PooledTransport;Non-WebAssembly pub use simd_parsing::CpuFeatures;pub use simd_parsing::ParsingMetrics;pub use simd_parsing::SimdBase64;pub use simd_parsing::SimdHttpHeaderParser;pub use simd_parsing::SimdJsonParser;pub use simd_parsing::SimdSseParser;
Modules§
- batch
- Batch request handling for JSON-RPC 2.0.
- connection_
pool Non-WebAssembly - Connection pooling and load balancing for MCP transports.
- context
- Request context propagation for distributed tracing and metadata.
- event_
store - Event store and resumability support for MCP connections.
- http
httpand non-WebAssembly - HTTP/SSE transport implementation for MCP.
- http_
constants - Constants for HTTP headers and content types used in MCP.
- http_
utils - Shared HTTP utilities for client and server middleware.
- logging
- Advanced logging with correlation IDs and structured logging.
- middleware
- Advanced middleware support for request/response processing.
- middleware_
presets - Pre-configured middleware stacks for common use cases.
- peer
Non-WebAssembly - Peer back-channel trait for server-to-client RPCs from inside request handlers. Peer back-channel trait for server-to-client RPCs from inside request handlers.
- pkce
- Target-agnostic PKCE (RFC 7636) crypto helper (verifier/challenge/state).
- protocol
- Protocol implementation for MCP.
- protocol_
helpers - Protocol helper functions for parsing and creating messages.
- reconnect
Non-WebAssembly - Advanced reconnection logic with exponential backoff.
- runtime
- Runtime abstraction for cross-platform support (native and WASM).
- session
- Session management for HTTP-based transports.
- simd_
parsing - SIMD-optimized parsing for high-performance JSON-RPC and SSE processing.
- sse_
optimized sse - Optimized SSE transport with advanced features.
- sse_
parser - Server-Sent Events (SSE) parser for MCP HTTP transport.
- stdio
Non-WebAssembly - Standard I/O transport implementation.
- streamable_
http streamable-httpand non-WebAssembly - Streamable HTTP transport implementation for MCP.
- transport
- Transport layer abstraction for MCP.
- uri_
template - RFC 6570 URI Template implementation for MCP resource URIs.
- websocket
websocketand non-WebAssembly - WebSocket transport implementation for MCP.