import{generateMcpToolHandlersEntry as n}from"./codegen/index.js";const a="mcp-tool-handlers-ns",p=r=>({name:"esbuild-redocly-mcp-tool-handlers-resolver",setup:t=>{t.onResolve({filter:/@portal\/mcp-tool-handlers/},l=>{const o=Array.from(r.mcpToolHandlers.values()).map(e=>e.importPath);return{namespace:a,path:l.path,watchFiles:o}}),t.onLoad({filter:/@portal\/mcp-tool-handlers/,namespace:a},()=>({contents:n(Array.from(r.mcpToolHandlers.entries()).map(([o,e])=>[o,e.importPath])),resolveDir:"/",loader:"ts"}))}});export{p as McpToolHandlersResolver};
