mcp-spec-audit
Audit an MCP server codebase for the MCP 2026-07-28 stateless spec revision by running the mcp-spec-audit CLI and summarizing its findings. Use when the user asks to audit, check, or migrate an MCP server for the new spec, asks whether their server is ready for MCP 2026-07-28 or "the stateless revision", or mentions migrating off Roots, Sampling, protocol Logging, or the experimental Tasks API.
- License 许可
- MIT
- 最近更新
- 2026-07-31
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- mcp-spec-audit
- description
- Audit an MCP server codebase for the MCP 2026-07-28 stateless spec revision by running the mcp-spec-audit CLI and summarizing its findings. Use when the user asks to audit, check, or migrate an MCP server for the new spec, asks whether their server is ready for MCP 2026-07-28 or "the stateless revision", or mentions migrating off Roots, Sampling, protocol Logging, or the experimental Tasks API.
02 资源文件 1
- 参考文档README.md2.2 KB
03 SKILL.md 正文
MCP spec audit
Run the static scanner over an MCP server codebase, then turn its findings into a prioritized migration summary.
Steps
-
Locate the CLI. Try
mcp-spec-audit --versionfirst (it may be npm-linked). If absent, run it from a clone of the agentic toolkit:cd <toolkit>/tools/mcp-spec-audit && npm install && npm run build node dist/index.js <path-to-server> -
Run the audit against the server root the user pointed at, with
--jsonfor parsing plus the default markdown report:mcp-spec-audit <path> --json --report mcp-spec-audit-report.mdExit code 1 means BREAKS findings exist; 0 means none; 2 means the scan itself failed.
-
Read the JSON. Each finding has
ruleId,severity(breaks/deprecated/advisory),file,line,message,replacement, andspecLink.
Summarize for the user
- Lead with the verdict: ready, or not, and the count per severity.
- BREAKS first: experimental 2025-11-25 Tasks API usage that must move to the graduated lifecycle (
tasks/get,tasks/update,tasks/cancel). These block adoption of the new revision. - DEPRECATED next: Roots, Sampling, and protocol-level Logging keep working for 12 months. Name the replacement per finding (tool parameters or config; direct LLM provider calls; stderr or OpenTelemetry).
- ADVISORY last: session-state assumptions, legacy auth, SDK v2 renames and package splits, uncached
tools/list. Frame these as cleanup that the stateless revision makes possible or the SDKs will force at upgrade time. - Cite findings as
file:lineand point the user atmcp-spec-audit-report.mdfor the full checklist. - Suggest a migration order: breaks, then deprecated, then advisory; within a group, protocol changes before SDK renames.
Cautions
- The scanner is regex-based and conservative; treat
advisoryfindings worded with "if this is MCP..." as candidates to verify by reading the flagged line before asserting them. - Do not edit the user's code as part of the audit. Offer to fix findings as a separate step.
- Do not invent spec details beyond what the report's spec links say.
04 同仓库更多 Skills
model-router
Recommend a model tier (Haiku / Sonnet / Opus) for a coding task by scoring it on scope, novelty, risk, and expected iteration. Use when the user describes a task they are about to start, or explicitly asks "which model should I use for this".
example-skill
A copy-me template skill. Replace this description with a precise, one-line summary of what the skill does and when an agent should reach for it, because this line is what the agent reads to decide relevance.
example-command
A copy-me template for a human-invoked skill. Replace this with a one-line summary of what running /your-command does.
gated
Use only when the user explicitly asks to run the release checklist.
auto-leak
Use whenever the user mentions databases, migrations, or schema changes. Runs the full migration linter and applies fixes automatically.
autonomy-audit
Inventory every behaviour this Claude Code setup can trigger (hooks, skills, MCP servers, permission rules, CLAUDE.md directives), classify each as auto-firing or manual, tag its cost-of-wrong, and write a recommended trigger policy to autonomy-audit.md. Takes an optional path to audit a different project.