Repository navigation
Description
Part of #5743. Split out of #6002 (item 7) so that issue can close — neither of these is fixable in this repo.
Both were surfaced by tracing why pkg/mcp/parser_integration_test.go changed behaviour under the go-sdk v1.7 bump (#5993). Both are worth reporting to toolhive-core, and possibly modelcontextprotocol/go-sdk.
(a) server/discover is sent over the deprecated HTTP+SSE message channel
MCP 2026-07-28 defines exactly two transport bindings — stdio and Streamable HTTP. mcpcompat's SSE server uses go-sdk's NewSSEHandler, whose transport implements no ProtocolVersionSupporter gate (only streamable.go does), so filterSupportedVersions advertises 2026-07-28 and the Modern-first client negotiates Modern over a 2024-11-05 transport. The Modern revision constrains the Streamable HTTP binding, not whatever an SDK pushes through a legacy channel — so this is non-conformant client/server behaviour, not spec.
Worth knowing: this produces an apparent contradiction inside ToolHive that is not a bug. parser_integration_test.go observes Modern negotiation over an sse-labelled endpoint, while probeRevision asserts that can never happen. Both are correct, because they are different layers: mcpcompat's SSE client reaches /messages, whereas vMCP's modernCall only ever POSTs to BaseURL, which is the /sse path. Anyone reconciling those two facts should read this issue first.
(b) mcpcompat/client.Initialize silently ignores the caller's requested ProtocolVersion
It calls Connect(ctx, tr, nil) with nil ClientSessionOptions, so the negotiated version is always latestProtocolVersion; only ClientInfo and Capabilities carry over from the caller's InitializeRequest. A caller explicitly asking for 2024-11-05 gets 2026-07-28 requested on the wire, with no error and no warning.
parser_integration_test.go does exactly this, which is why that test's behaviour changed on the v1.7 bump.
Work
- File both against
toolhive-core; escalate (a) tomodelcontextprotocol/go-sdkif the gate belongs in the SDK's SSE transport rather than the shim. - Link back here so the in-repo contradiction in (a) stays explained.
Generated with Claude Code
Activity
JAORMX commentedon Jul 27, 2026
Closing — this was filed in the wrong repository. Moved to stacklok/toolhive-core#193.
Neither item describes any work in ToolHive: both are
mcpcompatbehaviour, andtoolhive-core#156already established that shim defects are tracked there with upstream go-sdk asks called out as a section inside. As written, this issue was a reminder to file an issue elsewhere, sitting in a backlog where nobody who can act on it would see it.The one thing that looked like it might be ToolHive-side turns out not to be. Item (a) produces an apparent contradiction in this repo —
pkg/mcp/parser_integration_test.goobserves Modern negotiation over ansse-labelled endpoint, whileprobeRevisionasserts that cannot happen — but that is already explained in-tree, inprobeRevision's doc comment:modernCallis a single-endpoint POST and so can never reach a Modern endpoint through an/sseBaseURL, because that lives at a different path. No code comment or doc change is needed here.The disposition table in #6002 points at this issue; treat toolhive-core#193 as the live tracker.