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;