From 6ec1084b3e9f128b4b38761ddb07612f95131aa5 Mon Sep 17 00:00:00 2001 From: FOWEPJF255 Date: Sun, 15 Nov 2026 03:10:46 +0000 Subject: [PATCH] fix(basic-host): negotiate modern MCP versions over HTTP --- examples/basic-host/src/implementation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/basic-host/src/implementation.ts b/examples/basic-host/src/implementation.ts index 5f680ffdc..2b65b7a50 100644 --- a/examples/basic-host/src/implementation.ts +++ b/examples/basic-host/src/implementation.ts @@ -52,7 +52,7 @@ export async function connectToServer(serverUrl: URL): Promise { async function connectWithFallback(serverUrl: URL): Promise { // Try Streamable HTTP first (modern transport) try { - const client = new Client(IMPLEMENTATION); + const client = new Client(IMPLEMENTATION, { versionNegotiation: { mode: "auto" } }); await client.connect(new StreamableHTTPClientTransport(serverUrl)); log.info("Connected via Streamable HTTP transport"); return client;