Skip to content

2025-11-25 compliance polish: probe version, filter errors, version stance #5764

Description

@JAORMX

Part of #5743 (Workstream B: 2025-11-25 compliance). Bundles three small, independent polish items (consolidates #5750, #5751, #5752 — each is roughly an afternoon and they don't warrant separate tracking).

1. Readiness probe protocol version

The runner's readiness probe hardcodes "protocolVersion": "2024-11-05" in its initialize and the MCP-Protocol-Version header (pkg/runner/runner.go:935,986). Servers that reject ancient versions fail readiness.

  • Send a current protocol version (SDK latest, or configurable per workload).

2. JSON-RPC error for filtered tool calls

The tool-call gating middleware returns HTTP 400 when blocking a filtered tool (pkg/mcp/tool_filter.go, acknowledged in a comment). Clients expect a protocol-level error.

  • Return a proper JSON-RPC error over the negotiated response mode; keep 400 only for malformed HTTP/JSON.

3. Version-agnostic proxying: document + optional strict mode

Proxies accept any MCP-Protocol-Version (pkg/transport/proxy/streamable/utils.go — unconditional true). Defensible for a transparent proxy, but undocumented; spec says invalid/unsupported → 400.

  • Document the stance in docs/arch/.
  • Add an opt-in strict validation mode (400 on invalid/unsupported, assume 2025-03-26 when absent). Becomes more relevant for 2026-07-28 dual-protocol version detection.

Generated with Claude Code

Activity

  1. added
    needs-triage
    on Jul 8, 2026
  2. removed
    needs-triage
    on Jul 13, 2026
  3. self-assigned this
    on Jul 23, 2026
  4. JAORMX commented on Jul 23, 2026

    @JAORMX
    CollaboratorAuthor

    Item 1 (readiness probe protocol version) is addressed in #5940.

    Note a deliberate deviation from this item's wording: rather than setting a current value on the MCP-Protocol-Version header, the PR drops that header from the initialize probe and advertises the current revision (2025-11-25, pinned) in the initialize body only. A spec review found the header can trigger a spec-mandated HTTP 400 from backends that only support an older revision (the header is scoped to post-init requests carrying the negotiated version), which would falsely mark a healthy backend as not-ready; body-based negotiation degrades gracefully instead. The version is pinned rather than tracking LATEST because the 2026-07-28 revision removes initialize (that migration is #5754).

    Items 2 (JSON-RPC error for filtered tool calls) and 3 (version-agnostic proxying: docs + opt-in strict mode) remain open under this issue.

  5. added a commit that references this issue on Jul 25, 2026
    97a9dfa
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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions