
Specshield Mcp Server
io.github.specshield26由 GitHub 账号 specshield26 发布v1.0.2更新于 Oct 24, 2026
The API-change deploy gate for AI coding agents. Read-only breaking-change detection.
概览
让 AI 编程助手判断 API 规范变更是否可以安全部署,并解释破坏性变更与迁移步骤。
- 可以做什么
- 这是一个连接 SpecShield 后端的只读适配器,用于回答 API 变更的部署门禁问题。主工具 is_change_safe 会给出变更是否可安全合并,以及风险与阻塞原因。其他工具可解释破坏性变更、生成迁移指南和发布说明、比较两份规范,并运行付费的治理审查。规范可以内联传入,也可以按文件路径传入。
- 适用场景
- 当助手正在审查 OpenAPI 等 API 变更,而你需要的不是原始差异而是部署结论时使用。适合在合并前和发布前的助手工作流中检查;同样的检查在 CI/CD 中可通过命令行工具完成。
- 运行要求
- 通过 npx 以 stdio 在本地运行,需要 Node.js 20 或更高版本。必须提供 SpecShield API 密钥,放在 SPECSHIELD_API_KEY 中;可选配置为 SPECSHIELD_API_URL、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.0.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分

