import type { createMcpHandler } from "@modelcontextprotocol/server"; type MCPServerFactory = Parameters[0]; export interface MCPFetchHandlerOptions { /** Create the transport's MCP server without coupling it to a host runtime. */ createServer: MCPServerFactory; /** Reuse a body already parsed by a framework adapter. */ parsedBody?: unknown; /** Observe an initialize request without coupling transport to telemetry. */ onInitialize?: (request: MCPInitializeRequest) => void; } export interface MCPInitializeRequest { params?: { capabilities?: unknown; clientInfo?: { name?: unknown; version?: unknown; }; protocolVersion?: unknown; }; } /** * Execute an authenticated MCP request using only Web Platform request and * response primitives. * * Authentication and server construction remain with the host, which supplies * a factory only after applying its existing request policy. */ export declare function handleMcpFetchRequest(request: Request, options: MCPFetchHandlerOptions): Promise; export {};