Skip to content

Teach MCP parser middleware the 2026-07-28 protocol vocabulary #5757

Closed as not planned

Description

@JAORMX

Part of #5743 (Workstream C: 2026-07-28 stateless readiness).

Work

Teach the MCP parser middleware (pkg/mcp/parser.go) and the authz/audit/telemetry consumers the 2026-07-28 vocabulary, so policy and audit aren't blind to the new protocol:

  • New methods: server/discover, subscriptions/listen, tasks/update (extension).
  • Removed methods to stop expecting: initialize, ping, logging/setLevel, resources/subscribe/unsubscribe, notifications/roots/list_changed, notifications/elicitation/complete.
  • MRTR shapes: results with required resultType (complete / input_required), inputRequests/inputResponses — server→client asks now live inside responses, which authz/audit should see.
  • _meta protocol fields: io.modelcontextprotocol/protocolVersion, clientInfo, clientCapabilities, subscriptionId, logLevel, task refs.
  • Mcp-Method/Mcp-Name request headers (required in 2026-07-28): these give middleware the method and tool/resource name without body parsing — a significant simplification/perf win for the whole chain; validate against the body (-32020 HeaderMismatch).
  • Error-code renumbering: MCP range -32020..-32099; resource-not-found -32002 → -32602 (audit/response parsing).

Depends on: the go-sdk v1.7 adoption issue for wire shapes; header handling can start from the RC schema now.

Activity

  1. added
    needs-triage
    on Jul 8, 2026
  2. JAORMX commented on Jul 8, 2026

    @JAORMX
    CollaboratorAuthor

    Deferred: this work is downstream of the 2026-07-28 stateless design issues (#5755/#5756) and the spec/go-sdk going final. Listed in epic #5743 under expected follow-ups; will be re-filed when the design makes it actionable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions