MCP cover image
See in Github
2025-04-14

一个原型实现,用于构建可通过STDIO和SSE Transport访问的自定义MCP服务器

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

相关推荐

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Aurity Ltd
  • Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.

  • Convincible Ltd
  • You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!

  • John Rafferty
  • Text your favorite pet, after answering 10 questions about their everyday lives!

  • Ian O'Connell
  • Provide players' names or enter Quickstart to start the game!

  • analogchat.com
  • Efficient Spotify assistant for personalized music data.

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • langgenius
  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • alibaba
  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • caio-moliveira
  • 创建该项目是为了证明我们如何与不同的模型上下文协议(MCP)连接。

  • microsoft
  • Python tool for converting files and office documents to Markdown.

  • mindsdb
  • AI's query engine - Platform for building AI that can answer questions over large scale federated data. - The only MCP Server you'll ever need

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • AstrBotDevs
  • llm llm聊天机器人及开发框架平台支持QQ QQ QQ 频道、电报| mcp 服务器、 openai,deepseek,双子座、硅基流动、月之暗面、 ollama,

  • nbonamy
  • Witsy:桌面AI助手

    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.