broker
Sentinel
一个无状态的 MCP 服务器,以及为它评分的符合性测试工具。
2026 年 7 月 28 日,Model Context Protocol 发布了其历史上最大的一次破坏性修订:
它将 MCP 从有状态、基于会话、双向的协议转变为无状态的请求/响应协议。会话消失了。initialize 握手消失了。
server/discover 成为必选项。服务器发起的请求被多轮往返请求(Multi Round-Trip Requests)整体取代。CacheableResult 成为必需项。Sampling、Roots、Logging、HTTP+SSE 传输和 OAuth 动态客户端注册都在十二个月的倒计时内被弃用。
野外所有的 MCP 服务器都是按照旧习惯编写的。这个仓库是两样东西捆绑在一起:
| 一个 Go MCP 服务器,原生构建于 |
|
|
它们是有意耦合的。测试工具的可信度来自于对一个并非其自身的服务器进行评分;服务器的可信度来自于被评分。测试工具从不导入服务器内部实现,并且可以针对任何端点 URL 运行。
状态
进行中。 参见 docs/superpowers/plans/2026-08-22-sentinel-mvp.md 了解工作包计划,参见 docs/HANDOFF.md 了解本实现所依据的规范。
WP | 能力 | 状态 |
WP-0 | 仓库引导 | ✅ |
WP-1 | 信封、发现、协商、错误分类 | ⏳ |
WP-2 | 头部契约和 Envoy 路由 | ⏳ |
WP-3 | 注册表、确定性 | ⏳ |
WP-4 | 工具纪律和 | ⏳ |
WP-5 | 服务器铸造的状态句柄 | ⏳ |
WP-6 | MRTR 引擎和幂等重放 | ⏳ |
WP-7 | 受众验证 | ⏳ |
WP-8 | 审计日志和哈希链 | ⏳ |
WP-9 | 测试工具探针、规则目录、夹具 | ⏳ |
WP-10 | 评分、JSON、SARIF、CI 门禁 | ⏳ |
WP-11 | 弃用清单 | ⏳ |
WP-12 | 测量、迁移指南、演示 | ⏳ |
Related MCP server: AIOrc MCP Server
快速开始
make up # postgres + broker + envoy + smokescreen + otel-collector
make check # golangci-lint, go test, ruff, mypy, pytest
make scan-broker # grade the broker against its own harness需要 Go 1.23+、Python 3.12、uv ≥ 0.5 和 Docker。任何地方都不需要模型 API 密钥——broker 提供工具,不调用模型,这就是为什么 CI 快速、免费,并且永远不会因为本仓库之外的原因而失败。
文档
docs/HANDOFF.md— 实现规范(SN-HND-001)。docs/MIGRATION.md— MCP2026-07-28中发生了什么变化,以及它让你付出什么代价。(WP-12)CLAUDE.md— 四条规则和单源文件约束。
优先级
在本仓库与 MCP 规范 不一致的地方, 规范优先,本仓库是错误的。
许可证
MIT — 参见 LICENSE。
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Workflow diagnostics, capability routing, and x402 settlement for MCP-compatible agents.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Discover, plan and run tools across your connected business systems through one OAuth MCP endpoint
1
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to discover and execute tools via a secure MCP server with JWT authentication, RBAC, rate limiting, and audit logging.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible LLM clients to execute server-verified agent workflows, with enforced transitions, invocation caps, and signed audit trails.MIT
- FlicenseNot gradedqualityBmaintenanceDemonstrates stateful application patterns on the stateless MCP 2026-07-28 protocol, enabling request-scoped state, multi round-trip confirmations, and streaming progress updates across independent tool calls.-
- FlicenseNot gradedqualityAmaintenanceEnables MCP-compatible AI clients to invoke CLI-driven agent tools over Streamable HTTP, including shell execution, file operations, patching, image viewing, web search, and nested agent tasks, with permission modes and real-time progress streaming.-