diff --git a/src/examples/client/streamableHttpWithSseFallbackClient.ts b/src/examples/client/streamableHttpWithSseFallbackClient.ts index c3e5e345..86017403 100644 --- a/src/examples/client/streamableHttpWithSseFallbackClient.ts +++ b/src/examples/client/streamableHttpWithSseFallbackClient.ts @@ -32,14 +32,12 @@ async function main(): Promise { let client: Client; let transport: StreamableHTTPClientTransport | SSEClientTransport; - let transportType: 'streamable-http' | 'sse'; try { // Try connecting with automatic transport detection const connection = await connectWithBackwardsCompatibility(serverUrl); client = connection.client; transport = connection.transport; - transportType = connection.transportType; // Set up notification handler client.setNotificationHandler(LoggingMessageNotificationSchema, (notification) => { diff --git a/src/examples/server/simpleSseServer.ts b/src/examples/server/simpleSseServer.ts index cb2407d3..4c5aa446 100644 --- a/src/examples/server/simpleSseServer.ts +++ b/src/examples/server/simpleSseServer.ts @@ -1,5 +1,4 @@ import express, { Request, Response } from 'express'; -import { randomUUID } from "node:crypto"; import { McpServer } from '../../server/mcp.js'; import { SSEServerTransport } from '../../server/sse.js'; import { z } from 'zod';