You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
2025-11-25 compliance polish: probe version, filter errors, version stance #5764
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.
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.
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.
Activity
JAORMX commentedon Jul 23, 2026
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-Versionheader, 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 trackingLATESTbecause the 2026-07-28 revision removesinitialize(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.
Send current protocol version in readiness probe
Send current MCP protocol version in readiness probe (#5940)
Return JSON-RPC error for filtered tool calls (#5944)
Add opt-in strict MCP-Protocol-Version validation
Add opt-in strict MCP-Protocol-Version validation (stacklok#5957)