export type McpConfig = { endpoint: string; token?: string; /** Enables the remote PATCH tool. Off by default for a read-only MCP server. */ allowResolve?: boolean; /** Per-request network deadline. Defaults to 15 seconds. */ timeoutMs?: number; }; type JsonRpcRequest = { jsonrpc?: string; id?: string | number | null; method?: string; params?: Record; }; type JsonRpcResponse = { jsonrpc: '2.0'; id: string | number | null; result?: unknown; error?: { code: number; message: string; }; }; /** Handle one JSON-RPC message; returns the response, or null for notifications. */ export declare function handleMessage(msg: JsonRpcRequest, config: McpConfig): Promise; /** Parse CLI configuration. Resolve is intentionally disabled unless opted in. */ export declare function parseArgs(argv: string[], env: Record): McpConfig; /** * stdio loop: newline-delimited JSON-RPC messages. stdout carries protocol * messages only — diagnostics go to stderr. Calls are serialized so a resolve * cannot race a preceding list/mutation in a shared agent session. */ export declare function startStdioServer(config: McpConfig): void; export {};