/** * Command-line front end of the MCP server. Parses options and wires the * transports; `bin/excaliplant-mcp.mjs` only forwards the process streams. * @module mcp/cli */ export type CliIo = { stdin: NodeJS.ReadableStream; stdout: NodeJS.WritableStream; stderr: NodeJS.WritableStream; env?: Record; /** * Stops the server (SIGINT/SIGTERM in the real process). */ signal?: AbortSignal; /** * Called once the HTTP listener is up. */ onListening?: () => void; }; /** * Run the server on the real process streams: SIGINT/SIGTERM stop it, stdout * carries protocol messages only. Used by `excaliplant-mcp` (and available to * other launchers such as an `excaliplant mcp` subcommand). Sets * `process.exitCode`. * @param {string[]} argv Arguments after the program name. * @returns {Promise} */ export declare function runMcpProcess(argv: string[]): Promise; /** * Run the server. Resolves with the process exit code. * @param {string[]} argv Arguments after the program name. * @param {CliIo} io * @returns {Promise} */ export declare function runMcpCli(argv: string[], io: CliIo): Promise;