
Specshield Mcp Server
io.github.specshield-io由 GitHub 账号 specshield-io 发布v1.1.1更新于 Oct 24, 2026
The API-change deploy gate for AI coding agents. Read-only breaking-change detection.
概览
只读的 MCP 服务器,用于判断 OpenAPI 规范变更是否可以安全部署,并解释破坏性变更、生成迁移指南和发布说明。
- 可以做什么
- 判断 API 变更是否可以安全合并或部署,给出风险与阻断原因
- 解释破坏性变更及其对开发者和消费方的影响,并给出迁移建议
- 生成含安全上线步骤的迁移指南,以及面向开发者、客户或内部的发布说明
- 对比两份规范,输出破坏性变更、新增、修改与警告的原始差异及风险评分
- 对单份规范执行 API 治理规则检查,返回定位到具体位置的问题与修复建议
- 适用场景
- 适合在助手协助处理 API 变更时使用:上线前需要明确的可行或不可行结论,或希望基于两个版本规范生成面向消费方的说明、迁移步骤和发布说明。
- 运行要求
- 通过 npx 以 stdio 在本地运行,需要 Node.js 20 或更高版本。必须在 SPECSHIELD_API_KEY 中提供 SpecShield API 密钥。可选配置包括 SPECSHIELD_API_URL(后端地址,默认 api.specshield.io)、SPECSHIELD_TIMEOUT_MS 和 SPECSHIELD_LOG_LEVEL。需要能访问后端的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Specshield Mcp Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
SpecShield MCP Server
The API-change deploy gate for AI coding agents. Ask "is it safe to ship this API change to my consumers?" right inside Claude, Cursor, and other MCP clients — and catch breaking changes before they reach your consumers.
It's a thin adapter over the SpecShield backend. Every tool is read-only / analyze-only — it never modifies your code.
Why not just diff specs? Plenty of tools (including free ones) list breaking changes. SpecShield's job is the decision: can I deploy this? — the deploy gate is the hero tool here.
⚙️ In CI/CD instead of an agent? The
specshieldCLI runs the same breaking-change andcan-i-deploychecks in your pipeline (GitHub Action, exit codes). Same job, two entry points: this server for AI agents, the CLI for CI/CD.
Tools
Tools 1–5 accept specs inline (baseSpecContent / targetSpecContent) or by path
(baseSpecPath / targetSpecPath). run_governance_review reviews a single spec
(specContent / specPath).
🔒 run_governance_review is a paid feature — a FREE API key returns a
payment_required error. Upgrade at specshield.io/pricing.
Full setup, verification & troubleshooting: docs/mcp-server-setup.md.
Install
Requires Node.js ≥ 20 and a SpecShield API key (from specshield.io/account).
Claude Desktop
claude_desktop_config.json:
Claude Code
Cursor
~/.cursor/mcp.json (or the project .cursor/mcp.json):
Configuration
Example prompts (lead with the deploy gate)
- "Here are my old and new
openapi.yaml— is it safe to ship this API change to my consumers?" - "Compare
v1.yamlandv2.yamland tell me if I can deploy, and why not." - "Explain the breaking changes between these two specs and how consumers should migrate."
- "Generate customer-facing release notes for this API change."
Security & privacy
- API key required. Sent only as the
X-Api-Keyheader to your configured backend. - Read-only / analyze-only. No mutation tools, no shell execution, no arbitrary file access (a spec file is read only when you explicitly pass a path).
- No secret or spec logging. The server never logs spec content, API keys, or request bodies; error messages are redacted and machine-readable.
- Specs are sent to your configured SpecShield backend for analysis.
Local development
License
MIT © SpecShield Software Private Limited
来源:README.md,提交 f69c1bb
工具
0版本历史
1- v1.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分

