MCP cover image

简单的原型MCP V0.2客户端和服务器实现

0

Github Watches

0

Github Forks

0

Github Stars

only_mcp

A simple MCP v0.2 client and server implementation, for me to learn about MCP.

IT is not a complete implementation. Neither is it to be used for production.

Story So Far

Spent the weekend implementing MCP v0.2—exactly as fun as it sounds! Agents can now leverage authenticated tools, though there's room for improvement.

Key observations:

  • Protocol Changes: MCP v0.2 significantly differs from v0.1—most notably, the SSE endpoint is gone. It also relies on a .well-known OAuth flow for auth. The introduction of application/json requests simplify some interactions but remove the option for server push via SSE.

  • SDK and Tooling Gaps: Current Python SDK to build your MCP server quickly is still at v0.2 with limited auth support, which pushed me into building a Falcon-based server compatible with both standards. Dev tooling lags behind—Claude integration, for instance, still demands local stdio-based setups. The promising mcp-proxy tool doesn't yet support v0.2, causing unexpected detours during implementation.

  • Interoperability Concerns: MCP's tool schema differs from OpenAI's chat-completion standard, complicating implementations. Function call chains (e.g., fetching schema before updates) also present challenges—tool-calling workflows could be more streamlined.

  • Long-running Tasks: While direct support is still missing, MCP v0.2 introduces event IDs for task status polling—a welcome addition, though yet to be tested in my setup.

  • Deployment and Strategy: MCP endpoints ideally coexist alongside REST APIs and OAuth flows, making it suitable for dedicated agent traffic handling. Cloudflare emerges as a solid managed option, though self-hosting might become preferable as tooling matures. Founders considering building a standalone MCP gateway in the cloud might want to reassess the long-term viability of that approach.

Overall, MCP v0.2 is progressing nicely but needs a few iterations for tooling and SDK maturity.

Developer Instructions

  1. Pre-commit
pre-commit install
  1. We only develop inside containers.
docker compose up --build
  1. Frontend dependencies are managed locally. If you need to run eslint manually, run:
npm --prefix frontend install && npx eslint

相关推荐

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • 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.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • modelcontextprotocol
  • 模型上下文协议服务器

  • n8n-io
  • 具有本机AI功能的公平代码工作流程自动化平台。将视觉构建与自定义代码,自宿主或云相结合,400+集成。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

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

  • metorial
  • 数百个MCP服务器的容器化版本📡📡

  • open-webui
  • 用户友好的AI接口(支持Ollama,OpenAi API,...)

    Reviews

    3 (1)
    Avatar
    user_VdJzLpvB
    2025-04-16

    I've been using the ConnectWise Manage MCP Server created by jasondsmith72, and it has significantly streamlined our workflow. The integrations with ConnectWise PSA via API are seamless, making data management effortless. An excellent tool for anyone looking to optimize their operations. Highly recommended!