mcp-release-qa
它能做什么
检查 AI 服务器(即 MCP 服务器)是否已准备好向公众开放使用。它会测试服务器是否按预期工作,其信息是否准确,以及它能否妥善处理错误。
适用场景
- ✓当你即将发布一个新的 AI 服务器时。
- ✓当你要审查现有的 AI 服务器时。
- ✓当你需要确保 AI 服务器的文档与其实际行为一致时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/mcp-release-qa/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在发布之前,验证“my-cool-server”这个 AI 服务器是否工作正常。”
每周 5 个新技能,1 分钟读完。
工作原理
系统会运行该 AI 服务器,像真实用户一样与它交互,检查它的响应是否正确,并验证其文档(例如功能说明和使用方法)是否准确。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
MCP Release QA
Test the server that users will run. A schema review or a passing unit test is not runtime evidence.
This skill complements security review. It focuses on protocol behavior, published-contract drift, transport correctness, and reproducible release evidence.
Rules
- Run checks against a fresh server process built from the candidate revision.
- Keep
initialize,notifications/initialized, discovery, and invocation in the same session. A new process is a new STDIO session. - Treat source registrations as implementation truth and public documentation as a contract that must match it.
- Record exact commands and raw responses. Do not replace missing evidence with "looks correct."
- Do not invoke mutation-capable tools against production data. Use fixtures, a sandbox, or stop and name the missing safe test environment.
- Derive the expected capability inventory from the candidate source on every run.
1. Establish the release surface
Identify:
- candidate commit and build command;
- server entry point and transport: STDIO, Streamable HTTP, or SSE;
- supported MCP protocol versions;
- source files that register tools, resources, resource templates, and prompts;
- generated catalogs, manifests, README tables, and install instructions;
- existing protocol, integration, and smoke-test commands.
Prefer repository-native commands. Inspect package.json, pyproject.toml,
Makefile, CI workflows, and contributor instructions before inventing a test
harness.
2. Start a clean server
Build the candidate and start the documented entry point with test-safe configuration. Capture:
- the exact command;
- commit SHA;
- environment variable names, with values redacted;
- stdout, stderr, and exit status;
- the endpoint or child-process transport used by the client.
For STDIO, stdout is protocol-only. Logs, banners, and stack traces belong on stderr. For HTTP transports, record the status, relevant MCP headers, and session identifier handling without printing credentials.
If the server cannot start from its documented instructions, report that as a release failure and preserve the startup error verbatim.
3. Exercise one complete session
Run this sequence through a real MCP client or the repository's integration harness:
initializewith a protocol version the server claims to support.- Confirm the negotiated version and advertised capabilities.
- Send
notifications/initialized. - Call
ping. - Call each supported discovery method:
tools/listresources/listresources/templates/listprompts/list
- Exercise at least one representative read-only item from every advertised capability class.
- Follow pagination until no cursor remains when a list method is paginated.
Do not send post-initialization requests through separate one-shot processes. That accidentally tests several incomplete sessions instead of one valid session.
4. Prove inventory parity
Build four inventories from current evidence:
| Surface | Evidence |
|---|---|
| Source | Registered tool, resource, template, and prompt definitions |
| Runtime | Results from the live discovery methods |
| Generated metadata | Catalogs, manifests, or generated indexes |
| Documentation | README, reference pages, and install output |
Compare by stable identifier. Report:
- source entries missing at runtime;
- runtime entries absent from metadata or documentation;
- stale names, descriptions, arguments, URIs, or prompt parameters;
- documented install commands that do not start the candidate server.
Regenerate derived files with the repository's own build command, then fail if the working tree still contains unexplained generated changes.
5. Check published contracts
For every discovered item, verify the runtime definition against its source:
Tools
- Name and description are stable and specific.
inputSchemadefines types, required fields, enums, and bounds where needed.- Unknown properties are rejected when the tool contract is closed.
- Mutation, idempotence, read-only, and open-world annotations match behavior.
- Successful calls conform to
outputSchemawhen one is published. - Errors are protocol errors or structured tool failures, not leaked stack traces.
Resources and templates
- URIs and MIME types match the registered definitions.
- Static resources are readable.
- Template parameters are validated before resolution.
…
常见问题
为什么只测试代码还不够?
单元测试(unit tests)很重要,但它无法保证真实用户与服务器交互时服务器能正常工作。这项测试检验的是服务器的实际行为。
什么是 MCP?
MCP 是一种协议,即计算机程序之间通信的一套规则。在这里,它指的是采用该协议的 AI 服务器。
什么是“失败路径”?
指出现问题的情况,例如输入了错误的命令或发生内部错误。测试这些路径可以确保服务器能正确处理错误,并清楚地告知用户。
详情
作者的原始描述
Verify an MCP server before release by exercising a real protocol session, comparing runtime capabilities with source and documentation, testing failure paths, and recording reproducible evidence. Use when shipping or reviewing an MCP server, tool, resource, prompt, catalog, or install path.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7283
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。