MCP SSE Proxy
MCP SSE Proxy
SSE (Server-Sent Events) proxy implementation for MCP using rmcp 0.10.
Overview
This module provides a proxy implementation for MCP (Model Context Protocol) using SSE (Server-Sent Events) transport.
Features
- SSE Support: Uses rmcp 0.10 with SSE transport (removed in 0.12+)
- Stable Protocol: Production-ready SSE implementation
- Hot Swap: Supports backend connection replacement
- High-level Client API: Simple connection interface hiding transport details
Architecture
Client → SSE → SseHandler → Backend MCP Service
Installation
Add to Cargo.toml:
[]
= { = "0.1.5", = "../mcp-sse-proxy" }
Usage
Server
use ;
async
Client
use ;
// Connect to an MCP server
let config = new;
let conn = connect.await?;
// List available tools
let tools = conn.list_tools.await?;
Development
# Build
# Test
License
MIT OR Apache-2.0