mcp_runner/sse_proxy/mod.rs
1//! SSE proxy implementation for MCP servers using Actix Web.
2//!
3//! This module provides an HTTP and Server-Sent Events (SSE) proxy for MCP servers
4//! built on the Actix Web framework, allowing web clients to interact with MCP servers
5//! through a unified REST-like API.
6//!
7//! The proxy handles HTTP routing, authentication, and SSE event streaming.
8//! It enables clients to:
9//! - Subscribe to SSE events from MCP servers
10//! - Make tool calls to MCP servers via JSON-RPC
11//! - List available servers, tools, and resources
12//! - Retrieve resources from MCP servers
13//!
14//! This implementation uses Actix Web for improved performance, reliability,
15//! and maintainability compared to the custom HTTP implementation.
16
17// Re-export the main types
18pub use self::proxy::{SSEProxy, SSEProxyHandle, SSEProxyRunnerAccess};
19pub use self::types::{ResourceInfo, SSEEvent, SSEMessage, ServerInfo, ServerInfoUpdate, ToolInfo};
20
21// Submodules
22pub mod actix_error;
23pub mod auth;
24pub mod events;
25pub mod handlers;
26pub mod proxy;
27pub mod types;