/** * Minimal MCP JSON-RPC 2.0 Protocol Handler * * Routes initialize, tools/list, and tools/call methods. * No SDK, no transport layer — just a function from parsed body to response body. */ import type { ValidatedCaller } from '../oauth/validate.ts'; interface JsonRpcResponse { jsonrpc: '2.0'; id: string | number | null; result?: unknown; error?: { code: number; message: string; data?: unknown; }; } /** * Handle a single JSON-RPC request. * * Returns a JSON-RPC response object, or null for notifications (no id). */ export declare function handleJsonRpc(body: unknown, caller: ValidatedCaller): Promise; export {}; //# sourceMappingURL=protocol.d.ts.map