mcp-2026-07-28
Skill13 starsChanged 3 months agoMITView on GitHub
MUST use MCP protocol 2026-07-28 when creating or migrating MCP servers, clients, or this vmcp gateway. Use when the user asks to build an MCP server, wrap an API for MCP, or upgrade vmcp/rmcp to the 2026-07-28 spec.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Do not scaffold initialize + notifications/initialized as the modern lifecycle.
- Very specific: line 55
Every request _meta must carry protocol version + client capabilities.
- Very specific: line 56
Every result includes resultType.
- Very specific: line 75
Do not delete LocalSessionManager or Last-Event-ID resume until the legacy path is explicitly retired.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MCP 2026-07-28 (MUST)
This overlay overrides the vendored Anthropic plugin at
third_party/mcp-server-dev/. That plugin is what
https://modelcontextprotocol.io/docs/2026-07-28/develop/build-with-agent-skills
points to, but its internals still describe 2025-11-25.
Protocol version string: 2026-07-28
Spec: https://modelcontextprotocol.io/specification/2026-07-28
Changelog vs 2025-11-25: https://modelcontextprotocol.io/specification/2026-07-28/changelog
Rust SDK in this repo: vendored rmcp 3.1.0 (third_party/rmcp) already
knows ProtocolVersion::V_2026_07_28, but ProtocolVersion::LATEST is still
2025-11-25.
Do not scaffold initialize + notifications/initialized as the modern
lifecycle. Do not tell agents to send server-initiated roots/list,
sampling/createMessage, or elicitation/create on 2026-07-28 sessions.
MUST / MUST NOT (modern path)
| Topic | 2025-11-25 (legacy) | 2026-07-28 MUST |
| Handshake | initialize + initialized | Optional server/discover; every RPC is self-contained |
| Version | params.protocolVersion once | _meta["io.modelcontextprotocol/protocolVersion"] on every request |
| Client identity | clientInfo at initialize | _meta["io.modelcontextprotocol/clientInfo"] + clientCapabilities per request |
| Server identity | initialize result | _meta["io.modelcontextprotocol/serverInfo"] on results |
| How a session is opened | initialize mints Mcp-Session-Id | Per-request _meta.clientInfo; push session = subscriptions/listen (subscriptionId = that request id). App state = explicit handles in tool args (SEP-2567). No transport cookie. |
| SSE resume | Last-Event-ID | Removed. Broken stream → new request id (SEP-2575) |
GET /mcp | standalone SSE | Replaced by subscriptions/listen POST |
| Subscribe | resources/subscribe | subscriptions/listen opt-in types + subscriptionId |
| Ping / setLevel | ping, logging/setLevel | Removed. Log level = _meta["io.modelcontextprotocol/logLevel"] |
| Server→client RPC | server sends requests on SSE | MRTR: resultType: "input_required" + retry with inputResponses (SEP-2322) |
| Results | no discriminator | resultType: "complete" required (legacy omit = complete) |
| HTTP POST headers | optional | Mcp-Method + Mcp-Name required (SEP-2243) |
| List/read cache | none | ttlMs + cacheScope on list/read results (SEP-2549) |
| Tasks | core SEP-1686 (tasks/result, tasks/list) | Extension io.modelcontextprotocol/tasks; poll tasks/get; tasks/update; no tasks/list (SEP-2663) |
| Roots / sampling / logging | active | Deprecated (SEP-2577). Do not add new uses |
| DCR | common | Deprecated. Prefer CIMD (SEP-991). Keep DCR only as fallback |
| Resource not found | -32002 | -32602 |
| Header mismatch | -32001 | -32020 |
Creating a new MCP server (2026-07-28)
Still use the vendored plugin for product questions (remote HTTP vs MCPB, tool-design patterns, CIMD). Then apply this overlay before writing code:
- Transport: Streamable HTTP. No
Mcp-Session-Idcookie. Open push withsubscriptions/listen; thread app state as tool-arg handles. - Implement
server/discover(supportedVersionsincludes"2026-07-28"). - Every request
_metamust carry protocol version + client capabilities. - Every result includes
resultType. List endpoints includettlMs/cacheScope. - Need user input mid-tool → MRTR
InputRequiredResult, notelicitInput(). - Long work → tasks extension, poll
tasks/get. Do not implementtasks/result. - Auth: CIMD first; DCR only if the host cannot do CIMD.
- Language for this repo: Rust +
rmcp, not the TS/Python scaffolds in the plugin.
Scaffolds live in:
third_party/mcp-server-dev/skills/build-mcp-server/references/remote-http-scaffold.mdthird_party/mcp-server-dev/skills/build-mcp-server/references/auth.md(treat CIMD as required, DCR as fallback)
Migrating vmcp (this gateway)
vmcp is both an MCP server (/mcp, /mcp-proxy) and an MCP client
(upstream pool). Dual-protocol is mandatory: keep 2025-11-25 for existing
hosts (Cursor, tests) while serving 2026-07-28 for modern clients.
See docs/mcp-2026-07-28.md for the complexity assessment and work breakdown.
Do not delete LocalSessionManager or Last-Event-ID resume until the
legacy path is explicitly retired. rmcp already dual-stacks when
legacy_session_mode is true (default).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

