Completion context was added in MCP 2025-06-18. A completion example spanning an earlier supported version cannot carry that context unchanged. Split the declaration’s scopes when context is needed for only the newer versions.
Requirement
Section titled “Requirement”A completion example carries context only from MCP 2025-06-18, where CompleteRequest defines it.
Details
Section titled “Details”Rule ID: mcp.completion.context.protocol-version
Owner: mcp
Surface: CompleteRequest · Path: context
Kind: structural
Requirement level: must
Status: internal · Enforcement: internal
Protocol version applicability
Section titled “Protocol version applicability”2024-11-05 |
2025-03-26 |
2025-06-18 |
2025-11-25 |
2026-07-28 |
|---|---|---|---|---|
| not-applicable | applies | applies | applies | applies |
Required by
Section titled “Required by”- MCP Description 0.9.0, Sections 10.4.6 and 11.4
- 10. Resources and Resource Templates: req-template-completion-context-protocol-version
Based on
Section titled “Based on”- Tier 1 — MCP schema.ts and normative specification text: MCP 2025-03-26 schema.ts, interface CompleteRequest (no context); MCP 2025-06-18 to 2026-07-28 schema.ts, CompleteRequest params context
MCP Description does not support completion examples for MCP 2024-11-05 (mcp.completion.protocol-version).
Examples
Section titled “Examples”Invalid example
Section titled “Invalid example”Source: expected-invalid/invalid-completion-example-semantics.json · Selected: /prompts/1/completionExamples/context-too-early
{ "argument": { "name": "name", "value": "a" }, "context": { "arguments": { "department": "engineering" } }, "result": { "completion": { "values": [ "Ada" ] }, "_meta": { "captured": true } }}Rule Source Code
Section titled “Rule Source Code”example.yaml at immutable tag v0.9.0-rc.3.