/** * MCP Server Bootstrap for STDIO Transport * * This file is essential when using the stdio transport mechanism in the MCP server. * It solves a critical problem: separating JSON-RPC communication from logs/debug output. * * When using stdio as a transport layer for JSON-RPC: * - The parent process communicates with this process via stdin/stdout * - Without this bootstrap, logs and actual RPC messages would mix in stdout, * making it impossible for the parent process to parse the RPC responses * * What this file does: * 1. Redirects all console output to stderr instead of stdout * 2. Intercepts all stdout.write calls * 3. Analyzes the content being written to determine if it's a JSON-RPC message * 4. Only allows actual JSON-RPC messages to go to stdout * 5. Redirects all other output (logs, debug info) to stderr * * This separation ensures clean communication between processes while maintaining * the ability to log information for debugging purposes. */ export {}; //# sourceMappingURL=bootstrap.d.ts.map