Skip to content

fix(basic-host): negotiate modern MCP versions over HTTP - #858

Open
FOWEPJF255 wants to merge 1 commit into
modelcontextprotocol:mainfrom
FOWEPJF255:fix/basic-host-modern-negotiation-20261115
Open

FOWEPJF255 wants to merge 1 commit into
modelcontextprotocol:mainfrom
FOWEPJF255:fix/basic-host-modern-negotiation-20261115

Conversation

@FOWEPJF255

Copy link
Copy Markdown

Fixes #857

Summary

Opt the basic host's Streamable HTTP client into MCP version negotiation. With the pinned @modelcontextprotocol/client 2.0.0, the default client starts with the legacy initialize request; mode: "auto" starts with server/discover, allowing the host to connect to 2026-07-28-only servers. The separate SSE fallback keeps its existing legacy behavior.

Validation

  • A transport-level probe against the pinned client confirmed initialize before this change and server/discover with mode: "auto".
  • The SDK build and npm run --workspace examples/basic-host build passed on Windows with Node 24.18.0 and Bun 1.3.13. The current checkout lacks @types/cors, so the example build used a temporary local declare module "cors" shim; the shim is not included in this PR.
  • git diff --check passed.

The full browser E2E suite was not run.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

basic-host cannot connect to MCP 2026-07-28-only servers (Client uses legacy negotiation by default)

1 participant