From 7341c9a288658d21209747363b5750b8cabda010 Mon Sep 17 00:00:00 2001 From: ihrpr Date: Wed, 16 Apr 2025 14:44:45 +0100 Subject: [PATCH] fix lint --- src/examples/client/streamableHttpWithSseFallbackClient.ts | 2 -- src/examples/server/simpleSseServer.ts | 1 - 2 files changed, 3 deletions(-) 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';