• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 30012919642

23 Jul 2026 01:49PM UTC coverage: 69.119% (-0.01%) from 69.131%
30012919642

push

github

web-flow
Send current MCP protocol version in readiness probe (#5940)

Send current protocol version in readiness probe

The readiness probe hardcoded protocolVersion "2024-11-05" in its
initialize request. MCP servers that reject that ancient revision report
as never-ready even when healthy, so ToolHive waits out the full timeout
before failing to start them.

Advertise a pinned, current revision (2025-11-25) in the initialize body
instead. The version is deliberately pinned rather than tracking
mcp.LATEST_PROTOCOL_VERSION: the upcoming 2026-07-28 revision removes the
initialize method entirely (SEP-2575), so coupling the probe to a moving
"latest" constant would eventually emit a method:"initialize" request
stamped with a version that no longer defines it. The 2026-07-28 path
(server/discover) is deferred to #5754.

Also stop sending the MCP-Protocol-Version header on the initialize
request. The spec scopes that header to post-initialization requests
carrying the negotiated version and requires a server to reject an
unsupported value with HTTP 400 -- so a header would let a backend that
only supports an older revision fail the probe, whereas body-based
version negotiation degrades gracefully to HTTP 200. This closes item 1
of #5764.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

10 of 10 new or added lines in 1 file covered. (100.0%)

23 existing lines in 5 files now uncovered.

77093 of 111537 relevant lines covered (69.12%)

75.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.56
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc