| Crates.io | mcp-streamable-proxy |
| lib.rs | mcp-streamable-proxy |
| version | 0.1.14 |
| created_at | 2025-12-30 12:57:06.48523+00 |
| updated_at | 2026-01-11 18:34:40.481271+00 |
| description | Streamable HTTP proxy implementation for MCP protocol using rmcp 0.12 |
| homepage | |
| repository | https://github.com/nuwax-ai/mcp-proxy |
| max_upload_size | |
| id | 2012605 |
| size | 159,611 |
Streamable HTTP proxy implementation for MCP using rmcp 0.12 with stateful session management.
This module provides a proxy implementation for MCP (Model Context Protocol) using Streamable HTTP transport with stateful session management.
Client → Streamable HTTP → ProxyAwareSessionManager → ProxyHandler → Backend MCP Service
↓
Version Tracking
(DashMap<SessionId, BackendVersion>)
Add to Cargo.toml:
[dependencies]
mcp-streamable-proxy = { version = "0.1.5", path = "../mcp-streamable-proxy" }
use mcp_streamable_proxy::{McpServiceConfig, run_stream_server};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = McpServiceConfig::new("my-service".to_string());
run_stream_server(config).await?;
Ok(())
}
use mcp_streamable_proxy::{StreamClientConnection, McpClientConfig};
// Connect to an MCP server
let config = McpClientConfig::new("http://localhost:8080/mcp");
let conn = StreamClientConnection::connect(config).await?;
// List available tools
let tools = conn.list_tools().await?;
The ProxyAwareSessionManager provides:
# Build
cargo build -p mcp-streamable-proxy
# Test
cargo test -p mcp-streamable-proxy
MIT OR Apache-2.0