/** * MCP transport utilities — stateful session-based mode. * * Each client session owns a StreamableHTTPServerTransport + McpServer pair. * SDK's stateful mode (sessionIdGenerator) handles SSE stream setup and session management. * Notifications are broadcast via SessionManager across all active sessions. */ import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js'; /** * Sets up debug logging on a transport instance. */ export declare function setupTransportLogging(transport: StreamableHTTPServerTransport): void; /** * Initializes the global transport layer. * With stateful session-based transport, this is a no-op. * Kept for backward compatibility with app.ts startup sequence. */ export declare function initGlobalTransport(): void; /** * Creates a new MCP transport and server instance for a single request (stateless mode). * Each call returns isolated instances that should be GC'd after the request completes. * This restores the v1.3.0 per-request transport pattern for clients like CherryStudio * that do not properly support stateful sessions. */ export declare function createPerRequestTransport(): Promise<{ transport: StreamableHTTPServerTransport; server: import('@modelcontextprotocol/sdk/server/mcp.js').McpServer; }>; //# sourceMappingURL=global-transport.d.ts.map