This commit is contained in:
ihrpr 2025-04-16 14:44:45 +01:00
commit 7341c9a288
No known key found for this signature in database
2 changed files with 0 additions and 3 deletions

View file

@ -32,14 +32,12 @@ async function main(): Promise<void> {
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) => {

View file

@ -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';