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;
Non-WebAssembly pub 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;
websocket
and non-WebAssemblypub use websocket::WebSocketTransport;
websocket
and non-WebAssemblypub use http::HttpConfig;
http
and non-WebAssemblypub use http::HttpTransport;
http
and non-WebAssemblypub use streamable_http::StreamableHttpTransport;
streamable-http
and non-WebAssemblypub use streamable_http::StreamableHttpTransportConfig;
streamable-http
and non-WebAssemblypub use sse_optimized::OptimizedSseConfig;
sse
pub use sse_optimized::OptimizedSseTransport;
sse
pub 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
http
and non-WebAssembly - 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
- Advanced middleware support for request/response processing.
- 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-http
and 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
websocket
and non-WebAssembly - WebSocket transport implementation for MCP.