{"version":3,"file":"index.mjs","names":[],"sources":["../../src/testing/index.ts"],"sourcesContent":["import type { McpHandlerRequestOptions } from \"@modelcontextprotocol/server\";\nimport type { McpServerRuntime } from \"../mcp-server.runtime.ts\";\n\n/** Create a fetch implementation that routes requests directly into a runtime without a socket. */\nexport function createMcpServerTestFetch(\n\truntime: Pick<McpServerRuntime, \"fetch\">,\n\toptions?: McpHandlerRequestOptions,\n): typeof fetch {\n\treturn async (input, init) => {\n\t\tconst request = new Request(input, init);\n\t\treturn runtime.fetch(request, options);\n\t};\n}\n"],"mappings":";;AAIA,SAAgB,yBACf,SACA,SACe;CACf,OAAO,OAAO,OAAO,SAAS;EAC7B,MAAM,UAAU,IAAI,QAAQ,OAAO,IAAI;EACvC,OAAO,QAAQ,MAAM,SAAS,OAAO;CACtC;AACD"}