There is no official C++ SDK for MCP. So we wrote one — and ran it through the official conformance suite.
说明与用途
构建了 C++ SDK mcp‑cpp,完整实现 MCP 2026‑07‑28 规范,全部通过官方兼容性测试,发现五个真实错误,并指出测试套件中的模拟缺陷。
问题
MCP’s official SDK roster lacks a C++ implementation, despite C++ being the language of many data‑infrastructure systems.
结果
mcp‑cpp achieved 100% conformance for both server and client roles on the 2026‑07‑28 spec, uncovered five real bugs, and highlighted a mock defect in the conformance harness.
工作流
- 1. Designed mcp‑cpp to target the 2026‑07‑28 spec, using in‑tree crypto and a single HTTP library.
- 2. Implemented server Builder, client with OAuth 2.1 support, and stdio/HTTP transports.
- 3. Ran the SDK against the official conformance suite (v0.2.0‑alpha.12) for both spec revisions and roles.
- 4. Identified and fixed five real bugs uncovered by the harness.
- 5. Baselineled expected failures and filed a mock defect upstream.
- 6. Published the SDK on GitHub and documented usage.
证据
mcp‑cpp implements all of it: Server: Builder with tools/resources/prompts…
We didn’t self‑certify parity — we ran it against modelcontextprotocol/conformance…
Running the official harness against a C++ SDK found five real bugs in days.
- 记录日期: 2026-10-16T02:40:59.215Z