Skip to content

Wire MCP 2026-07-28 revision classification into the vMCP client edge #5909

Closed

Description

@jhrozek

Part of #5756. Design: RFC THV-0083 (Phase 1); arch doc docs/arch/stateless-vmcp-design.md §"Revision classification" + §"Phase 1". Head-start-safe: additive, no routing change.

Wire MCP 2026-07-28 ("Modern") revision classification into the vMCP client edge. Legacy stays the only executing path — this slice classifies, validates, and rejects malformed Modern requests, nothing more.

Changes

  • Call mcp.ClassifyRevision (pkg/mcp/revision.go) at the vMCP decode seam, passing the MCP-Protocol-Version header; validate Mcp-Method/Mcp-Name against the decoded body (base64-sentinel decoded, not string-compared).
  • Validate presence of the required Modern _meta fields (protocolVersion, clientCapabilities; clientInfo optional); reject via pkg/mcp/classification_response.go with the classifier's per-case code (-32602/-32020/-32021/-32022) — do not hand-build the error envelope.
  • Label server/discover in the parser vocabulary; source clientInfo/protocolVersion for telemetry.
  • Do NOT allow-list server/discover in the authz map (stays default-denied until Phase 2). No routing/dispatch change.

Dependencies

None. Reuses the shipped classifier (added in #5834, modified in #5839). Reference implementation to mirror: the streamable/transparent proxies (pkg/transport/proxy/**).

Verification

  • ClassifyRevision truth table at the vMCP seam; base64-sentinel Mcp-Name decoded; header/body protocolVersion mismatch → -32020; missing required field → correct per-case code.
  • Legacy traffic completely unchanged (the load-bearing assertion).

Activity

  1. added
    needs-triage
    on Jul 22, 2026
  2. removed
    needs-triage
    on Jul 22, 2026
  3. self-assigned this
    on Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions