| Crates.io | mcp-sse-proxy |
| lib.rs | mcp-sse-proxy |
| version | 0.1.14 |
| created_at | 2025-12-30 12:56:35.485323+00 |
| updated_at | 2026-01-11 18:34:05.114978+00 |
| description | SSE (Server-Sent Events) proxy implementation for MCP protocol using rmcp 0.10 |
| homepage | |
| repository | https://github.com/nuwax-ai/mcp-proxy |
| max_upload_size | |
| id | 2012602 |
| size | 156,631 |
SSE (Server-Sent Events) proxy implementation for MCP using rmcp 0.10.
This module provides a proxy implementation for MCP (Model Context Protocol) using SSE (Server-Sent Events) transport.
Client → SSE → SseHandler → Backend MCP Service
Add to Cargo.toml:
[dependencies]
mcp-sse-proxy = { version = "0.1.5", path = "../mcp-sse-proxy" }
use mcp_sse_proxy::{McpServiceConfig, run_sse_server};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = McpServiceConfig::new("my-service".to_string());
run_sse_server(config).await?;
Ok(())
}
use mcp_sse_proxy::{SseClientConnection, McpClientConfig};
// Connect to an MCP server
let config = McpClientConfig::new("http://localhost:8080/sse");
let conn = SseClientConnection::connect(config).await?;
// List available tools
let tools = conn.list_tools().await?;
# Build
cargo build -p mcp-sse-proxy
# Test
cargo test -p mcp-sse-proxy
MIT OR Apache-2.0