mcp-sse-proxy

Crates.iomcp-sse-proxy
lib.rsmcp-sse-proxy
version0.1.14
created_at2025-12-30 12:56:35.485323+00
updated_at2026-01-11 18:34:05.114978+00
descriptionSSE (Server-Sent Events) proxy implementation for MCP protocol using rmcp 0.10
homepage
repositoryhttps://github.com/nuwax-ai/mcp-proxy
max_upload_size
id2012602
size156,631
soddygo (soddygo)

documentation

README

MCP SSE Proxy

English | 简体中文


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:

[dependencies]
mcp-sse-proxy = { version = "0.1.5", path = "../mcp-sse-proxy" }

Usage

Server

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(())
}

Client

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?;

Development

# Build
cargo build -p mcp-sse-proxy

# Test
cargo test -p mcp-sse-proxy

License

MIT OR Apache-2.0

Commit count: 1

cargo fmt