Expand description
SSE proxy implementation for MCP servers using Actix Web.
This module provides an HTTP and Server-Sent Events (SSE) proxy for MCP servers built on the Actix Web framework, allowing web clients to interact with MCP servers through a unified REST-like API.
The proxy handles HTTP routing, authentication, and SSE event streaming. It enables clients to:
- Subscribe to SSE events from MCP servers
- Make tool calls to MCP servers via JSON-RPC
- List available servers, tools, and resources
- Retrieve resources from MCP servers
This implementation uses Actix Web for improved performance, reliability, and maintainability compared to the custom HTTP implementation.
Re-exports§
pub use self::proxy::SSEProxy;
pub use self::proxy::SSEProxyHandle;
pub use self::proxy::SSEProxyRunnerAccess;
pub use self::types::SSEEvent;
pub use self::types::SSEMessage;
pub use self::types::ServerInfo;
pub use self::types::ServerInfoUpdate;
Modules§
- actix_
error - Actix Web error adapters for MCP Runner errors.
- auth
- Authentication middleware for the SSE proxy.
- events
- SSE event management for the Actix Web-based proxy.
- handlers
- HTTP request handlers for the Actix Web-based SSE proxy.
- proxy
- SSE proxy implementation for MCP servers using Actix Web.
- types
- Type definitions for the SSE proxy implementation.