/** * MCP Transport Client - Supports HTTP, Streamable-HTTP, and SSE transports * * Transport types: * - http: Simple HTTP POST to /mcp (memory-mcp-sqlite custom) * - streamable-http: MCP 2025-03-26 spec - POST to /mcp with Accept header * - sse: Deprecated MCP 2024-11-05 spec - GET /sse + POST /messages/{session_id} */ import type { JsonRpcRequest, JsonRpcResponse, TransportType } from "../shared/types.js"; /** * Client configuration */ interface DaemonClient { port: number; transport: TransportType; sessionId?: string; baseUrl: string; projectPath?: string; sseSessionId?: string; sseReader?: ReadableStreamDefaultReader; sseBuffer?: string; sseReading?: boolean; pendingResponses?: Map void>; } /** * Create a daemon client with transport type and optional project path */ export declare function createDaemonClient(port: number, transport?: TransportType, projectPath?: string): DaemonClient; /** * Send a JSON-RPC request to the daemon * Routes to appropriate transport handler based on client config */ export declare function sendRequest(client: DaemonClient, message: JsonRpcRequest): Promise; /** * Send a notification to the daemon (no response expected) */ export declare function sendNotification(client: DaemonClient, message: JsonRpcRequest): Promise; /** * Close the session */ export declare function closeSession(client: DaemonClient): Promise; /** * Check if daemon is responding * Uses transport-specific health check */ export declare function pingDaemon(port: number, transport?: TransportType): Promise; export {}; //# sourceMappingURL=client.d.ts.map