import type { IncomingMessage, ServerResponse } from 'node:http'; /** * The MCP streamable-HTTP transport, stateless: each POST carries one * JSON-RPC message and gets a JSON response (no sessions, no SSE stream — * the spec allows a plain JSON reply, and every tool here answers at once). * Mounted at /mcp by the dev server; never part of a build. */ export declare function mcpHttpHandler(): (req: IncomingMessage, res: ServerResponse) => void; /** * A same-machine Origin. The dev server's write endpoints share this with the * MCP route: both accept requests that edit the user's source, so both need * the same DNS-rebinding guard. */ export declare function isLocalOrigin(origin: string): boolean;