#!/usr/bin/env node /** * MCP Proxy - Bridges stdio (Claude) to HTTP (MCP Daemon) * * This proxy: * 1. Receives JSON-RPC messages from Claude via stdin * 2. Ensures the target daemon is running (starts if needed) * 3. Forwards requests to the daemon via appropriate transport (HTTP, Streamable-HTTP, or SSE) * 4. Returns responses to Claude via stdout * * Multi-session stability: * - Claude Code sends SIGINT to existing MCP processes when new sessions start * - We ignore SIGINT to maintain connection for the original session * - Each session gets its own proxy, but they share the same daemon * * Usage: * node proxy/index.js --target memory * node proxy/index.js --target code-index * node proxy/index.js --target ast-grep */ export {}; //# sourceMappingURL=index.d.ts.map