1
---
2
name: mcp-release-qa
3
description: '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.'
4
---
5
6
# MCP Release QA
7
8
Test the server that users will run. A schema review or a passing unit test is
9
not runtime evidence.
10
11
This skill complements security review. It focuses on protocol behavior,
12
published-contract drift, transport correctness, and reproducible release
13
evidence.
14
15
## Rules
16
17
- Run checks against a fresh server process built from the candidate revision.
18
- Keep `initialize`, `notifications/initialized`, discovery, and invocation in
19
the same session. A new process is a new STDIO session.
20
- Treat source registrations as implementation truth and public documentation
21
as a contract that must match it.
22
- Record exact commands and raw responses. Do not replace missing evidence with
23
"looks correct."
24
- Do not invoke mutation-capable tools against production data. Use fixtures, a
25
sandbox, or stop and name the missing safe test environment.
26
- Derive the expected capability inventory from the candidate source on every
27
run.
28
29
## 1. Establish the release surface
30
31
Identify:
32
33
- candidate commit and build command;
34
- server entry point and transport: STDIO, Streamable HTTP, or SSE;
35
- supported MCP protocol versions;
36
- source files that register tools, resources, resource templates, and prompts;
37
- generated catalogs, manifests, README tables, and install instructions;
38
- existing protocol, integration, and smoke-test commands.
39
40
Prefer repository-native commands. Inspect `package.json`, `pyproject.toml`,
41
`Makefile`, CI workflows, and contributor instructions before inventing a test
42
harness.
43
44
## 2. Start a clean server
45
46
Build the candidate and start the documented entry point with test-safe
47
configuration. Capture:
48
49
- the exact command;
50
- commit SHA;
51
- environment variable names, with values redacted;
52
- stdout, stderr, and exit status;
53
- the endpoint or child-process transport used by the client.
54
55
For STDIO, stdout is protocol-only. Logs, banners, and stack traces belong on
56
stderr. For HTTP transports, record the status, relevant MCP headers, and
57
session identifier handling without printing credentials.
58
59
If the server cannot start from its documented instructions, report that as a
60
release failure and preserve the startup error verbatim.
61
62
## 3. Exercise one complete session
63
64
Run this sequence through a real MCP client or the repository's integration
65
harness:
66
67
1. `initialize` with a protocol version the server claims to support.
68
2. Confirm the negotiated version and advertised capabilities.
69
3. Send `notifications/initialized`.
70
4. Call `ping`.
71
5. Call each supported discovery method:
72
- `tools/list`
73
- `resources/list`
74
- `resources/templates/list`
75
- `prompts/list`
76
6. Exercise at least one representative read-only item from every advertised
77
capability class.
78
7. Follow pagination until no cursor remains when a list method is paginated.
79
80
Do not send post-initialization requests through separate one-shot processes.
81
That accidentally tests several incomplete sessions instead of one valid
82
session.
83
84
## 4. Prove inventory parity
85
86
Build four inventories from current evidence:
87
88
| Surface | Evidence |
89
|---|---|
90
| Source | Registered tool, resource, template, and prompt definitions |
91
| Runtime | Results from the live discovery methods |
92
| Generated metadata | Catalogs, manifests, or generated indexes |
93
| Documentation | README, reference pages, and install output |
94
95
Compare by stable identifier. Report:
96
97
- source entries missing at runtime;
98
- runtime entries absent from metadata or documentation;
99
- stale names, descriptions, arguments, URIs, or prompt parameters;
100
- documented install commands that do not start the candidate server.
101
102
Regenerate derived files with the repository's own build command, then fail if
103
the working tree still contains unexplained generated changes.
104
105
## 5. Check published contracts
106
107
For every discovered item, verify the runtime definition against its source:
108
109
### Tools
110
111
- Name and description are stable and specific.
112
- `inputSchema` defines types, required fields, enums, and bounds where needed.
113
- Unknown properties are rejected when the tool contract is closed.
114
- Mutation, idempotence, read-only, and open-world annotations match behavior.
115
- Successful calls conform to `outputSchema` when one is published.
116
- Errors are protocol errors or structured tool failures, not leaked stack
117
traces.
118
119
### Resources and templates
120
121
- URIs and MIME types match the registered definitions.
122
- Static resources are readable.
123
- Template parameters are validated before resolution.
124
- Missing or forbidden resources fail explicitly.
125
126
### Prompts
127
128
- Required and optional arguments match discovery output.
129
- `prompts/get` returns usable messages for valid arguments.
130
- Missing required arguments and unknown prompt names fail explicitly.
131
132
## 6. Test failure paths
133
134
At minimum, probe:
135
136
- a request before initialization completes;
137
- malformed JSON or an invalid JSON-RPC envelope;
138
- an unknown method;
139
- an unsupported protocol version;
140
- repeated initialization;
141
- unknown tool, resource, and prompt names;
142
- missing, extra, wrong-type, and out-of-bounds arguments;
143
- a request at the documented transport-size limit and one beyond it;
144
- a controlled internal failure with credentials and stack traces redacted.
145
146
Verify that each response has the correct request ID, a useful error message,
147
and no successful side effect. For STDIO, also confirm every stdout line is a
148
complete protocol message and a healthy session leaves stderr clean unless the
149
server explicitly documents diagnostic output.
150
151
## 7. Smoke-test installation
152
153
When the project publishes an install command:
154
155
1. Create a temporary destination outside the source checkout.
156
2. Run the public install command exactly as documented.
157
3. Start the installed artifact without relying on files from the source tree.
158
4. Repeat initialization, discovery, and one read-only invocation.
159
5. Remove the temporary destination after preserving the command output.
160
161
An install string that was only inspected is unverified.
162
163
## 8. Report the evidence
164
165
Use this format:
166
167
```markdown
168
# MCP Release QA
169
170
Candidate: [commit]
171
Transport: [STDIO | Streamable HTTP | SSE]
172
Verdict: PASS | PASS WITH CAVEATS | FAIL
173
174
## Commands and results
175
- `[exact command]` — [exit status and result]
176
177
## Session transcript
178
- initialize: [result]
179
- discovery: [result]
180
- representative calls: [result]
181
- negative paths: [result]
182
183
## Parity
184
| Identifier | Source | Runtime | Metadata | Docs | Result |
185
|---|---|---|---|---|---|
186
187
## Findings
188
| Severity | Evidence | Impact | Narrowest fix |
189
|---|---|---|---|
190
191
## Missing evidence
192
- [check that could not run and why]
193
```
194
195
Use `FAIL` for a server that cannot start, complete a valid session, keep the
196
transport parseable, or safely reject invalid input. Use `PASS WITH CAVEATS`
197
only for bounded documentation or metadata drift that does not misrepresent a
198
dangerous capability. Otherwise use `PASS`.
199