
Mcpproxy-stdio-to-sse
C # MCP Proxy de STdio <-> SSE
3 years
Works with Finder
0
Github Watches
0
Github Forks
0
Github Stars
MCPProxy-STDIO-to-SSE
Makes a MCP SSE server compatiable with WindSurf and Claude Desktop
MCPProxy-STDIO-to-SSE A lightweight .NET console bridge that lets any STDIO-based client speak to an SSE-backed MCP server. It:
Opens a single long-lived SSE connection to BASE_URL/sse, discovers the /message?sessionId=… endpoint.
Forwards every JSON-RPC line read from STDIN as an HTTP POST to BASE_URL/message?sessionId=….
Streams each SSE data: payload (other than the endpoint event) to STDOUT.
Logs every message sent and received (with timestamps and pretty-printed JSON) to MCPProxy-STDIO.log in your temp directory.
Features Bidirectional bridge: STDIN→HTTP POST and SSE→STDOUT.
Automatic session discovery via the event: endpoint frame.
Structured logging (timestamps, “Sent”/“Received” markers, indented JSON).
Configurable headers on both SSE subscribe and POST requests.
Prerequisites .NET 6.0 SDK or later
An MCP-compatible server exposing:
GET /sse (SSE stream with an event: endpoint frame)
POST /message?sessionId={id} (accepts JSON-RPC payloads)
Building
git clone https://github.com/yourorg/MCPProxy-STDIO-to-SSE.git
cd MCPProxy-STDIO-to-SSE
dotnet build -c Release
Usage
# Basic (no extra headers):
dotnet run --project src/Program.cs http://localhost:3001
# With additional HTTP headers:
dotnet run --project src/Program.cs http://localhost:3001 ApiKey 12345
Once launched, the app will: Open GET http://localhost:3001/sse with Accept: text/event-stream. Wait for an event: endpoint frame—e.g.:
event: endpoint
data: /message?sessionId=Wp6wxiY6PyBRoTtCNyLucw
Read lines from your STDIN and POST each one as JSON to:
POST http://localhost:3001/message?sessionId=Wp6wxiY6PyBRoTtCNyLucw
Content-Type: application/json
{"jsonrpc":"2.0","id":1, ...}
Print every other SSE data: payload to STDOUT, for example:
{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2024-11-05", ...}}
Write a detailed log of “Sent” and “Received” messages (with timestamps and formatted JSON) into:
%TEMP%\MCPProxy-STDIO.log
Use this bridge to connect any STDIO-driven LSP/JSON-RPC client (including Claude Desktop) to a web-based SSE/MCP backend seamlessly. Sample Claude JSON configuration
{
"mcpServers": {
"Local CNET Debug": {
"command": "C:\\Users\\User\\source\\repos\\MCPProxy-STDIO-to-SSE\\MCPProxy-STDIO-to-SSE\\bin\\Debug\\net6.0\\MCPProxy-STDIO-to-SSE.exe",
"args": ["http://localhost:4858/McpHandler.ashx/sse"],
"env": {
"BRAVE_API_KEY": "your-api-key"
}
}
}
}
相关推荐
🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.
⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
Flock est une plate-forme à faible code de workflow pour construire rapidement des chatbots, un chiffon et coordonner des équipes multi-agents, alimentée par Langgraph, Langchain, Fastapi et NextJs. (Flock 是一个基于 Workflow 工作流的低代码平台 , 用于快速构建聊天机器人、 Rag 、 Agent 和 和 , 采用 采用 采用 采用 Langgraph 、 Langchain 、 Fastapi 和 ,))
PDF Traduction de papier scientifique avec formats conservés - 基于 AI 完整保留排版的 PDF 文档全文双语翻译 , 支持 Google / Deepl / Olllama / Openai 等服务 , 提供 CLI / GUI / MCP / DOCKER / ZOTERO
Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.
Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.
😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信 (企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Dify 、 Claude 、 GEMINI 、 XAI 、 PPIO 、 OLLAMA 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 ChatGlm 、 Sillytraven 、 MCP 等 LLM 的机器人 / Agent | Plateforme de bots de messagerie instantanée basés sur LLM, prend en charge Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack
Reviews

user_ek8zokQA
I've been using MCPProxy-STDIO-to-SSE by AgentSmithers for a couple of weeks now, and it has significantly simplified my workflow. The seamless integration between STDIO and SSE protocols is incredibly efficient, making real-time data processing a breeze. Highly recommend this tool for anyone needing robust and reliable proxy solutions.

user_PLHy4s1Y
MCPProxy-STDIO-to-SSE by AgentSmithers is an outstanding tool for seamless integration of standard input/output with Server-Sent Events. The usability and efficiency it brings to the table have significantly improved my workflow. If you're looking to enhance your application's real-time communication capabilities, this is a must-have. Highly recommended!

user_2C30VzfS
The MCPProxy-STDIO-to-SSE by AgentSmithers is an exceptional tool for developers looking to streamline their workflow between STDIO and SSE protocols. The implementation is seamless and perfectly catered to integrate with multiple languages, making it a versatile addition to any project. Highly recommended for its efficiency and ease of use!