Cover image
Try Now
2025-04-14

Une implémentation prototype pour créer un serveur MCP personnalisé accessible sur STdio et SSE Transport

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

mcp-transport-prototype

A prototype implementation to understand building custom MCP server that is accessible over stdio and SSE transport. The goal here is to understand SSE and stdio transports.

SSE Transport

Server-Sent Events (SSE) is a simple, efficient way to push real-time updates from the server to the client over HTTP.

  • Unlike WebSockets, SSE is one-way: the server can stream data to the client, but not vice versa.
  • It works over standard HTTP and is well-suited for scenarios like live updates, notifications, or streaming responses.

Unlike stdio, SSE runs the MCP server as a separate HTTP service. This makes it well-suited for use cases like web dashboards or browser-based apps that need to receive streamed updates from the server over the network.

Stdio Transport

Stdio (short for standard input/output) is a traditional way for programs to communicate by reading from and writing to the terminal or connected processes.

  • stdin (standard input): receives input data — usually from the keyboard, a file, or another program.
  • stdout (standard output): sends output data — usually printed on the terminal or piped to another program.

Compared to SSE, stdio-based MCP servers feel more like in-process tools. They're ideal when you're launching the MCP server as a subprocess, such as from a command-line tool, an LLM agent, or a background script that needs to send and receive structured data efficiently without using a network.

See in Action

mcp_client.py is a quick script to test MCP server in SSE mode.

# Run in Terminal 1
uv run main.py

# Run in Terminal 2
uv run mcp_client.py

相关推荐

  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • 1Panel-dev
  • 🔥 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.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • rulego
  • ⛓️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.

  • Byaidu
  • PDF Traduction de papier scientifique avec formats conservés - 基于 AI 完整保留排版的 PDF 文档全文双语翻译 , 支持 Google / Deepl / Olllama / Openai 等服务 , 提供 CLI / GUI / MCP / DOCKER / ZOTERO

  • sigoden
  • Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.

  • hkr04
  • SDK C ++ MCP (Protocole de contexte modèle léger)

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 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

  • dmayboroda
  • Rag de conversation sur site avec des conteneurs configurables

  • modelscope
  • Commencez à construire des applications multi-agents LLM, plus facilement.

    Reviews

    4 (5)
    Avatar
    user_nUWEWWBd
    2025-04-24

    The mcp-transport-prototype by Amishk599 is a game-changing application for efficient transport management. It’s intuitive, user-friendly, and significantly improves organizational logistics. Highly recommend it for anyone looking to optimize their transport operations!

    Avatar
    user_4pdyOnJZ
    2025-04-24

    I recently tried the mcp-transport-prototype by Amishk599 and I'm thoroughly impressed! This innovative product offers seamless integration and efficient transport solutions. It's user-friendly and designed with a meticulous attention to detail. A must-try for anyone looking to enhance their existing system!

    Avatar
    user_vEki8M0r
    2025-04-24

    The mcp-transport-prototype by Amishk599 is an exceptional tool for transportation management. Its user-friendly interface and efficient performance make daily operations more streamlined. The system's reliability and robust features have significantly improved our workflow. Highly recommended for anyone in the logistics and transportation industry!

    Avatar
    user_pwt0ZXyP
    2025-04-24

    As a dedicated user of MCP applications, I can confidently say that the mcp-transport-prototype by Amishk599 is a remarkable tool. Its intuitive design and functionality have greatly enhanced my workflow. The ease of navigation and reliability make it a must-have for anyone seeking efficiency in their transport management tasks. Highly recommended!

    Avatar
    user_tz1AW9uj
    2025-04-24

    As a dedicated user of mcp applications, I found the mcp-transport-prototype created by Amishk599 to be an impressive addition. Its intuitive interface and seamless functionality have significantly enhanced my workflow. I highly recommend it to anyone looking to streamline their transport-related tasks.