mcp-use 2.0.0-beta.9 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1237) hide show
  1. package/dist/bin.js +1 -179
  2. package/dist/branding.d.ts +7 -11
  3. package/dist/buffered-response.d.ts +27 -0
  4. package/dist/chunk-273ZVKJJ.js +2 -0
  5. package/dist/{chunk-GTOOHAI2.js → chunk-GX6PGIEO.js} +33 -143
  6. package/dist/chunk-IS7FKXFR.js +1 -0
  7. package/dist/chunk-KGTOBJW2.js +1 -0
  8. package/dist/chunk-MIZQEWZS.js +1 -0
  9. package/dist/chunk-OJF6B5EU.js +1 -0
  10. package/dist/chunk-PSKSL567.js +1 -0
  11. package/dist/chunk-XYHHP43G.js +1 -0
  12. package/dist/chunk-Y26DNVWA.js +3 -0
  13. package/dist/chunk-ZMU5USAZ.js +1 -0
  14. package/dist/completable.d.ts +0 -1
  15. package/dist/config.d.ts +24 -84
  16. package/dist/context.d.ts +154 -60
  17. package/dist/fetch-app.d.ts +3 -28
  18. package/dist/index-node.js +781 -0
  19. package/dist/index.d.ts +31 -14
  20. package/dist/index.js +41 -2548
  21. package/dist/internal/node-http-unavailable.js +1 -0
  22. package/dist/internal/node-http.js +1 -0
  23. package/dist/internal/resource-completion.js +1 -7
  24. package/dist/internal/usage.js +1 -0
  25. package/dist/landing-handler-TG6LVQBI.js +1 -0
  26. package/dist/landing-handler.d.ts +1 -2
  27. package/dist/landing.d.ts +19 -5
  28. package/dist/landing.js +1 -7
  29. package/dist/listen-address.d.ts +8 -0
  30. package/dist/logging.d.ts +0 -1
  31. package/dist/mcp-proxy-NETCUGUD.js +2 -0
  32. package/dist/mcp-proxy.d.ts +158 -0
  33. package/dist/middleware/cors.d.ts +0 -1
  34. package/dist/middleware/mcp-middleware.d.ts +178 -104
  35. package/dist/mount-mcp.d.ts +0 -1
  36. package/dist/next/config.d.ts +67 -0
  37. package/dist/next/handler.d.ts +32 -0
  38. package/dist/next/index.d.ts +9 -0
  39. package/dist/next/index.js +1 -0
  40. package/dist/node-bridge.d.ts +33 -4
  41. package/dist/node-bridge.js +1 -151
  42. package/dist/node-http-unavailable.d.ts +9 -0
  43. package/dist/node-http.d.ts +2 -0
  44. package/dist/oauth/adapters.d.ts +0 -1
  45. package/dist/oauth/auth0.d.ts +24 -1
  46. package/dist/oauth/auth0.js +1 -61
  47. package/dist/oauth/better-auth.d.ts +23 -1
  48. package/dist/oauth/better-auth.js +1 -76
  49. package/dist/oauth/clerk.d.ts +30 -3
  50. package/dist/oauth/clerk.js +1 -70
  51. package/dist/oauth/errors.d.ts +3 -0
  52. package/dist/oauth/guards.d.ts +0 -1
  53. package/dist/oauth/index.d.ts +0 -1
  54. package/dist/oauth/index.js +1 -28
  55. package/dist/oauth/internal.d.ts +0 -1
  56. package/dist/oauth/jwt.d.ts +10 -4
  57. package/dist/oauth/keycloak.d.ts +28 -1
  58. package/dist/oauth/keycloak.js +1 -94
  59. package/dist/oauth/provider.d.ts +17 -2
  60. package/dist/oauth/supabase.d.ts +38 -2
  61. package/dist/oauth/supabase.js +1 -101
  62. package/dist/oauth/workos.d.ts +27 -1
  63. package/dist/oauth/workos.js +1 -77
  64. package/dist/openapi/index.d.ts +0 -1
  65. package/dist/openapi/index.js +1 -7
  66. package/dist/openapi/types.d.ts +0 -1
  67. package/dist/prompts.d.ts +7 -4
  68. package/dist/public-route-DAQJGS6K.js +1 -0
  69. package/dist/react/components/error-boundary.d.ts +3 -1
  70. package/dist/react/components/image.d.ts +0 -1
  71. package/dist/react/components/model-context.d.ts +8 -57
  72. package/dist/react/components/theme-provider.d.ts +7 -4
  73. package/dist/react/components/view-controls.d.ts +0 -1
  74. package/dist/react/hooks/use-call-tool.d.ts +29 -12
  75. package/dist/react/hooks/use-display-mode.d.ts +0 -1
  76. package/dist/react/hooks/use-files.d.ts +0 -1
  77. package/dist/react/hooks/use-host-context.d.ts +5 -1
  78. package/dist/react/hooks/use-open-external.d.ts +0 -1
  79. package/dist/react/hooks/use-send-follow-up.d.ts +0 -1
  80. package/dist/react/hooks/use-send-size-changed.d.ts +0 -1
  81. package/dist/react/hooks/use-tool-context.d.ts +0 -1
  82. package/dist/react/hooks/use-view-state.d.ts +23 -0
  83. package/dist/react/hooks/use-view-theme.d.ts +0 -1
  84. package/dist/react/hooks/use-view-tool.d.ts +3 -4
  85. package/dist/react/index.d.ts +9 -9
  86. package/dist/react/index.js +286 -131
  87. package/dist/react/public-assets.d.ts +21 -6
  88. package/dist/react/runtime/bootstrap-view.d.ts +3 -4
  89. package/dist/react/runtime/model-context-store.d.ts +34 -69
  90. package/dist/react/runtime/view-config.d.ts +0 -1
  91. package/dist/react/runtime/view-runtime-context.d.ts +0 -1
  92. package/dist/react/runtime/view-runtime.d.ts +4 -6
  93. package/dist/react/types/file-types.d.ts +2 -1
  94. package/dist/react/types/host-types.d.ts +2 -1
  95. package/dist/react/types/register.d.ts +11 -4
  96. package/dist/react/types/result-types.d.ts +0 -1
  97. package/dist/resource-completion.d.ts +0 -1
  98. package/dist/resources.d.ts +14 -6
  99. package/dist/response-conversion.d.ts +25 -0
  100. package/dist/response-helpers.d.ts +231 -0
  101. package/dist/server.d.ts +118 -51
  102. package/dist/tools.d.ts +14 -14
  103. package/dist/usage.d.ts +14 -0
  104. package/dist/views/capabilities.d.ts +0 -1
  105. package/dist/views/constants.d.ts +1 -2
  106. package/dist/views/csp-env.d.ts +0 -1
  107. package/dist/views/document.d.ts +9 -11
  108. package/dist/views/index.d.ts +0 -1
  109. package/dist/views/origin.d.ts +0 -1
  110. package/dist/views/public-route.d.ts +2 -3
  111. package/dist/views/register.d.ts +1 -2
  112. package/dist/views/routes.d.ts +1 -2
  113. package/dist/views/types.d.ts +21 -17
  114. package/dist/views/wire.d.ts +7 -7
  115. package/dist/vite-client.d.ts +1 -0
  116. package/package.json +41 -21
  117. package/dist/.tsbuildinfo +0 -1
  118. package/dist/bin/args.d.ts +0 -61
  119. package/dist/bin/args.d.ts.map +0 -1
  120. package/dist/bin/main.d.ts +0 -32
  121. package/dist/bin/main.d.ts.map +0 -1
  122. package/dist/bin/start.d.ts +0 -40
  123. package/dist/bin/start.d.ts.map +0 -1
  124. package/dist/bin.d.ts +0 -3
  125. package/dist/bin.d.ts.map +0 -1
  126. package/dist/bin.js.map +0 -1
  127. package/dist/branding.d.ts.map +0 -1
  128. package/dist/chunk-AATFAERC.js +0 -384
  129. package/dist/chunk-AATFAERC.js.map +0 -1
  130. package/dist/chunk-DPL7OEXC.js +0 -518
  131. package/dist/chunk-DPL7OEXC.js.map +0 -1
  132. package/dist/chunk-DQ7LE4ZA.js +0 -237
  133. package/dist/chunk-DQ7LE4ZA.js.map +0 -1
  134. package/dist/chunk-FC2Z2VFO.js +0 -99
  135. package/dist/chunk-FC2Z2VFO.js.map +0 -1
  136. package/dist/chunk-GTOOHAI2.js.map +0 -1
  137. package/dist/chunk-IG2BCCMU.js +0 -98
  138. package/dist/chunk-IG2BCCMU.js.map +0 -1
  139. package/dist/chunk-KIZ72TIK.js +0 -38
  140. package/dist/chunk-KIZ72TIK.js.map +0 -1
  141. package/dist/chunk-QUUANIE4.js +0 -125
  142. package/dist/chunk-QUUANIE4.js.map +0 -1
  143. package/dist/chunk-RQRT27Q3.js +0 -454
  144. package/dist/chunk-RQRT27Q3.js.map +0 -1
  145. package/dist/chunk-SMN75YED.js +0 -66
  146. package/dist/chunk-SMN75YED.js.map +0 -1
  147. package/dist/chunk-STCR3P5O.js +0 -95
  148. package/dist/chunk-STCR3P5O.js.map +0 -1
  149. package/dist/chunk-XUD22N3Y.js +0 -156
  150. package/dist/chunk-XUD22N3Y.js.map +0 -1
  151. package/dist/chunk-Z326HADF.js +0 -82
  152. package/dist/chunk-Z326HADF.js.map +0 -1
  153. package/dist/chunk-ZMIKQPSO.js +0 -151
  154. package/dist/chunk-ZMIKQPSO.js.map +0 -1
  155. package/dist/cli/build.d.ts +0 -61
  156. package/dist/cli/build.d.ts.map +0 -1
  157. package/dist/cli/dev-api.d.ts +0 -49
  158. package/dist/cli/dev-api.d.ts.map +0 -1
  159. package/dist/cli/dev.d.ts +0 -101
  160. package/dist/cli/dev.d.ts.map +0 -1
  161. package/dist/cli/entry.d.ts +0 -31
  162. package/dist/cli/entry.d.ts.map +0 -1
  163. package/dist/cli/index.d.ts +0 -17
  164. package/dist/cli/index.d.ts.map +0 -1
  165. package/dist/cli/port.d.ts +0 -30
  166. package/dist/cli/port.d.ts.map +0 -1
  167. package/dist/cli/tools-declaration.d.ts +0 -22
  168. package/dist/cli/tools-declaration.d.ts.map +0 -1
  169. package/dist/cli/tunnel.d.ts +0 -46
  170. package/dist/cli/tunnel.d.ts.map +0 -1
  171. package/dist/cli/views-bindings.d.ts +0 -30
  172. package/dist/cli/views-bindings.d.ts.map +0 -1
  173. package/dist/cli/views-plugin.d.ts +0 -47
  174. package/dist/cli/views-plugin.d.ts.map +0 -1
  175. package/dist/cli/views.d.ts +0 -75
  176. package/dist/cli/views.d.ts.map +0 -1
  177. package/dist/cli/vite-config.d.ts +0 -21
  178. package/dist/cli/vite-config.d.ts.map +0 -1
  179. package/dist/cli/workspace.d.ts +0 -107
  180. package/dist/cli/workspace.d.ts.map +0 -1
  181. package/dist/commands/build.d.ts +0 -8
  182. package/dist/commands/build.d.ts.map +0 -1
  183. package/dist/commands/build.js +0 -374
  184. package/dist/commands/build.js.map +0 -1
  185. package/dist/commands/client.d.ts +0 -22
  186. package/dist/commands/client.d.ts.map +0 -1
  187. package/dist/commands/client.js +0 -14
  188. package/dist/commands/client.js.map +0 -1
  189. package/dist/commands/cloud-api.d.ts +0 -70
  190. package/dist/commands/cloud-api.d.ts.map +0 -1
  191. package/dist/commands/deploy.d.ts +0 -3
  192. package/dist/commands/deploy.d.ts.map +0 -1
  193. package/dist/commands/deploy.js +0 -242
  194. package/dist/commands/deploy.js.map +0 -1
  195. package/dist/commands/deployments.d.ts +0 -3
  196. package/dist/commands/deployments.d.ts.map +0 -1
  197. package/dist/commands/deployments.js +0 -213
  198. package/dist/commands/deployments.js.map +0 -1
  199. package/dist/commands/dev.d.ts +0 -8
  200. package/dist/commands/dev.d.ts.map +0 -1
  201. package/dist/commands/dev.js +0 -656
  202. package/dist/commands/dev.js.map +0 -1
  203. package/dist/commands/identity.d.ts +0 -3
  204. package/dist/commands/identity.d.ts.map +0 -1
  205. package/dist/commands/identity.js +0 -192
  206. package/dist/commands/identity.js.map +0 -1
  207. package/dist/commands/load-client.d.ts +0 -11
  208. package/dist/commands/load-client.d.ts.map +0 -1
  209. package/dist/commands/organizations.d.ts +0 -3
  210. package/dist/commands/organizations.d.ts.map +0 -1
  211. package/dist/commands/organizations.js +0 -97
  212. package/dist/commands/organizations.js.map +0 -1
  213. package/dist/commands/screenshot.d.ts +0 -3
  214. package/dist/commands/screenshot.d.ts.map +0 -1
  215. package/dist/commands/screenshot.js +0 -463
  216. package/dist/commands/screenshot.js.map +0 -1
  217. package/dist/commands/servers.d.ts +0 -3
  218. package/dist/commands/servers.d.ts.map +0 -1
  219. package/dist/commands/servers.js +0 -278
  220. package/dist/commands/servers.js.map +0 -1
  221. package/dist/commands/shared.d.ts +0 -44
  222. package/dist/commands/shared.d.ts.map +0 -1
  223. package/dist/commands/skills.d.ts +0 -3
  224. package/dist/commands/skills.d.ts.map +0 -1
  225. package/dist/commands/skills.js +0 -84
  226. package/dist/commands/skills.js.map +0 -1
  227. package/dist/commands/start.d.ts +0 -8
  228. package/dist/commands/start.d.ts.map +0 -1
  229. package/dist/commands/start.js +0 -72
  230. package/dist/commands/start.js.map +0 -1
  231. package/dist/completable.d.ts.map +0 -1
  232. package/dist/config.d.ts.map +0 -1
  233. package/dist/context.d.ts.map +0 -1
  234. package/dist/fetch-app.d.ts.map +0 -1
  235. package/dist/index.d.ts.map +0 -1
  236. package/dist/index.js.map +0 -1
  237. package/dist/inspector-shell.d.ts +0 -90
  238. package/dist/inspector-shell.d.ts.map +0 -1
  239. package/dist/internal/resource-completion.js.map +0 -1
  240. package/dist/landing-handler-3VN4BMR2.js +0 -34
  241. package/dist/landing-handler-3VN4BMR2.js.map +0 -1
  242. package/dist/landing-handler.d.ts.map +0 -1
  243. package/dist/landing.d.ts.map +0 -1
  244. package/dist/landing.js.map +0 -1
  245. package/dist/logging.d.ts.map +0 -1
  246. package/dist/middleware/cors.d.ts.map +0 -1
  247. package/dist/middleware/mcp-middleware.d.ts.map +0 -1
  248. package/dist/mount-mcp.d.ts.map +0 -1
  249. package/dist/node-bridge.d.ts.map +0 -1
  250. package/dist/node-bridge.js.map +0 -1
  251. package/dist/oauth/adapters.d.ts.map +0 -1
  252. package/dist/oauth/auth0.d.ts.map +0 -1
  253. package/dist/oauth/auth0.js.map +0 -1
  254. package/dist/oauth/better-auth.d.ts.map +0 -1
  255. package/dist/oauth/better-auth.js.map +0 -1
  256. package/dist/oauth/clerk.d.ts.map +0 -1
  257. package/dist/oauth/clerk.js.map +0 -1
  258. package/dist/oauth/guards.d.ts.map +0 -1
  259. package/dist/oauth/index.d.ts.map +0 -1
  260. package/dist/oauth/index.js.map +0 -1
  261. package/dist/oauth/internal.d.ts.map +0 -1
  262. package/dist/oauth/jwt.d.ts.map +0 -1
  263. package/dist/oauth/keycloak.d.ts.map +0 -1
  264. package/dist/oauth/keycloak.js.map +0 -1
  265. package/dist/oauth/provider.d.ts.map +0 -1
  266. package/dist/oauth/supabase.d.ts.map +0 -1
  267. package/dist/oauth/supabase.js.map +0 -1
  268. package/dist/oauth/workos.d.ts.map +0 -1
  269. package/dist/oauth/workos.js.map +0 -1
  270. package/dist/openapi/index.d.ts.map +0 -1
  271. package/dist/openapi/index.js.map +0 -1
  272. package/dist/openapi/types.d.ts.map +0 -1
  273. package/dist/prompts.d.ts.map +0 -1
  274. package/dist/public-route-5JEGFEIN.js +0 -9
  275. package/dist/public-route-5JEGFEIN.js.map +0 -1
  276. package/dist/react/components/error-boundary.d.ts.map +0 -1
  277. package/dist/react/components/image.d.ts.map +0 -1
  278. package/dist/react/components/model-context.d.ts.map +0 -1
  279. package/dist/react/components/theme-provider.d.ts.map +0 -1
  280. package/dist/react/components/view-controls.d.ts.map +0 -1
  281. package/dist/react/hooks/use-call-tool.d.ts.map +0 -1
  282. package/dist/react/hooks/use-display-mode.d.ts.map +0 -1
  283. package/dist/react/hooks/use-files.d.ts.map +0 -1
  284. package/dist/react/hooks/use-host-context.d.ts.map +0 -1
  285. package/dist/react/hooks/use-open-external.d.ts.map +0 -1
  286. package/dist/react/hooks/use-send-follow-up.d.ts.map +0 -1
  287. package/dist/react/hooks/use-send-size-changed.d.ts.map +0 -1
  288. package/dist/react/hooks/use-tool-context.d.ts.map +0 -1
  289. package/dist/react/hooks/use-view-theme.d.ts.map +0 -1
  290. package/dist/react/hooks/use-view-tool.d.ts.map +0 -1
  291. package/dist/react/index.d.ts.map +0 -1
  292. package/dist/react/index.js.map +0 -1
  293. package/dist/react/public-assets.d.ts.map +0 -1
  294. package/dist/react/runtime/bootstrap-view.d.ts.map +0 -1
  295. package/dist/react/runtime/model-context-store.d.ts.map +0 -1
  296. package/dist/react/runtime/view-config.d.ts.map +0 -1
  297. package/dist/react/runtime/view-runtime-context.d.ts.map +0 -1
  298. package/dist/react/runtime/view-runtime.d.ts.map +0 -1
  299. package/dist/react/types/file-types.d.ts.map +0 -1
  300. package/dist/react/types/host-types.d.ts.map +0 -1
  301. package/dist/react/types/register.d.ts.map +0 -1
  302. package/dist/react/types/result-types.d.ts.map +0 -1
  303. package/dist/resource-completion.d.ts.map +0 -1
  304. package/dist/resources.d.ts.map +0 -1
  305. package/dist/server.d.ts.map +0 -1
  306. package/dist/tools.d.ts.map +0 -1
  307. package/dist/views/capabilities.d.ts.map +0 -1
  308. package/dist/views/constants.d.ts.map +0 -1
  309. package/dist/views/csp-env.d.ts.map +0 -1
  310. package/dist/views/document.d.ts.map +0 -1
  311. package/dist/views/index.d.ts.map +0 -1
  312. package/dist/views/origin.d.ts.map +0 -1
  313. package/dist/views/public-route.d.ts.map +0 -1
  314. package/dist/views/register.d.ts.map +0 -1
  315. package/dist/views/routes.d.ts.map +0 -1
  316. package/dist/views/types.d.ts.map +0 -1
  317. package/dist/views/wire.d.ts.map +0 -1
  318. package/node_modules/@modelcontextprotocol/client/LICENSE +0 -216
  319. package/node_modules/@modelcontextprotocol/client/README.md +0 -26
  320. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-Asx17_Co.mjs +0 -7069
  321. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-Asx17_Co.mjs.map +0 -1
  322. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B7GnTXYx.d.mts +0 -1054
  323. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B7GnTXYx.d.mts.map +0 -1
  324. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B_4czhCS.d.cts +0 -1054
  325. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B_4czhCS.d.cts.map +0 -1
  326. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-DNzBrkxq.cjs +0 -7086
  327. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-DNzBrkxq.cjs.map +0 -1
  328. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-D9GAttn8.d.cts +0 -59
  329. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-D9GAttn8.d.cts.map +0 -1
  330. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-DbU8BxXO.mjs +0 -970
  331. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-DbU8BxXO.mjs.map +0 -1
  332. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Djgwc46-.cjs +0 -976
  333. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Djgwc46-.cjs.map +0 -1
  334. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Xtj52JOa.d.mts +0 -59
  335. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Xtj52JOa.d.mts.map +0 -1
  336. package/node_modules/@modelcontextprotocol/client/dist/chunk-Bnu9O96Y.cjs +0 -60
  337. package/node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs +0 -42
  338. package/node_modules/@modelcontextprotocol/client/dist/index-ZagFkUbt.d.mts +0 -2675
  339. package/node_modules/@modelcontextprotocol/client/dist/index-ZagFkUbt.d.mts.map +0 -1
  340. package/node_modules/@modelcontextprotocol/client/dist/index-gN3EXmil.d.cts +0 -2678
  341. package/node_modules/@modelcontextprotocol/client/dist/index-gN3EXmil.d.cts.map +0 -1
  342. package/node_modules/@modelcontextprotocol/client/dist/index.cjs +0 -5427
  343. package/node_modules/@modelcontextprotocol/client/dist/index.cjs.map +0 -1
  344. package/node_modules/@modelcontextprotocol/client/dist/index.d.cts +0 -3196
  345. package/node_modules/@modelcontextprotocol/client/dist/index.d.cts.map +0 -1
  346. package/node_modules/@modelcontextprotocol/client/dist/index.d.mts +0 -3196
  347. package/node_modules/@modelcontextprotocol/client/dist/index.d.mts.map +0 -1
  348. package/node_modules/@modelcontextprotocol/client/dist/index.mjs +0 -5224
  349. package/node_modules/@modelcontextprotocol/client/dist/index.mjs.map +0 -1
  350. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs +0 -14
  351. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs.map +0 -1
  352. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts +0 -13
  353. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts.map +0 -1
  354. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts +0 -13
  355. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts.map +0 -1
  356. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs +0 -13
  357. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs.map +0 -1
  358. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs +0 -14
  359. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs.map +0 -1
  360. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts +0 -13
  361. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts.map +0 -1
  362. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts +0 -13
  363. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts.map +0 -1
  364. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs +0 -13
  365. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs.map +0 -1
  366. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +0 -21
  367. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs.map +0 -1
  368. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts +0 -13
  369. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts.map +0 -1
  370. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts +0 -13
  371. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts.map +0 -1
  372. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +0 -20
  373. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs.map +0 -1
  374. package/node_modules/@modelcontextprotocol/client/dist/src-BzzZSQyL.cjs +0 -7331
  375. package/node_modules/@modelcontextprotocol/client/dist/src-BzzZSQyL.cjs.map +0 -1
  376. package/node_modules/@modelcontextprotocol/client/dist/src-DGeA9On3.mjs +0 -6963
  377. package/node_modules/@modelcontextprotocol/client/dist/src-DGeA9On3.mjs.map +0 -1
  378. package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +0 -181
  379. package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs.map +0 -1
  380. package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts +0 -87
  381. package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts.map +0 -1
  382. package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts +0 -87
  383. package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts.map +0 -1
  384. package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +0 -176
  385. package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs.map +0 -1
  386. package/node_modules/@modelcontextprotocol/client/dist/types-BDNQEPSs.d.mts +0 -1099
  387. package/node_modules/@modelcontextprotocol/client/dist/types-BDNQEPSs.d.mts.map +0 -1
  388. package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts +0 -1099
  389. package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts.map +0 -1
  390. package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.cjs +0 -5
  391. package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.cts +0 -2
  392. package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.mts +0 -2
  393. package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.mjs +0 -3
  394. package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.cjs +0 -3
  395. package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.cts +0 -2
  396. package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.mts +0 -2
  397. package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.mjs +0 -3
  398. package/node_modules/@modelcontextprotocol/client/package.json +0 -166
  399. package/node_modules/@modelcontextprotocol/core/LICENSE +0 -216
  400. package/node_modules/@modelcontextprotocol/core/README.md +0 -40
  401. package/node_modules/@modelcontextprotocol/core/dist/auth-BUWfrB3C.d.cts +0 -8198
  402. package/node_modules/@modelcontextprotocol/core/dist/auth-BUWfrB3C.d.cts.map +0 -1
  403. package/node_modules/@modelcontextprotocol/core/dist/auth-CEFpHq32.cjs +0 -2862
  404. package/node_modules/@modelcontextprotocol/core/dist/auth-CEFpHq32.cjs.map +0 -1
  405. package/node_modules/@modelcontextprotocol/core/dist/auth-CNbu4K4a.d.mts +0 -8198
  406. package/node_modules/@modelcontextprotocol/core/dist/auth-CNbu4K4a.d.mts.map +0 -1
  407. package/node_modules/@modelcontextprotocol/core/dist/auth-DFgbUATV.mjs +0 -1653
  408. package/node_modules/@modelcontextprotocol/core/dist/auth-DFgbUATV.mjs.map +0 -1
  409. package/node_modules/@modelcontextprotocol/core/dist/index.cjs +0 -174
  410. package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +0 -2
  411. package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +0 -2
  412. package/node_modules/@modelcontextprotocol/core/dist/index.mjs +0 -3
  413. package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +0 -199
  414. package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +0 -87
  415. package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +0 -1
  416. package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +0 -87
  417. package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +0 -1
  418. package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +0 -3
  419. package/node_modules/@modelcontextprotocol/core/package.json +0 -85
  420. package/node_modules/jose/LICENSE.md +0 -21
  421. package/node_modules/jose/README.md +0 -153
  422. package/node_modules/jose/dist/types/index.d.ts +0 -55
  423. package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +0 -31
  424. package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +0 -65
  425. package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +0 -31
  426. package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +0 -83
  427. package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +0 -31
  428. package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +0 -74
  429. package/node_modules/jose/dist/types/jwk/embedded.d.ts +0 -17
  430. package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +0 -32
  431. package/node_modules/jose/dist/types/jwks/local.d.ts +0 -29
  432. package/node_modules/jose/dist/types/jwks/remote.d.ts +0 -237
  433. package/node_modules/jose/dist/types/jws/compact/sign.d.ts +0 -36
  434. package/node_modules/jose/dist/types/jws/compact/verify.d.ts +0 -33
  435. package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +0 -42
  436. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +0 -33
  437. package/node_modules/jose/dist/types/jws/general/sign.d.ts +0 -53
  438. package/node_modules/jose/dist/types/jws/general/verify.d.ts +0 -33
  439. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +0 -35
  440. package/node_modules/jose/dist/types/jwt/encrypt.d.ts +0 -91
  441. package/node_modules/jose/dist/types/jwt/sign.d.ts +0 -43
  442. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +0 -43
  443. package/node_modules/jose/dist/types/jwt/verify.d.ts +0 -37
  444. package/node_modules/jose/dist/types/key/export.d.ts +0 -33
  445. package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +0 -47
  446. package/node_modules/jose/dist/types/key/generate_secret.d.ts +0 -35
  447. package/node_modules/jose/dist/types/key/import.d.ts +0 -83
  448. package/node_modules/jose/dist/types/types.d.ts +0 -841
  449. package/node_modules/jose/dist/types/util/base64url.d.ts +0 -9
  450. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +0 -18
  451. package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +0 -17
  452. package/node_modules/jose/dist/types/util/errors.d.ts +0 -213
  453. package/node_modules/jose/dist/webapi/index.js +0 -32
  454. package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +0 -27
  455. package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +0 -27
  456. package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +0 -165
  457. package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +0 -169
  458. package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +0 -31
  459. package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +0 -187
  460. package/node_modules/jose/dist/webapi/jwk/embedded.js +0 -17
  461. package/node_modules/jose/dist/webapi/jwk/thumbprint.js +0 -68
  462. package/node_modules/jose/dist/webapi/jwks/local.js +0 -119
  463. package/node_modules/jose/dist/webapi/jwks/remote.js +0 -179
  464. package/node_modules/jose/dist/webapi/jws/compact/sign.js +0 -18
  465. package/node_modules/jose/dist/webapi/jws/compact/verify.js +0 -21
  466. package/node_modules/jose/dist/webapi/jws/flattened/sign.js +0 -92
  467. package/node_modules/jose/dist/webapi/jws/flattened/verify.js +0 -120
  468. package/node_modules/jose/dist/webapi/jws/general/sign.js +0 -73
  469. package/node_modules/jose/dist/webapi/jws/general/verify.js +0 -24
  470. package/node_modules/jose/dist/webapi/jwt/decrypt.js +0 -23
  471. package/node_modules/jose/dist/webapi/jwt/encrypt.js +0 -108
  472. package/node_modules/jose/dist/webapi/jwt/sign.js +0 -52
  473. package/node_modules/jose/dist/webapi/jwt/unsecured.js +0 -63
  474. package/node_modules/jose/dist/webapi/jwt/verify.js +0 -15
  475. package/node_modules/jose/dist/webapi/key/export.js +0 -11
  476. package/node_modules/jose/dist/webapi/key/generate_key_pair.js +0 -97
  477. package/node_modules/jose/dist/webapi/key/generate_secret.js +0 -40
  478. package/node_modules/jose/dist/webapi/key/import.js +0 -57
  479. package/node_modules/jose/dist/webapi/lib/aesgcmkw.js +0 -16
  480. package/node_modules/jose/dist/webapi/lib/aeskw.js +0 -25
  481. package/node_modules/jose/dist/webapi/lib/asn1.js +0 -243
  482. package/node_modules/jose/dist/webapi/lib/base64.js +0 -22
  483. package/node_modules/jose/dist/webapi/lib/buffer_utils.js +0 -43
  484. package/node_modules/jose/dist/webapi/lib/cek.js +0 -19
  485. package/node_modules/jose/dist/webapi/lib/check_cek_length.js +0 -7
  486. package/node_modules/jose/dist/webapi/lib/check_iv_length.js +0 -7
  487. package/node_modules/jose/dist/webapi/lib/check_key_length.js +0 -8
  488. package/node_modules/jose/dist/webapi/lib/check_key_type.js +0 -122
  489. package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -143
  490. package/node_modules/jose/dist/webapi/lib/decrypt.js +0 -106
  491. package/node_modules/jose/dist/webapi/lib/decrypt_key_management.js +0 -127
  492. package/node_modules/jose/dist/webapi/lib/digest.js +0 -4
  493. package/node_modules/jose/dist/webapi/lib/ecdhes.js +0 -52
  494. package/node_modules/jose/dist/webapi/lib/encrypt.js +0 -74
  495. package/node_modules/jose/dist/webapi/lib/encrypt_key_management.js +0 -92
  496. package/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js +0 -12
  497. package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -27
  498. package/node_modules/jose/dist/webapi/lib/is_disjoint.js +0 -21
  499. package/node_modules/jose/dist/webapi/lib/is_jwk.js +0 -6
  500. package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -17
  501. package/node_modules/jose/dist/webapi/lib/is_object.js +0 -14
  502. package/node_modules/jose/dist/webapi/lib/iv.js +0 -19
  503. package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -109
  504. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +0 -238
  505. package/node_modules/jose/dist/webapi/lib/key_to_jwk.js +0 -31
  506. package/node_modules/jose/dist/webapi/lib/normalize_key.js +0 -176
  507. package/node_modules/jose/dist/webapi/lib/pbes2kw.js +0 -39
  508. package/node_modules/jose/dist/webapi/lib/private_symbols.js +0 -1
  509. package/node_modules/jose/dist/webapi/lib/rsaes.js +0 -24
  510. package/node_modules/jose/dist/webapi/lib/sign.js +0 -9
  511. package/node_modules/jose/dist/webapi/lib/subtle_dsa.js +0 -31
  512. package/node_modules/jose/dist/webapi/lib/validate_algorithms.js +0 -10
  513. package/node_modules/jose/dist/webapi/lib/validate_crit.js +0 -33
  514. package/node_modules/jose/dist/webapi/lib/verify.js +0 -14
  515. package/node_modules/jose/dist/webapi/util/base64url.js +0 -30
  516. package/node_modules/jose/dist/webapi/util/decode_jwt.js +0 -32
  517. package/node_modules/jose/dist/webapi/util/decode_protected_header.js +0 -34
  518. package/node_modules/jose/dist/webapi/util/errors.js +0 -99
  519. package/node_modules/jose/package.json +0 -200
  520. package/node_modules/zod/LICENSE +0 -21
  521. package/node_modules/zod/README.md +0 -191
  522. package/node_modules/zod/index.cjs +0 -33
  523. package/node_modules/zod/index.d.cts +0 -4
  524. package/node_modules/zod/index.d.ts +0 -4
  525. package/node_modules/zod/index.js +0 -4
  526. package/node_modules/zod/locales/index.cjs +0 -17
  527. package/node_modules/zod/locales/index.d.cts +0 -1
  528. package/node_modules/zod/locales/index.d.ts +0 -1
  529. package/node_modules/zod/locales/index.js +0 -1
  530. package/node_modules/zod/locales/package.json +0 -7
  531. package/node_modules/zod/mini/index.cjs +0 -32
  532. package/node_modules/zod/mini/index.d.cts +0 -3
  533. package/node_modules/zod/mini/index.d.ts +0 -3
  534. package/node_modules/zod/mini/index.js +0 -3
  535. package/node_modules/zod/mini/package.json +0 -7
  536. package/node_modules/zod/package.json +0 -135
  537. package/node_modules/zod/src/index.ts +0 -4
  538. package/node_modules/zod/src/locales/index.ts +0 -1
  539. package/node_modules/zod/src/mini/index.ts +0 -3
  540. package/node_modules/zod/src/v3/ZodError.ts +0 -330
  541. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  542. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  543. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  544. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  545. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  546. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  547. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  548. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  549. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  550. package/node_modules/zod/src/v3/errors.ts +0 -13
  551. package/node_modules/zod/src/v3/external.ts +0 -6
  552. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  553. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  554. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  555. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  556. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  557. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  558. package/node_modules/zod/src/v3/index.ts +0 -4
  559. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  560. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  561. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  562. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  563. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  564. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  565. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  566. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  567. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  568. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  569. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  570. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  571. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  572. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  573. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  574. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  575. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  576. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  577. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  578. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  579. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  580. package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  581. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  582. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  583. package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  584. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  585. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  586. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  587. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  588. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  589. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  590. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  591. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  592. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  593. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  594. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  595. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  596. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  597. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  598. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  599. package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  600. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  601. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  602. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  603. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  604. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  605. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  606. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  607. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  608. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  609. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  610. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  611. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  612. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  613. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  614. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  615. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  616. package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  617. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  618. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  619. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  620. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  621. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  622. package/node_modules/zod/src/v3/types.ts +0 -5138
  623. package/node_modules/zod/src/v4/classic/checks.ts +0 -32
  624. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  625. package/node_modules/zod/src/v4/classic/compat.ts +0 -70
  626. package/node_modules/zod/src/v4/classic/errors.ts +0 -82
  627. package/node_modules/zod/src/v4/classic/external.ts +0 -52
  628. package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -659
  629. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  630. package/node_modules/zod/src/v4/classic/iso.ts +0 -90
  631. package/node_modules/zod/src/v4/classic/parse.ts +0 -82
  632. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2672
  633. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  634. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
  635. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  636. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -216
  637. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  638. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  639. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  640. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  641. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  642. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -326
  643. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  644. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
  645. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -703
  646. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  647. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  648. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  649. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
  650. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
  651. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -409
  652. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  653. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  654. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -197
  655. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -694
  656. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  657. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -807
  658. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  659. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  660. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  661. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  662. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -895
  663. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
  664. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  665. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -39
  666. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
  667. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
  668. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
  669. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
  670. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -46
  671. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  672. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  673. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
  674. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
  675. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
  676. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
  677. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  678. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  679. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  680. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  681. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -325
  682. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -717
  683. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -333
  684. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -450
  685. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  686. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  687. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
  688. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -26
  689. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
  690. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  691. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  692. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  693. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  694. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -717
  695. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -631
  696. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -633
  697. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  698. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
  699. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
  700. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  701. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1224
  702. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
  703. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
  704. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  705. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -3125
  706. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
  707. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -496
  708. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -273
  709. package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  710. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  711. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  712. package/node_modules/zod/src/v4/core/api.ts +0 -1823
  713. package/node_modules/zod/src/v4/core/checks.ts +0 -1293
  714. package/node_modules/zod/src/v4/core/config.ts +0 -15
  715. package/node_modules/zod/src/v4/core/core.ts +0 -153
  716. package/node_modules/zod/src/v4/core/doc.ts +0 -44
  717. package/node_modules/zod/src/v4/core/errors.ts +0 -455
  718. package/node_modules/zod/src/v4/core/index.ts +0 -16
  719. package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
  720. package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -666
  721. package/node_modules/zod/src/v4/core/json-schema.ts +0 -147
  722. package/node_modules/zod/src/v4/core/parse.ts +0 -195
  723. package/node_modules/zod/src/v4/core/regexes.ts +0 -190
  724. package/node_modules/zod/src/v4/core/registries.ts +0 -105
  725. package/node_modules/zod/src/v4/core/schemas.ts +0 -4730
  726. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  727. package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  728. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  729. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  730. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -215
  731. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  732. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
  733. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
  734. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  735. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
  736. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  737. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  738. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  739. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
  740. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
  741. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  742. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -622
  743. package/node_modules/zod/src/v4/core/util.ts +0 -983
  744. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  745. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  746. package/node_modules/zod/src/v4/index.ts +0 -4
  747. package/node_modules/zod/src/v4/locales/ar.ts +0 -115
  748. package/node_modules/zod/src/v4/locales/az.ts +0 -111
  749. package/node_modules/zod/src/v4/locales/be.ts +0 -176
  750. package/node_modules/zod/src/v4/locales/bg.ts +0 -128
  751. package/node_modules/zod/src/v4/locales/ca.ts +0 -116
  752. package/node_modules/zod/src/v4/locales/cs.ts +0 -118
  753. package/node_modules/zod/src/v4/locales/da.ts +0 -123
  754. package/node_modules/zod/src/v4/locales/de.ts +0 -116
  755. package/node_modules/zod/src/v4/locales/el.ts +0 -121
  756. package/node_modules/zod/src/v4/locales/en.ts +0 -123
  757. package/node_modules/zod/src/v4/locales/eo.ts +0 -118
  758. package/node_modules/zod/src/v4/locales/es.ts +0 -141
  759. package/node_modules/zod/src/v4/locales/fa.ts +0 -126
  760. package/node_modules/zod/src/v4/locales/fi.ts +0 -121
  761. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
  762. package/node_modules/zod/src/v4/locales/fr.ts +0 -132
  763. package/node_modules/zod/src/v4/locales/he.ts +0 -246
  764. package/node_modules/zod/src/v4/locales/hr.ts +0 -131
  765. package/node_modules/zod/src/v4/locales/hu.ts +0 -117
  766. package/node_modules/zod/src/v4/locales/hy.ts +0 -164
  767. package/node_modules/zod/src/v4/locales/id.ts +0 -115
  768. package/node_modules/zod/src/v4/locales/index.ts +0 -52
  769. package/node_modules/zod/src/v4/locales/is.ts +0 -119
  770. package/node_modules/zod/src/v4/locales/it.ts +0 -116
  771. package/node_modules/zod/src/v4/locales/ja.ts +0 -114
  772. package/node_modules/zod/src/v4/locales/ka.ts +0 -123
  773. package/node_modules/zod/src/v4/locales/kh.ts +0 -7
  774. package/node_modules/zod/src/v4/locales/km.ts +0 -119
  775. package/node_modules/zod/src/v4/locales/ko.ts +0 -121
  776. package/node_modules/zod/src/v4/locales/lt.ts +0 -239
  777. package/node_modules/zod/src/v4/locales/mk.ts +0 -118
  778. package/node_modules/zod/src/v4/locales/ms.ts +0 -115
  779. package/node_modules/zod/src/v4/locales/nl.ts +0 -121
  780. package/node_modules/zod/src/v4/locales/no.ts +0 -116
  781. package/node_modules/zod/src/v4/locales/ota.ts +0 -117
  782. package/node_modules/zod/src/v4/locales/pl.ts +0 -118
  783. package/node_modules/zod/src/v4/locales/ps.ts +0 -126
  784. package/node_modules/zod/src/v4/locales/pt.ts +0 -116
  785. package/node_modules/zod/src/v4/locales/ro.ts +0 -129
  786. package/node_modules/zod/src/v4/locales/ru.ts +0 -176
  787. package/node_modules/zod/src/v4/locales/sl.ts +0 -118
  788. package/node_modules/zod/src/v4/locales/sv.ts +0 -119
  789. package/node_modules/zod/src/v4/locales/ta.ts +0 -118
  790. package/node_modules/zod/src/v4/locales/th.ts +0 -119
  791. package/node_modules/zod/src/v4/locales/tr.ts +0 -111
  792. package/node_modules/zod/src/v4/locales/ua.ts +0 -7
  793. package/node_modules/zod/src/v4/locales/uk.ts +0 -117
  794. package/node_modules/zod/src/v4/locales/ur.ts +0 -119
  795. package/node_modules/zod/src/v4/locales/uz.ts +0 -117
  796. package/node_modules/zod/src/v4/locales/vi.ts +0 -117
  797. package/node_modules/zod/src/v4/locales/yo.ts +0 -124
  798. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
  799. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
  800. package/node_modules/zod/src/v4/mini/checks.ts +0 -32
  801. package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  802. package/node_modules/zod/src/v4/mini/external.ts +0 -41
  803. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  804. package/node_modules/zod/src/v4/mini/iso.ts +0 -66
  805. package/node_modules/zod/src/v4/mini/parse.ts +0 -14
  806. package/node_modules/zod/src/v4/mini/schemas.ts +0 -1947
  807. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
  808. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  809. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  810. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  811. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -548
  812. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  813. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  814. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
  815. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -993
  816. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  817. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
  818. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  819. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
  820. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  821. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -352
  822. package/node_modules/zod/src/v4-mini/index.ts +0 -3
  823. package/node_modules/zod/v3/ZodError.cjs +0 -138
  824. package/node_modules/zod/v3/ZodError.d.cts +0 -164
  825. package/node_modules/zod/v3/ZodError.d.ts +0 -164
  826. package/node_modules/zod/v3/ZodError.js +0 -133
  827. package/node_modules/zod/v3/errors.cjs +0 -17
  828. package/node_modules/zod/v3/errors.d.cts +0 -5
  829. package/node_modules/zod/v3/errors.d.ts +0 -5
  830. package/node_modules/zod/v3/errors.js +0 -9
  831. package/node_modules/zod/v3/external.cjs +0 -22
  832. package/node_modules/zod/v3/external.d.cts +0 -6
  833. package/node_modules/zod/v3/external.d.ts +0 -6
  834. package/node_modules/zod/v3/external.js +0 -6
  835. package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  836. package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  837. package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  838. package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  839. package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  840. package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  841. package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  842. package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  843. package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  844. package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  845. package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  846. package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  847. package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  848. package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  849. package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  850. package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  851. package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  852. package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  853. package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  854. package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  855. package/node_modules/zod/v3/helpers/util.cjs +0 -137
  856. package/node_modules/zod/v3/helpers/util.d.cts +0 -85
  857. package/node_modules/zod/v3/helpers/util.d.ts +0 -85
  858. package/node_modules/zod/v3/helpers/util.js +0 -133
  859. package/node_modules/zod/v3/index.cjs +0 -33
  860. package/node_modules/zod/v3/index.d.cts +0 -4
  861. package/node_modules/zod/v3/index.d.ts +0 -4
  862. package/node_modules/zod/v3/index.js +0 -4
  863. package/node_modules/zod/v3/locales/en.cjs +0 -112
  864. package/node_modules/zod/v3/locales/en.d.cts +0 -3
  865. package/node_modules/zod/v3/locales/en.d.ts +0 -3
  866. package/node_modules/zod/v3/locales/en.js +0 -109
  867. package/node_modules/zod/v3/package.json +0 -7
  868. package/node_modules/zod/v3/standard-schema.cjs +0 -2
  869. package/node_modules/zod/v3/standard-schema.d.cts +0 -102
  870. package/node_modules/zod/v3/standard-schema.d.ts +0 -102
  871. package/node_modules/zod/v3/standard-schema.js +0 -1
  872. package/node_modules/zod/v3/types.cjs +0 -3777
  873. package/node_modules/zod/v3/types.d.cts +0 -1034
  874. package/node_modules/zod/v3/types.d.ts +0 -1034
  875. package/node_modules/zod/v3/types.js +0 -3695
  876. package/node_modules/zod/v4/classic/checks.cjs +0 -33
  877. package/node_modules/zod/v4/classic/checks.d.cts +0 -1
  878. package/node_modules/zod/v4/classic/checks.d.ts +0 -1
  879. package/node_modules/zod/v4/classic/checks.js +0 -1
  880. package/node_modules/zod/v4/classic/coerce.cjs +0 -47
  881. package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  882. package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  883. package/node_modules/zod/v4/classic/coerce.js +0 -17
  884. package/node_modules/zod/v4/classic/compat.cjs +0 -61
  885. package/node_modules/zod/v4/classic/compat.d.cts +0 -50
  886. package/node_modules/zod/v4/classic/compat.d.ts +0 -50
  887. package/node_modules/zod/v4/classic/compat.js +0 -31
  888. package/node_modules/zod/v4/classic/errors.cjs +0 -74
  889. package/node_modules/zod/v4/classic/errors.d.cts +0 -30
  890. package/node_modules/zod/v4/classic/errors.d.ts +0 -30
  891. package/node_modules/zod/v4/classic/errors.js +0 -48
  892. package/node_modules/zod/v4/classic/external.cjs +0 -73
  893. package/node_modules/zod/v4/classic/external.d.cts +0 -16
  894. package/node_modules/zod/v4/classic/external.d.ts +0 -16
  895. package/node_modules/zod/v4/classic/external.js +0 -20
  896. package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -625
  897. package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
  898. package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
  899. package/node_modules/zod/v4/classic/from-json-schema.js +0 -599
  900. package/node_modules/zod/v4/classic/index.cjs +0 -33
  901. package/node_modules/zod/v4/classic/index.d.cts +0 -4
  902. package/node_modules/zod/v4/classic/index.d.ts +0 -4
  903. package/node_modules/zod/v4/classic/index.js +0 -4
  904. package/node_modules/zod/v4/classic/iso.cjs +0 -60
  905. package/node_modules/zod/v4/classic/iso.d.cts +0 -22
  906. package/node_modules/zod/v4/classic/iso.d.ts +0 -22
  907. package/node_modules/zod/v4/classic/iso.js +0 -30
  908. package/node_modules/zod/v4/classic/package.json +0 -7
  909. package/node_modules/zod/v4/classic/parse.cjs +0 -41
  910. package/node_modules/zod/v4/classic/parse.d.cts +0 -31
  911. package/node_modules/zod/v4/classic/parse.d.ts +0 -31
  912. package/node_modules/zod/v4/classic/parse.js +0 -15
  913. package/node_modules/zod/v4/classic/schemas.cjs +0 -1511
  914. package/node_modules/zod/v4/classic/schemas.d.cts +0 -767
  915. package/node_modules/zod/v4/classic/schemas.d.ts +0 -767
  916. package/node_modules/zod/v4/classic/schemas.js +0 -1395
  917. package/node_modules/zod/v4/core/api.cjs +0 -1227
  918. package/node_modules/zod/v4/core/api.d.cts +0 -325
  919. package/node_modules/zod/v4/core/api.d.ts +0 -325
  920. package/node_modules/zod/v4/core/api.js +0 -1087
  921. package/node_modules/zod/v4/core/checks.cjs +0 -601
  922. package/node_modules/zod/v4/core/checks.d.cts +0 -278
  923. package/node_modules/zod/v4/core/checks.d.ts +0 -278
  924. package/node_modules/zod/v4/core/checks.js +0 -575
  925. package/node_modules/zod/v4/core/core.cjs +0 -85
  926. package/node_modules/zod/v4/core/core.d.cts +0 -70
  927. package/node_modules/zod/v4/core/core.d.ts +0 -70
  928. package/node_modules/zod/v4/core/core.js +0 -78
  929. package/node_modules/zod/v4/core/doc.cjs +0 -39
  930. package/node_modules/zod/v4/core/doc.d.cts +0 -14
  931. package/node_modules/zod/v4/core/doc.d.ts +0 -14
  932. package/node_modules/zod/v4/core/doc.js +0 -35
  933. package/node_modules/zod/v4/core/errors.cjs +0 -216
  934. package/node_modules/zod/v4/core/errors.d.cts +0 -221
  935. package/node_modules/zod/v4/core/errors.d.ts +0 -221
  936. package/node_modules/zod/v4/core/errors.js +0 -185
  937. package/node_modules/zod/v4/core/index.cjs +0 -47
  938. package/node_modules/zod/v4/core/index.d.cts +0 -16
  939. package/node_modules/zod/v4/core/index.d.ts +0 -16
  940. package/node_modules/zod/v4/core/index.js +0 -16
  941. package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
  942. package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
  943. package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
  944. package/node_modules/zod/v4/core/json-schema-generator.js +0 -95
  945. package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -644
  946. package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
  947. package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
  948. package/node_modules/zod/v4/core/json-schema-processors.js +0 -601
  949. package/node_modules/zod/v4/core/json-schema.cjs +0 -2
  950. package/node_modules/zod/v4/core/json-schema.d.cts +0 -88
  951. package/node_modules/zod/v4/core/json-schema.d.ts +0 -88
  952. package/node_modules/zod/v4/core/json-schema.js +0 -1
  953. package/node_modules/zod/v4/core/package.json +0 -7
  954. package/node_modules/zod/v4/core/parse.cjs +0 -131
  955. package/node_modules/zod/v4/core/parse.d.cts +0 -49
  956. package/node_modules/zod/v4/core/parse.d.ts +0 -49
  957. package/node_modules/zod/v4/core/parse.js +0 -93
  958. package/node_modules/zod/v4/core/regexes.cjs +0 -172
  959. package/node_modules/zod/v4/core/regexes.d.cts +0 -85
  960. package/node_modules/zod/v4/core/regexes.d.ts +0 -85
  961. package/node_modules/zod/v4/core/regexes.js +0 -139
  962. package/node_modules/zod/v4/core/registries.cjs +0 -56
  963. package/node_modules/zod/v4/core/registries.d.cts +0 -35
  964. package/node_modules/zod/v4/core/registries.d.ts +0 -35
  965. package/node_modules/zod/v4/core/registries.js +0 -51
  966. package/node_modules/zod/v4/core/schemas.cjs +0 -2270
  967. package/node_modules/zod/v4/core/schemas.d.cts +0 -1184
  968. package/node_modules/zod/v4/core/schemas.d.ts +0 -1184
  969. package/node_modules/zod/v4/core/schemas.js +0 -2239
  970. package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  971. package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
  972. package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
  973. package/node_modules/zod/v4/core/standard-schema.js +0 -1
  974. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -457
  975. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
  976. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
  977. package/node_modules/zod/v4/core/to-json-schema.js +0 -448
  978. package/node_modules/zod/v4/core/util.cjs +0 -734
  979. package/node_modules/zod/v4/core/util.d.cts +0 -200
  980. package/node_modules/zod/v4/core/util.d.ts +0 -200
  981. package/node_modules/zod/v4/core/util.js +0 -674
  982. package/node_modules/zod/v4/core/versions.cjs +0 -8
  983. package/node_modules/zod/v4/core/versions.d.cts +0 -5
  984. package/node_modules/zod/v4/core/versions.d.ts +0 -5
  985. package/node_modules/zod/v4/core/versions.js +0 -5
  986. package/node_modules/zod/v4/index.cjs +0 -22
  987. package/node_modules/zod/v4/index.d.cts +0 -3
  988. package/node_modules/zod/v4/index.d.ts +0 -3
  989. package/node_modules/zod/v4/index.js +0 -3
  990. package/node_modules/zod/v4/locales/ar.cjs +0 -133
  991. package/node_modules/zod/v4/locales/ar.d.cts +0 -5
  992. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  993. package/node_modules/zod/v4/locales/ar.js +0 -106
  994. package/node_modules/zod/v4/locales/az.cjs +0 -132
  995. package/node_modules/zod/v4/locales/az.d.cts +0 -5
  996. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  997. package/node_modules/zod/v4/locales/az.js +0 -105
  998. package/node_modules/zod/v4/locales/be.cjs +0 -183
  999. package/node_modules/zod/v4/locales/be.d.cts +0 -5
  1000. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  1001. package/node_modules/zod/v4/locales/be.js +0 -156
  1002. package/node_modules/zod/v4/locales/bg.cjs +0 -147
  1003. package/node_modules/zod/v4/locales/bg.d.cts +0 -5
  1004. package/node_modules/zod/v4/locales/bg.d.ts +0 -4
  1005. package/node_modules/zod/v4/locales/bg.js +0 -120
  1006. package/node_modules/zod/v4/locales/ca.cjs +0 -134
  1007. package/node_modules/zod/v4/locales/ca.d.cts +0 -5
  1008. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  1009. package/node_modules/zod/v4/locales/ca.js +0 -107
  1010. package/node_modules/zod/v4/locales/cs.cjs +0 -138
  1011. package/node_modules/zod/v4/locales/cs.d.cts +0 -5
  1012. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  1013. package/node_modules/zod/v4/locales/cs.js +0 -111
  1014. package/node_modules/zod/v4/locales/da.cjs +0 -142
  1015. package/node_modules/zod/v4/locales/da.d.cts +0 -5
  1016. package/node_modules/zod/v4/locales/da.d.ts +0 -4
  1017. package/node_modules/zod/v4/locales/da.js +0 -115
  1018. package/node_modules/zod/v4/locales/de.cjs +0 -135
  1019. package/node_modules/zod/v4/locales/de.d.cts +0 -5
  1020. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  1021. package/node_modules/zod/v4/locales/de.js +0 -108
  1022. package/node_modules/zod/v4/locales/el.cjs +0 -136
  1023. package/node_modules/zod/v4/locales/el.d.cts +0 -5
  1024. package/node_modules/zod/v4/locales/el.d.ts +0 -4
  1025. package/node_modules/zod/v4/locales/el.js +0 -109
  1026. package/node_modules/zod/v4/locales/en.cjs +0 -140
  1027. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  1028. package/node_modules/zod/v4/locales/en.d.ts +0 -4
  1029. package/node_modules/zod/v4/locales/en.js +0 -113
  1030. package/node_modules/zod/v4/locales/eo.cjs +0 -136
  1031. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  1032. package/node_modules/zod/v4/locales/eo.d.ts +0 -4
  1033. package/node_modules/zod/v4/locales/eo.js +0 -109
  1034. package/node_modules/zod/v4/locales/es.cjs +0 -159
  1035. package/node_modules/zod/v4/locales/es.d.cts +0 -5
  1036. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  1037. package/node_modules/zod/v4/locales/es.js +0 -132
  1038. package/node_modules/zod/v4/locales/fa.cjs +0 -141
  1039. package/node_modules/zod/v4/locales/fa.d.cts +0 -5
  1040. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  1041. package/node_modules/zod/v4/locales/fa.js +0 -114
  1042. package/node_modules/zod/v4/locales/fi.cjs +0 -139
  1043. package/node_modules/zod/v4/locales/fi.d.cts +0 -5
  1044. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  1045. package/node_modules/zod/v4/locales/fi.js +0 -112
  1046. package/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
  1047. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
  1048. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  1049. package/node_modules/zod/v4/locales/fr-CA.js +0 -107
  1050. package/node_modules/zod/v4/locales/fr.cjs +0 -152
  1051. package/node_modules/zod/v4/locales/fr.d.cts +0 -5
  1052. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  1053. package/node_modules/zod/v4/locales/fr.js +0 -125
  1054. package/node_modules/zod/v4/locales/he.cjs +0 -241
  1055. package/node_modules/zod/v4/locales/he.d.cts +0 -5
  1056. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  1057. package/node_modules/zod/v4/locales/he.js +0 -214
  1058. package/node_modules/zod/v4/locales/hr.cjs +0 -149
  1059. package/node_modules/zod/v4/locales/hr.d.cts +0 -5
  1060. package/node_modules/zod/v4/locales/hr.d.ts +0 -4
  1061. package/node_modules/zod/v4/locales/hr.js +0 -122
  1062. package/node_modules/zod/v4/locales/hu.cjs +0 -135
  1063. package/node_modules/zod/v4/locales/hu.d.cts +0 -5
  1064. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  1065. package/node_modules/zod/v4/locales/hu.js +0 -108
  1066. package/node_modules/zod/v4/locales/hy.cjs +0 -174
  1067. package/node_modules/zod/v4/locales/hy.d.cts +0 -5
  1068. package/node_modules/zod/v4/locales/hy.d.ts +0 -4
  1069. package/node_modules/zod/v4/locales/hy.js +0 -147
  1070. package/node_modules/zod/v4/locales/id.cjs +0 -133
  1071. package/node_modules/zod/v4/locales/id.d.cts +0 -5
  1072. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  1073. package/node_modules/zod/v4/locales/id.js +0 -106
  1074. package/node_modules/zod/v4/locales/index.cjs +0 -111
  1075. package/node_modules/zod/v4/locales/index.d.cts +0 -52
  1076. package/node_modules/zod/v4/locales/index.d.ts +0 -52
  1077. package/node_modules/zod/v4/locales/index.js +0 -52
  1078. package/node_modules/zod/v4/locales/is.cjs +0 -136
  1079. package/node_modules/zod/v4/locales/is.d.cts +0 -5
  1080. package/node_modules/zod/v4/locales/is.d.ts +0 -4
  1081. package/node_modules/zod/v4/locales/is.js +0 -109
  1082. package/node_modules/zod/v4/locales/it.cjs +0 -135
  1083. package/node_modules/zod/v4/locales/it.d.cts +0 -5
  1084. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  1085. package/node_modules/zod/v4/locales/it.js +0 -108
  1086. package/node_modules/zod/v4/locales/ja.cjs +0 -134
  1087. package/node_modules/zod/v4/locales/ja.d.cts +0 -5
  1088. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  1089. package/node_modules/zod/v4/locales/ja.js +0 -107
  1090. package/node_modules/zod/v4/locales/ka.cjs +0 -139
  1091. package/node_modules/zod/v4/locales/ka.d.cts +0 -5
  1092. package/node_modules/zod/v4/locales/ka.d.ts +0 -4
  1093. package/node_modules/zod/v4/locales/ka.js +0 -112
  1094. package/node_modules/zod/v4/locales/kh.cjs +0 -12
  1095. package/node_modules/zod/v4/locales/kh.d.cts +0 -5
  1096. package/node_modules/zod/v4/locales/kh.d.ts +0 -5
  1097. package/node_modules/zod/v4/locales/kh.js +0 -5
  1098. package/node_modules/zod/v4/locales/km.cjs +0 -137
  1099. package/node_modules/zod/v4/locales/km.d.cts +0 -5
  1100. package/node_modules/zod/v4/locales/km.d.ts +0 -4
  1101. package/node_modules/zod/v4/locales/km.js +0 -110
  1102. package/node_modules/zod/v4/locales/ko.cjs +0 -138
  1103. package/node_modules/zod/v4/locales/ko.d.cts +0 -5
  1104. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  1105. package/node_modules/zod/v4/locales/ko.js +0 -111
  1106. package/node_modules/zod/v4/locales/lt.cjs +0 -230
  1107. package/node_modules/zod/v4/locales/lt.d.cts +0 -5
  1108. package/node_modules/zod/v4/locales/lt.d.ts +0 -4
  1109. package/node_modules/zod/v4/locales/lt.js +0 -203
  1110. package/node_modules/zod/v4/locales/mk.cjs +0 -136
  1111. package/node_modules/zod/v4/locales/mk.d.cts +0 -5
  1112. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  1113. package/node_modules/zod/v4/locales/mk.js +0 -109
  1114. package/node_modules/zod/v4/locales/ms.cjs +0 -134
  1115. package/node_modules/zod/v4/locales/ms.d.cts +0 -5
  1116. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  1117. package/node_modules/zod/v4/locales/ms.js +0 -107
  1118. package/node_modules/zod/v4/locales/nl.cjs +0 -137
  1119. package/node_modules/zod/v4/locales/nl.d.cts +0 -5
  1120. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  1121. package/node_modules/zod/v4/locales/nl.js +0 -110
  1122. package/node_modules/zod/v4/locales/no.cjs +0 -135
  1123. package/node_modules/zod/v4/locales/no.d.cts +0 -5
  1124. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  1125. package/node_modules/zod/v4/locales/no.js +0 -108
  1126. package/node_modules/zod/v4/locales/ota.cjs +0 -136
  1127. package/node_modules/zod/v4/locales/ota.d.cts +0 -5
  1128. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  1129. package/node_modules/zod/v4/locales/ota.js +0 -109
  1130. package/node_modules/zod/v4/locales/package.json +0 -7
  1131. package/node_modules/zod/v4/locales/pl.cjs +0 -136
  1132. package/node_modules/zod/v4/locales/pl.d.cts +0 -5
  1133. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  1134. package/node_modules/zod/v4/locales/pl.js +0 -109
  1135. package/node_modules/zod/v4/locales/ps.cjs +0 -141
  1136. package/node_modules/zod/v4/locales/ps.d.cts +0 -5
  1137. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  1138. package/node_modules/zod/v4/locales/ps.js +0 -114
  1139. package/node_modules/zod/v4/locales/pt.cjs +0 -135
  1140. package/node_modules/zod/v4/locales/pt.d.cts +0 -5
  1141. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  1142. package/node_modules/zod/v4/locales/pt.js +0 -108
  1143. package/node_modules/zod/v4/locales/ro.cjs +0 -146
  1144. package/node_modules/zod/v4/locales/ro.d.cts +0 -5
  1145. package/node_modules/zod/v4/locales/ro.d.ts +0 -4
  1146. package/node_modules/zod/v4/locales/ro.js +0 -119
  1147. package/node_modules/zod/v4/locales/ru.cjs +0 -183
  1148. package/node_modules/zod/v4/locales/ru.d.cts +0 -5
  1149. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  1150. package/node_modules/zod/v4/locales/ru.js +0 -156
  1151. package/node_modules/zod/v4/locales/sl.cjs +0 -136
  1152. package/node_modules/zod/v4/locales/sl.d.cts +0 -5
  1153. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  1154. package/node_modules/zod/v4/locales/sl.js +0 -109
  1155. package/node_modules/zod/v4/locales/sv.cjs +0 -137
  1156. package/node_modules/zod/v4/locales/sv.d.cts +0 -5
  1157. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  1158. package/node_modules/zod/v4/locales/sv.js +0 -110
  1159. package/node_modules/zod/v4/locales/ta.cjs +0 -137
  1160. package/node_modules/zod/v4/locales/ta.d.cts +0 -5
  1161. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  1162. package/node_modules/zod/v4/locales/ta.js +0 -110
  1163. package/node_modules/zod/v4/locales/th.cjs +0 -137
  1164. package/node_modules/zod/v4/locales/th.d.cts +0 -5
  1165. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  1166. package/node_modules/zod/v4/locales/th.js +0 -110
  1167. package/node_modules/zod/v4/locales/tr.cjs +0 -132
  1168. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  1169. package/node_modules/zod/v4/locales/tr.d.ts +0 -4
  1170. package/node_modules/zod/v4/locales/tr.js +0 -105
  1171. package/node_modules/zod/v4/locales/ua.cjs +0 -12
  1172. package/node_modules/zod/v4/locales/ua.d.cts +0 -5
  1173. package/node_modules/zod/v4/locales/ua.d.ts +0 -5
  1174. package/node_modules/zod/v4/locales/ua.js +0 -5
  1175. package/node_modules/zod/v4/locales/uk.cjs +0 -135
  1176. package/node_modules/zod/v4/locales/uk.d.cts +0 -5
  1177. package/node_modules/zod/v4/locales/uk.d.ts +0 -4
  1178. package/node_modules/zod/v4/locales/uk.js +0 -108
  1179. package/node_modules/zod/v4/locales/ur.cjs +0 -137
  1180. package/node_modules/zod/v4/locales/ur.d.cts +0 -5
  1181. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  1182. package/node_modules/zod/v4/locales/ur.js +0 -110
  1183. package/node_modules/zod/v4/locales/uz.cjs +0 -137
  1184. package/node_modules/zod/v4/locales/uz.d.cts +0 -5
  1185. package/node_modules/zod/v4/locales/uz.d.ts +0 -4
  1186. package/node_modules/zod/v4/locales/uz.js +0 -110
  1187. package/node_modules/zod/v4/locales/vi.cjs +0 -135
  1188. package/node_modules/zod/v4/locales/vi.d.cts +0 -5
  1189. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  1190. package/node_modules/zod/v4/locales/vi.js +0 -108
  1191. package/node_modules/zod/v4/locales/yo.cjs +0 -134
  1192. package/node_modules/zod/v4/locales/yo.d.cts +0 -5
  1193. package/node_modules/zod/v4/locales/yo.d.ts +0 -4
  1194. package/node_modules/zod/v4/locales/yo.js +0 -107
  1195. package/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
  1196. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
  1197. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  1198. package/node_modules/zod/v4/locales/zh-CN.js +0 -109
  1199. package/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
  1200. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
  1201. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  1202. package/node_modules/zod/v4/locales/zh-TW.js +0 -107
  1203. package/node_modules/zod/v4/mini/checks.cjs +0 -34
  1204. package/node_modules/zod/v4/mini/checks.d.cts +0 -1
  1205. package/node_modules/zod/v4/mini/checks.d.ts +0 -1
  1206. package/node_modules/zod/v4/mini/checks.js +0 -1
  1207. package/node_modules/zod/v4/mini/coerce.cjs +0 -52
  1208. package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  1209. package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  1210. package/node_modules/zod/v4/mini/coerce.js +0 -22
  1211. package/node_modules/zod/v4/mini/external.cjs +0 -63
  1212. package/node_modules/zod/v4/mini/external.d.cts +0 -13
  1213. package/node_modules/zod/v4/mini/external.d.ts +0 -13
  1214. package/node_modules/zod/v4/mini/external.js +0 -14
  1215. package/node_modules/zod/v4/mini/index.cjs +0 -32
  1216. package/node_modules/zod/v4/mini/index.d.cts +0 -3
  1217. package/node_modules/zod/v4/mini/index.d.ts +0 -3
  1218. package/node_modules/zod/v4/mini/index.js +0 -3
  1219. package/node_modules/zod/v4/mini/iso.cjs +0 -64
  1220. package/node_modules/zod/v4/mini/iso.d.cts +0 -22
  1221. package/node_modules/zod/v4/mini/iso.d.ts +0 -22
  1222. package/node_modules/zod/v4/mini/iso.js +0 -34
  1223. package/node_modules/zod/v4/mini/package.json +0 -7
  1224. package/node_modules/zod/v4/mini/parse.cjs +0 -16
  1225. package/node_modules/zod/v4/mini/parse.d.cts +0 -1
  1226. package/node_modules/zod/v4/mini/parse.d.ts +0 -1
  1227. package/node_modules/zod/v4/mini/parse.js +0 -1
  1228. package/node_modules/zod/v4/mini/schemas.cjs +0 -1083
  1229. package/node_modules/zod/v4/mini/schemas.d.cts +0 -445
  1230. package/node_modules/zod/v4/mini/schemas.d.ts +0 -445
  1231. package/node_modules/zod/v4/mini/schemas.js +0 -961
  1232. package/node_modules/zod/v4/package.json +0 -7
  1233. package/node_modules/zod/v4-mini/index.cjs +0 -32
  1234. package/node_modules/zod/v4-mini/index.d.cts +0 -3
  1235. package/node_modules/zod/v4-mini/index.d.ts +0 -3
  1236. package/node_modules/zod/v4-mini/index.js +0 -3
  1237. package/node_modules/zod/v4-mini/package.json +0 -7
package/dist/bin.js CHANGED
@@ -1,180 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- parseArgs
4
- } from "./chunk-IG2BCCMU.js";
5
-
6
- // src/bin/main.ts
7
- import { readFileSync } from "fs";
8
- var HELP = `mcp-use \u2014 run MCP servers built with mcp-use
9
-
10
- Usage: mcp-use <command> [options]
11
-
12
- Commands:
13
- dev Start the dev server
14
- build Build the server into .mcp-use/build
15
- start Serve the production build from .mcp-use/build
16
- login Authenticate the cloud CLI
17
- logout Delete local cloud credentials
18
- whoami Show the authenticated cloud identity
19
- org Manage the active organization
20
- servers Manage cloud servers and environment variables
21
- deployments Manage cloud deployments and logs
22
- deploy Deploy the current GitHub project
23
- client Connect to and invoke MCP servers
24
- skills Install maintained coding-agent skills
25
- screenshot Capture an MCP Apps view
26
-
27
- Options:
28
- -p, --port <n> Port to serve on (default: $PORT or 3000)
29
- --host <host> Host to bind (dev only)
30
- --entry <path> Server entry module (dev/build only)
31
- --with-inspector Record inspector availability in the build manifest (build only)
32
- --tunnel Expose the dev server through a public tunnel (dev only)
33
- --no-open Do not auto-open the inspector in a browser (dev only)
34
- -h, --help Show this help
35
- -v, --version Print the version`;
36
- async function main(argv) {
37
- if (argv.length === 1 && ["--version", "-v"].includes(argv[0] ?? "")) {
38
- console.log(readOwnVersion());
39
- return 0;
40
- }
41
- if (argv.some((token) => token === "--help" || token === "-h")) {
42
- console.log(HELP);
43
- return 0;
44
- }
45
- const command = argv[0];
46
- if (command === "login" || command === "logout" || command === "whoami") {
47
- const { runIdentity } = await import("./commands/identity.js");
48
- return runIdentity(command, argv.slice(1));
49
- }
50
- if (command === "org") {
51
- const { runOrganizations } = await import("./commands/organizations.js");
52
- return runOrganizations(argv.slice(1));
53
- }
54
- if (command === "servers") {
55
- const { runServers } = await import("./commands/servers.js");
56
- return runServers(argv.slice(1));
57
- }
58
- if (command === "deployments") {
59
- const { runDeployments } = await import("./commands/deployments.js");
60
- return runDeployments(argv.slice(1));
61
- }
62
- if (command === "deploy") {
63
- const { runDeploy } = await import("./commands/deploy.js");
64
- return runDeploy(argv.slice(1));
65
- }
66
- if (command === "client") {
67
- const { runClient } = await import("./commands/client.js");
68
- return runClient(argv.slice(1));
69
- }
70
- if (command === "skills") {
71
- const { runSkills } = await import("./commands/skills.js");
72
- return runSkills(argv.slice(1));
73
- }
74
- if (command === "screenshot") {
75
- const { runScreenshot } = await import("./commands/screenshot.js");
76
- return runScreenshot(argv.slice(1));
77
- }
78
- let args;
79
- try {
80
- args = parseArgs(argv);
81
- } catch (error) {
82
- console.error(error instanceof Error ? error.message : String(error));
83
- return 2;
84
- }
85
- if (args.version) {
86
- console.log(readOwnVersion());
87
- return 0;
88
- }
89
- if (args.help) {
90
- console.log(HELP);
91
- return 0;
92
- }
93
- switch (args.command) {
94
- case "start":
95
- return startCommand(args);
96
- case "dev":
97
- case "build":
98
- return cliCommand(args.command, args);
99
- case void 0:
100
- console.error(HELP);
101
- return 2;
102
- default:
103
- console.error(`Unknown command: ${args.command}
104
-
105
- ${HELP}`);
106
- return 2;
107
- }
108
- }
109
- async function startCommand(args) {
110
- let started;
111
- try {
112
- const { runStart } = await import("./commands/start.js");
113
- started = await runStart({ cwd: process.cwd(), port: args.port });
114
- } catch (error) {
115
- console.error(error instanceof Error ? error.message : String(error));
116
- return 1;
117
- }
118
- console.log(`mcp-use server running at ${started.url}`);
119
- const shutdown = () => {
120
- started.close().then(
121
- () => process.exit(0),
122
- (error) => {
123
- console.error(error instanceof Error ? error.message : String(error));
124
- process.exit(1);
125
- }
126
- );
127
- };
128
- process.once("SIGINT", shutdown);
129
- process.once("SIGTERM", shutdown);
130
- return 0;
131
- }
132
- async function cliCommand(command, args) {
133
- const options = {
134
- cwd: process.cwd(),
135
- ...args.entry !== void 0 && { entry: args.entry },
136
- ...args.port !== void 0 && { port: args.port },
137
- ...args.host !== void 0 && { host: args.host },
138
- ...args.tunnel && { tunnel: true },
139
- ...!args.open && { open: false },
140
- ...args.withInspector && { withInspector: true }
141
- };
142
- try {
143
- if (command === "dev") {
144
- const { runDev } = await import("./commands/dev.js");
145
- await runDev(options);
146
- } else {
147
- const { runBuild } = await import("./commands/build.js");
148
- await runBuild(options);
149
- }
150
- return 0;
151
- } catch (error) {
152
- console.error(error instanceof Error ? error.message : String(error));
153
- return 1;
154
- }
155
- }
156
- function readOwnVersion() {
157
- for (const relative of ["../package.json", "../../package.json"]) {
158
- try {
159
- const raw = readFileSync(new URL(relative, import.meta.url), "utf8");
160
- const pkg = JSON.parse(raw);
161
- if ((pkg.name === "mcp-use" || pkg.name === "mcp-use") && typeof pkg.version === "string") {
162
- return pkg.version;
163
- }
164
- } catch {
165
- }
166
- }
167
- return "unknown";
168
- }
169
-
170
- // src/bin.ts
171
- main(process.argv.slice(2)).then(
172
- (code) => {
173
- process.exitCode = code;
174
- },
175
- (error) => {
176
- console.error(error instanceof Error ? error.message : String(error));
177
- process.exitCode = 1;
178
- }
179
- );
180
- //# sourceMappingURL=bin.js.map
2
+ var{main}=await import("@mcp-use/cli");main(process.argv.slice(2),{frameworkVersion:"2.0.0"}).then(code=>{process.exitCode=code},error=>{console.error(error instanceof Error?error.message:String(error)),process.exitCode=1});
@@ -4,23 +4,21 @@ import type { FetchHandler } from "./fetch-app.js";
4
4
  export interface ServerBranding {
5
5
  /**
6
6
  * Source selected for `/favicon.ico`, after applying explicit-favicon and
7
- * icon-ranking precedence.
7
+ * first-icon inference.
8
8
  */
9
9
  readonly favicon?: string;
10
+ /** MIME type of the selected favicon when known. */
11
+ readonly faviconMimeType?: string;
10
12
  /** Icons reported in MCP implementation metadata, in author order. */
11
13
  readonly icons?: readonly Icon[];
12
14
  /** Server website reported in MCP implementation metadata. */
13
15
  readonly websiteUrl?: string;
14
16
  }
15
- interface NormalizedServerBranding extends ServerBranding {
16
- readonly faviconMimeType?: string;
17
- }
18
17
  /**
19
18
  * Select the browser favicon from an ordered set of MCP icons.
20
19
  *
21
- * Ranking is deterministic: ICO, 16x16/32x32 PNG, any PNG, then the first
22
- * icon. MIME declarations and URL pathnames participate alongside filename
23
- * suffixes, so absolute URLs with queries and data URLs rank correctly.
20
+ * Uses the first icon in author order. Put the preferred browser favicon
21
+ * first, or set {@link ServerConfig.favicon} explicitly.
24
22
  *
25
23
  * @param icons - Validated, non-empty icon list.
26
24
  * @returns The selected icon.
@@ -40,7 +38,7 @@ export declare function normalizeServerBranding(config: {
40
38
  favicon?: unknown;
41
39
  icons?: unknown;
42
40
  websiteUrl?: unknown;
43
- }): NormalizedServerBranding;
41
+ }): ServerBranding;
44
42
  /**
45
43
  * Resolve configured icons for MCP implementation metadata.
46
44
  *
@@ -76,10 +74,8 @@ export declare function hasLocalBrandingAsset(branding: ServerBranding): boolean
76
74
  *
77
75
  * @internal
78
76
  */
79
- export declare function createFaviconHandler(branding: NormalizedServerBranding, options: {
77
+ export declare function createFaviconHandler(branding: ServerBranding, options: {
80
78
  dev: boolean;
81
79
  projectRoot: string;
82
80
  deferCors?: boolean;
83
81
  }): FetchHandler | undefined;
84
- export {};
85
- //# sourceMappingURL=branding.d.ts.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Mark a framework-owned response whose body is already buffered in memory.
3
+ *
4
+ * @internal
5
+ */
6
+ export declare function markBufferedResponse(response: Response): Response;
7
+ /**
8
+ * Associate a known-buffered SDK response with the request that produced it.
9
+ *
10
+ * Keeping the source response lets the Node bridge recognize framework-owned
11
+ * header wrappers by body identity without trusting a content type. If any
12
+ * middleware clones or replaces the body, the identity check fails closed.
13
+ *
14
+ * @internal
15
+ */
16
+ export declare function trackBufferedResponse(request: Request, response: Response): Response;
17
+ /** Whether a response body is covered by the framework's buffered contract. */
18
+ export declare function isBufferedResponse(response: Response, request?: Request): boolean;
19
+ /**
20
+ * Preserve the marker across a framework-owned, header-only response wrapper.
21
+ *
22
+ * Body-transforming user middleware does not call this helper, so replacing a
23
+ * response still drops the buffered contract automatically.
24
+ *
25
+ * @internal
26
+ */
27
+ export declare function inheritBufferedResponse(source: Response, target: Response): Response;
@@ -0,0 +1,2 @@
1
+ var EVENT="mcp_use_sdk_event",ENDPOINT="https://eu.i.posthog.com/i/v0/e/",TOKEN="phc_lyTtbYwvkdSbrcMQNPiKiiRWrrM1seyKIMjycSvItEI",CONTENT=/(^|_)(arguments?|args|body|command|headers?|location|message|organization|path|query|response|secret|subject|token|uri|url|user_agent)(_|$)/i,RESERVED=new Set("feature action sdk_generation telemetry_schema_version sdk_package sdk_version server_id runtime_id identity_stability distinct_id validation_run_id is_validation".split(" ")),runtimeId;function getRuntimeId(){return runtimeId??=crypto.randomUUID(),runtimeId}var once=new Set,pending=new Set,identities=new Map;function hasControl(value){return[...value].some(character=>{let code=character.charCodeAt(0);return code<32||code===127})}function env(name){return typeof process>"u"?void 0:process.env?.[name]}function safeEnv(name){let value=env(name);return value!==void 0&&value.length>0&&value.length<=128&&!hasControl(value)?value:void 0}function canPersistTelemetryIdentity(){return typeof process>"u"||process.versions?.node===void 0?!1:!("Deno"in globalThis)}function disabled(){if(env("MCP_USE_ANONYMIZED_TELEMETRY")==="false")return!0;try{return globalThis.__MCP_USE_ANONYMIZED_TELEMETRY__===!1||typeof localStorage<"u"&&localStorage.getItem("MCP_USE_ANONYMIZED_TELEMETRY")==="false"}catch{return!1}}function isUsageDisabled(){return disabled()}function clean(properties){return Object.fromEntries(Object.entries(properties).filter(([key,value])=>key.length>128||hasControl(key)||key.startsWith("$")||RESERVED.has(key)||CONTENT.test(key)||value===void 0?!1:typeof value=="string"?value.length<=128&&!hasControl(value):typeof value=="boolean"||typeof value=="number"&&Number.isFinite(value)))}async function identity(serverRoot){let projectId=safeEnv("MCP_USE_TELEMETRY_PROJECT_ID");if(projectId!==void 0)return{id:projectId,stability:"project"};if(serverRoot===void 0||!canPersistTelemetryIdentity())return{id:getRuntimeId(),stability:"process"};let existing=identities.get(serverRoot);if(existing!==void 0)return existing;let resolving=(async()=>{try{let fs=await import("fs/promises"),directory=`${serverRoot}/.mcp-use`,file=`${directory}/usage.json`,read=async()=>{try{let value=JSON.parse(await fs.readFile(file,"utf8"));if(typeof value=="object"&&value!==null&&"schemaVersion"in value&&value.schemaVersion===1&&"serverId"in value&&typeof value.serverId=="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(value.serverId))return value.serverId}catch{}},stored=await read();if(stored!==void 0)return{id:stored,stability:"server"};await fs.mkdir(directory,{recursive:!0,mode:448});let created=crypto.randomUUID();try{return await fs.writeFile(file,`${JSON.stringify({schemaVersion:1,serverId:created})}
2
+ `,{flag:"wx",mode:384}),{id:created,stability:"server"}}catch{let raced=await read();if(raced!==void 0)return{id:raced,stability:"server"}}}catch{}return{id:getRuntimeId(),stability:"process"}})();return identities.set(serverRoot,resolving),resolving}function capture(feature,action,properties,options,resolveIdentity){let validationId=safeEnv("MCP_USE_TELEMETRY_VALIDATION_ID");if(disabled()||env("NODE_ENV")==="test"&&validationId===void 0||pending.size>=16)return;if(options.onceKey!==void 0){if(once.has(options.onceKey))return;once.add(options.onceKey)}let rate=Math.max(0,Math.min(1,options.sampleRate??1));if(validationId===void 0&&Math.random()>=rate)return;let request=(async()=>{try{let resolvedIdentity=await resolveIdentity(),body=JSON.stringify({api_key:TOKEN,event:EVENT,properties:{...clean(properties),feature,action,sdk_generation:"v2",telemetry_schema_version:2,sdk_package:"mcp-use",sdk_version:"2.0.0",server_id:resolvedIdentity.id,runtime_id:getRuntimeId(),identity_stability:resolvedIdentity.stability,distinct_id:resolvedIdentity.id,sample_rate:validationId===void 0?rate:1,$process_person_profile:!1,$geoip_disable:!0,...validationId!==void 0&&{is_validation:!0,validation_run_id:validationId}}});await fetch(ENDPOINT,{method:"POST",headers:{"content-type":"application/json"},keepalive:!0,body})}catch{return}})();pending.add(request),request.then(()=>pending.delete(request))}function recordUsage(feature,action,properties={},options={}){capture(feature,action,properties,options,()=>identity(options.serverRoot))}async function flushUsage(){await Promise.all([...pending])}export{isUsageDisabled,recordUsage,flushUsage};
@@ -1,68 +1,25 @@
1
- // src/landing.ts
2
- function escapeHtml(text) {
3
- return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
4
- }
5
- function serializeScriptJson(value) {
6
- return JSON.stringify(value).replace(/</g, "\\u003c").replace(/>/g, "\\u003e");
7
- }
8
- function sanitizeServerName(name) {
9
- return name.replace(/[^a-zA-Z0-9-_]/g, "_").toLowerCase();
10
- }
11
- function generateCursorDeepLink(url, name) {
12
- const config = { url };
13
- const configJson = JSON.stringify(config);
14
- const base64Config = typeof Buffer !== "undefined" ? Buffer.from(configJson).toString("base64") : btoa(configJson);
15
- const sanitizedName = sanitizeServerName(name);
16
- return `cursor://anysphere.cursor-deeplink/mcp/install?config=${encodeURIComponent(base64Config)}&name=${encodeURIComponent(sanitizedName)}`;
17
- }
18
- function generateVSCodeDeepLink(url, name) {
19
- const config = {
20
- url,
21
- name: sanitizeServerName(name),
22
- type: "http"
23
- };
24
- const configJson = JSON.stringify(config);
25
- const urlEncodedConfig = encodeURIComponent(configJson);
26
- return `vscode:mcp/install?${urlEncodedConfig}`;
27
- }
28
- function generateVSCodeInsidersDeepLink(url, name) {
29
- const config = {
30
- url,
31
- name: sanitizeServerName(name),
32
- type: "http"
33
- };
34
- const configJson = JSON.stringify(config);
35
- const urlEncodedConfig = encodeURIComponent(configJson);
36
- return `vscode-insiders:mcp/install?${urlEncodedConfig}`;
37
- }
38
- function generateClaudeCommand(url, name) {
39
- const sanitizedName = sanitizeServerName(name);
40
- const quotedUrl = `'${url.replace(/'/g, "'\\''")}'`;
41
- return `claude mcp add --transport http "${sanitizedName}" ${quotedUrl}`;
42
- }
43
- var MANUFACT_INSPECTOR_ORIGIN = "https://inspector.manufact.com";
44
- function getManufactInspectorUrl(serverUrl) {
45
- const params = new URLSearchParams({
46
- autoConnect: serverUrl,
47
- tab: "chat"
48
- });
49
- return `${MANUFACT_INSPECTOR_ORIGIN}/inspector?${params.toString()}`;
50
- }
51
- var LOGO_SVG_PATHS = {
52
- path1: "M105.933 0C164.437 0.000115889 211.865 47.607 211.865 106.333C211.865 131.828 210.494 158.401 221.068 181.6L228.976 198.947C243.585 230.997 269.266 256.7 301.304 271.336L316.156 278.121C340.143 289.079 367.695 287.335 394.067 287.335C452.572 287.335 500 334.942 500 393.668C500 452.394 452.572 500.001 394.067 500.001C335.563 500.001 288.135 452.394 288.135 393.668C288.135 368.974 289.241 343.275 278.992 320.807L270.587 302.38C255.949 270.289 230.214 244.565 198.118 229.939L180.164 221.758C157.282 211.331 131.078 212.666 105.933 212.666C47.4278 212.666 4.92992e-05 165.059 0 106.333C0 47.607 47.4278 0 105.933 0Z",
53
- circle: { cx: 100.426, cy: 399.575, r: 100.426 },
54
- path2: "M500 100.426C500 155.889 455.037 200.851 399.574 200.851C344.11 200.851 299.148 155.889 299.148 100.426C299.148 44.962 344.11 0 399.574 0C455.037 0 500 44.962 500 100.426Z"
55
- };
56
- var LINE_INTERSECTION_PATH = "M10.5 4C10.5 7.31371 7.81371 10 4.5 10H0.5V11H4.5C7.81371 11 10.5 13.6863 10.5 17V21H11.5V17C11.5 13.6863 14.1863 11 17.5 11H21.5V10H17.5C14.1863 10 11.5 7.31371 11.5 4V0H10.5V4Z";
57
- function getMeshGradientScript() {
58
- const VERT = `#version 300 es
1
+ function escapeHtml(text){return text.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function serializeScriptJson(value){return JSON.stringify(value).replace(/</g,"\\u003c").replace(/>/g,"\\u003e")}function sanitizeServerName(name){return name.replace(/[^a-zA-Z0-9-_]/g,"_").toLowerCase()}function generateCursorDeepLink(url,name){let configJson=JSON.stringify({url}),base64Config=typeof Buffer<"u"?Buffer.from(configJson).toString("base64"):btoa(configJson),sanitizedName=sanitizeServerName(name);return`cursor://anysphere.cursor-deeplink/mcp/install?config=${encodeURIComponent(base64Config)}&name=${encodeURIComponent(sanitizedName)}`}function generateVSCodeDeepLink(url,name){let config={url,name:sanitizeServerName(name),type:"http"},configJson=JSON.stringify(config);return`vscode:mcp/install?${encodeURIComponent(configJson)}`}function generateVSCodeInsidersDeepLink(url,name){let config={url,name:sanitizeServerName(name),type:"http"},configJson=JSON.stringify(config);return`vscode-insiders:mcp/install?${encodeURIComponent(configJson)}`}function generateClaudeCommand(url,name){let sanitizedName=sanitizeServerName(name),quotedUrl=`'${url.replace(/'/g,"'\\''")}'`;return`claude mcp add --transport http "${sanitizedName}" ${quotedUrl}`}var MANUFACT_INSPECTOR_ORIGIN="https://inspector.manufact.com";function getManufactInspectorUrl(serverUrl){let params=new URLSearchParams({autoConnect:serverUrl,tab:"chat"});return`${MANUFACT_INSPECTOR_ORIGIN}/inspector?${params.toString()}`}var LOGO_SVG_PATHS={path1:"M105.933 0C164.437 0.000115889 211.865 47.607 211.865 106.333C211.865 131.828 210.494 158.401 221.068 181.6L228.976 198.947C243.585 230.997 269.266 256.7 301.304 271.336L316.156 278.121C340.143 289.079 367.695 287.335 394.067 287.335C452.572 287.335 500 334.942 500 393.668C500 452.394 452.572 500.001 394.067 500.001C335.563 500.001 288.135 452.394 288.135 393.668C288.135 368.974 289.241 343.275 278.992 320.807L270.587 302.38C255.949 270.289 230.214 244.565 198.118 229.939L180.164 221.758C157.282 211.331 131.078 212.666 105.933 212.666C47.4278 212.666 4.92992e-05 165.059 0 106.333C0 47.607 47.4278 0 105.933 0Z",circle:{cx:100.426,cy:399.575,r:100.426},path2:"M500 100.426C500 155.889 455.037 200.851 399.574 200.851C344.11 200.851 299.148 155.889 299.148 100.426C299.148 44.962 344.11 0 399.574 0C455.037 0 500 44.962 500 100.426Z"},LINE_INTERSECTION_PATH="M10.5 4C10.5 7.31371 7.81371 10 4.5 10H0.5V11H4.5C7.81371 11 10.5 13.6863 10.5 17V21H11.5V17C11.5 13.6863 14.1863 11 17.5 11H21.5V10H17.5C14.1863 10 11.5 7.31371 11.5 4V0H10.5V4Z";function getMeshGradientScript(){return`(function(){
2
+ var c=document.getElementById('mesh-bg');
3
+ if(!c)return;
4
+ var wrap=c.parentElement;
5
+ if(!wrap)return;
6
+ var gl=c.getContext('webgl2');
7
+ if(!gl)return;
8
+ function compileShader(typ,src){
9
+ var s=gl.createShader(typ);
10
+ gl.shaderSource(s,src);
11
+ gl.compileShader(s);
12
+ if(!gl.getShaderParameter(s,gl.COMPILE_STATUS)){console.error(gl.getShaderInfoLog(s));return null;}
13
+ return s;
14
+ }
15
+ var vs=compileShader(gl.VERTEX_SHADER,${JSON.stringify(`#version 300 es
59
16
  in vec4 a_position;
60
17
  out vec2 v_objectUV;
61
18
  void main(){
62
19
  gl_Position=a_position;
63
- v_objectUV=a_position.xy*0.5+0.5;
64
- }`;
65
- const FRAG = `#version 300 es
20
+ v_objectUV=a_position.xy*0.5;
21
+ }`)});
22
+ var fs=compileShader(gl.FRAGMENT_SHADER,${JSON.stringify(`#version 300 es
66
23
  precision mediump float;
67
24
  uniform float u_time;
68
25
  uniform vec4 u_colors[4];
@@ -129,23 +86,7 @@ void main(){
129
86
  color=mix(color,grainOC,.35*grainOS);
130
87
  opacity+=.5*grainOS;
131
88
  fragColor=vec4(color,clamp(opacity,0.,1.));
132
- }`;
133
- return `(function(){
134
- var c=document.getElementById('mesh-bg');
135
- if(!c)return;
136
- var wrap=c.parentElement;
137
- if(!wrap)return;
138
- var gl=c.getContext('webgl2');
139
- if(!gl)return;
140
- function compileShader(typ,src){
141
- var s=gl.createShader(typ);
142
- gl.shaderSource(s,src);
143
- gl.compileShader(s);
144
- if(!gl.getShaderParameter(s,gl.COMPILE_STATUS)){console.error(gl.getShaderInfoLog(s));return null;}
145
- return s;
146
- }
147
- var vs=compileShader(gl.VERTEX_SHADER,${JSON.stringify(VERT)});
148
- var fs=compileShader(gl.FRAGMENT_SHADER,${JSON.stringify(FRAG)});
89
+ }`)});
149
90
  if(!vs||!fs)return;
150
91
  var prog=gl.createProgram();
151
92
  gl.attachShader(prog,vs);
@@ -196,55 +137,10 @@ function draw(){
196
137
  resize();
197
138
  new ResizeObserver(resize).observe(wrap);
198
139
  draw();
199
- })();`;
200
- }
201
- function generateLandingPage(options) {
202
- const {
203
- name: protocolName,
204
- title,
205
- version,
206
- url,
207
- description,
208
- tools,
209
- prompts,
210
- resources,
211
- iconUrl
212
- } = options;
213
- const name = title ?? protocolName;
214
- const cursorDeepLink = generateCursorDeepLink(url, name);
215
- const vscodeDeepLink = generateVSCodeDeepLink(url, name);
216
- const vscodeInsidersDeepLink = generateVSCodeInsidersDeepLink(url, name);
217
- const claudeCommand = generateClaudeCommand(url, name);
218
- const manufactInspectorUrl = getManufactInspectorUrl(url);
219
- const safeName = escapeHtml(name);
220
- const safeDescription = description ? escapeHtml(description) : "";
221
- const rawMetaDescription = description || `${name} MCP Server \u2014 Connect with Claude Code, Cursor, and VS Code. Model Context Protocol server.`;
222
- const metaDescription = escapeHtml(rawMetaDescription);
223
- const pageTitle = `${safeName} MCP Server \u2014 Connect with Claude Code, Cursor & VS Code`;
224
- const jsonLd = serializeScriptJson({
225
- "@context": "https://schema.org",
226
- "@type": "SoftwareApplication",
227
- name,
228
- softwareVersion: version,
229
- description: rawMetaDescription,
230
- applicationCategory: "DeveloperApplication"
231
- });
232
- const normalizedTools = tools && tools.length > 0 ? tools.map((tool) => ({
233
- name: tool.title ?? tool.name,
234
- ...tool.description !== void 0 && {
235
- description: tool.description
236
- }
237
- })) : [];
238
- const toolsListHtml = normalizedTools.length > 0 ? normalizedTools.map(
239
- (t) => `<div class="spec-item"><code class="spec-name">${escapeHtml(t.name)}</code>${t.description ? `<p class="spec-desc">${escapeHtml(t.description)}</p>` : ""}</div>`
240
- ).join("\n") : "";
241
- const promptsListHtml = prompts && prompts.length > 0 ? prompts.map(
242
- (p) => `<div class="spec-item"><code class="spec-name">${escapeHtml(p.title ?? p.name)}</code>${p.description ? `<p class="spec-desc">${escapeHtml(p.description)}</p>` : ""}</div>`
243
- ).join("\n") : "";
244
- const resourcesListHtml = resources && resources.length > 0 ? resources.map(
245
- (r) => `<div class="spec-item"><code class="spec-uri">${escapeHtml(r.uri)}</code>${r.description ? `<p class="spec-desc">${escapeHtml(r.description)}</p>` : ""}</div>`
246
- ).join("\n") : "";
247
- return `<!DOCTYPE html>
140
+ })();`}function generateLandingPage(options){let{name:protocolName,title,version,url,description,tools,prompts,resources,iconUrl,iconType}=options,name=title??protocolName,cursorDeepLink=generateCursorDeepLink(url,name),vscodeDeepLink=generateVSCodeDeepLink(url,name),vscodeInsidersDeepLink=generateVSCodeInsidersDeepLink(url,name),claudeCommand=generateClaudeCommand(url,name),manufactInspectorUrl=getManufactInspectorUrl(url),safeName=escapeHtml(name),safeDescription=description?escapeHtml(description):"",rawMetaDescription=description||`${name} MCP Server \u2014 Connect with Claude Code, Cursor, and VS Code. Model Context Protocol server.`,metaDescription=escapeHtml(rawMetaDescription),pageTitle=`${safeName} MCP Server \u2014 Connect with Claude Code, Cursor & VS Code`,jsonLd=serializeScriptJson({"@context":"https://schema.org","@type":"SoftwareApplication",name,softwareVersion:version,description:rawMetaDescription,applicationCategory:"DeveloperApplication"}),normalizedTools=tools&&tools.length>0?tools.map(tool=>({name:tool.title??tool.name,...tool.description!==void 0&&{description:tool.description}})):[],toolsListHtml=normalizedTools.length>0?normalizedTools.map(t=>`<div class="spec-item"><code class="spec-name">${escapeHtml(t.name)}</code>${t.description?`<p class="spec-desc">${escapeHtml(t.description)}</p>`:""}</div>`).join(`
141
+ `):"",promptsListHtml=prompts&&prompts.length>0?prompts.map(p=>`<div class="spec-item"><code class="spec-name">${escapeHtml(p.title??p.name)}</code>${p.description?`<p class="spec-desc">${escapeHtml(p.description)}</p>`:""}</div>`).join(`
142
+ `):"",resourcesListHtml=resources&&resources.length>0?resources.map(r=>`<div class="spec-item"><code class="spec-uri">${escapeHtml(r.uri)}</code>${r.description?`<p class="spec-desc">${escapeHtml(r.description)}</p>`:""}</div>`).join(`
143
+ `):"";return`<!DOCTYPE html>
248
144
  <html lang="en">
249
145
  <head>
250
146
  <meta charset="UTF-8">
@@ -257,7 +153,7 @@ function generateLandingPage(options) {
257
153
  <meta name="twitter:card" content="summary">
258
154
  <meta name="twitter:title" content="${pageTitle}">
259
155
  <meta name="twitter:description" content="${metaDescription}">
260
- ${iconUrl ? `<link rel="icon" href="${escapeHtml(iconUrl)}">` : ""}
156
+ ${iconUrl?`<link rel="icon"${iconType?` type="${escapeHtml(iconType)}"`:""} href="${escapeHtml(iconUrl)}">`:""}
261
157
  <link rel="preconnect" href="https://fonts.googleapis.com">
262
158
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
263
159
  <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap" rel="stylesheet">
@@ -578,12 +474,12 @@ a:hover { text-decoration: underline; }
578
474
  <div class="hero-gradient-wrap" id="hero-gradient-wrap">
579
475
  <canvas id="mesh-bg" aria-hidden="true"></canvas>
580
476
  <div class="hero-inner">
581
- <div class="card-header ${iconUrl ? "has-icon" : ""}">
582
- ${iconUrl ? `<img src="${escapeHtml(iconUrl)}" alt="" class="hero-icon" width="64" height="64" />` : ""}
477
+ <div class="card-header ${iconUrl?"has-icon":""}">
478
+ ${iconUrl?`<img src="${escapeHtml(iconUrl)}" alt="" class="hero-icon" width="64" height="64" />`:""}
583
479
  <div class="hero-row">
584
480
  <h1>${safeName} <span class="version">(v${escapeHtml(version)})</span></h1>
585
481
  </div>
586
- ${safeDescription ? `<p class="hero-description">${safeDescription}</p>` : ""}
482
+ ${safeDescription?`<p class="hero-description">${safeDescription}</p>`:""}
587
483
  <div class="hero-url-block">
588
484
  <div class="url-block">
589
485
  <div class="url-box" data-copy="${escapeHtml(url)}">${escapeHtml(url)}</div>
@@ -661,16 +557,16 @@ a:hover { text-decoration: underline; }
661
557
  </div>
662
558
  </div>
663
559
 
664
- ${toolsListHtml || promptsListHtml || resourcesListHtml ? `
560
+ ${toolsListHtml||promptsListHtml||resourcesListHtml?`
665
561
  <div class="card">
666
562
  <div class="card-header">
667
563
  <h2 class="card-title">Primitives</h2>
668
- ${toolsListHtml ? `<div class="spec-section"><h3>Tools (${normalizedTools.length})</h3>${toolsListHtml}</div>` : ""}
669
- ${promptsListHtml ? `<div class="spec-section"><h3>Prompts (${prompts.length})</h3>${promptsListHtml}</div>` : ""}
670
- ${resourcesListHtml ? `<div class="spec-section"><h3>Resources (${resources.length})</h3>${resourcesListHtml}</div>` : ""}
564
+ ${toolsListHtml?`<div class="spec-section"><h3>Tools (${normalizedTools.length})</h3>${toolsListHtml}</div>`:""}
565
+ ${promptsListHtml?`<div class="spec-section"><h3>Prompts (${prompts.length})</h3>${promptsListHtml}</div>`:""}
566
+ ${resourcesListHtml?`<div class="spec-section"><h3>Resources (${resources.length})</h3>${resourcesListHtml}</div>`:""}
671
567
  </div>
672
568
  </div>
673
- ` : ""}
569
+ `:""}
674
570
 
675
571
  <footer class="footer-content">
676
572
  <a href="https://manufact.com" target="_blank" rel="noopener noreferrer" class="footer-brand-link" aria-label="Manufact">
@@ -731,10 +627,4 @@ a:hover { text-decoration: underline; }
731
627
  })();
732
628
  </script>
733
629
  </body>
734
- </html>`;
735
- }
736
-
737
- export {
738
- generateLandingPage
739
- };
740
- //# sourceMappingURL=chunk-GTOOHAI2.js.map
630
+ </html>`}export{generateLandingPage};
@@ -0,0 +1 @@
1
+ function isRecord(value){return value!==null&&typeof value=="object"&&!Array.isArray(value)}function isLocalhost(url){let hostname=url.hostname.toLowerCase();return hostname==="localhost"||hostname.endsWith(".localhost")||hostname==="[::1]"||/^127(?:\.\d{1,3}){3}$/.test(hostname)}function parseAbsoluteUrl(value,name){let url;try{url=new URL(value)}catch{throw new Error(`${name} must be an absolute URL`)}if(url.origin==="null"||url.username!==""||url.password!=="")throw new Error(`${name} must be an absolute URL without credentials`);return url}function assertSecureHttpUrl(url,name){if(url.protocol!=="https:"&&!(url.protocol==="http:"&&isLocalhost(url)))throw new Error(`${name} must use HTTPS, or HTTP for localhost`)}import{OAuthError,OAuthErrorCode}from"@modelcontextprotocol/server";function invalidToken(message,cause){let error=new OAuthError(OAuthErrorCode.InvalidToken,message);return cause!==void 0&&(error.cause=cause),error}function resolveConfiguredOAuthResource(options){let provider=options.provider,basePath=normalizeBasePath(options.basePath);if(provider.resource!==void 0)return validateOAuthResource(provider.resource,basePath);if(options.mcpUrl!==void 0)return validateOAuthResource(appendBasePath(requireAbsoluteOrigin(options.mcpUrl,"MCP_URL"),basePath),basePath)}function resolveLocalOAuthResource(listenOrigin,basePath){let listenOriginUrl=requireAbsoluteOrigin(listenOrigin,"listen origin");if(!isLocalhost(listenOriginUrl))throw new Error("OAuth listen origin must be localhost or a loopback address");return validateOAuthResource(appendBasePath(listenOriginUrl,normalizeBasePath(basePath)),basePath)}function validateOAuthResource(resource,basePath){let normalizedBasePath=normalizeBasePath(basePath),url=parseAbsoluteUrl(resource,"OAuth resource");if(url.search!==""||url.hash!=="")throw new Error("OAuth resource must not include a query string or fragment");if(assertSecureHttpUrl(url,"OAuth resource"),normalizePathname(url.pathname)!==normalizedBasePath)throw new Error(`OAuth resource path must exactly match basePath (${normalizedBasePath})`);return url.pathname=normalizedBasePath,url}function wrapOAuthTokenVerifier(provider,expectedResource){let canonicalResource=normalizeResourceUrl(expectedResource),tokenVerifier=provider.createTokenVerifier(new URL(canonicalResource.href));if(tokenVerifier===null||typeof tokenVerifier!="object"||typeof tokenVerifier.verifyAccessToken!="function")throw new TypeError("OAuth provider createTokenVerifier must return an OAuthTokenVerifier");return{async verifyAccessToken(token){let authInfo=await tokenVerifier.verifyAccessToken(token);assertVerifiedAuthInfo(authInfo),assertResourceBinding(authInfo,canonicalResource);let mapped;try{mapped=provider.mapAuthInfo(authInfo)}catch(error){throw invalidToken("Token identity mapping failed",error)}return assertMappedExtra(mapped),{...authInfo,scopes:[...authInfo.scopes],extra:{...authInfo.extra,...mapped}}}}}function assertResourceBinding(authInfo,expectedResource){if(authInfo.resource===void 0)throw invalidToken("Token verifier did not return a validated protected resource");if(parseTokenResource(authInfo.resource).href!==normalizeResourceUrl(expectedResource).href)throw invalidToken("Token resource does not match the protected resource")}function parseTokenResource(value){if(!(value instanceof URL))throw invalidToken("Token resource must be an absolute HTTPS URL, or HTTP URL for localhost");let resource=value;if(!/^https?:$/.test(resource.protocol)||resource.username!==""||resource.password!==""||resource.search!==""||resource.hash!==""||resource.protocol==="http:"&&!isLocalhost(resource))throw invalidToken("Token resource must be an absolute HTTPS URL, or HTTP URL for localhost");return normalizeResourceUrl(resource)}function normalizeResourceUrl(resource){let normalized=new URL(resource);return normalized.pathname=normalized.pathname==="/"?"/":normalized.pathname.replace(/\/+$/,""),normalized}function getOAuthProviderOptions(provider){return{oauthMetadata:provider.oauthMetadata,...provider.requiredScopes!==void 0&&{requiredScopes:[...provider.requiredScopes]},...provider.scopesSupported!==void 0&&{scopesSupported:[...provider.scopesSupported]},...provider.resourceName!==void 0&&{resourceName:provider.resourceName},...provider.serviceDocumentationUrl!==void 0&&{serviceDocumentationUrl:provider.serviceDocumentationUrl}}}function assertVerifiedAuthInfo(authInfo){if(authInfo===null||typeof authInfo!="object"||typeof authInfo.token!="string"||authInfo.token.length===0||typeof authInfo.clientId!="string"||!Array.isArray(authInfo.scopes)||!authInfo.scopes.every(scope=>typeof scope=="string")||typeof authInfo.expiresAt!="number"||!Number.isFinite(authInfo.expiresAt)||authInfo.expiresAt<=Date.now()/1e3)throw invalidToken("Token verifier returned invalid authentication information")}function assertMappedExtra(mapped){if(mapped===null||typeof mapped!="object"||!("user"in mapped)||mapped.user===void 0||!isRecord(mapped.payload)||!Array.isArray(mapped.permissions)||!mapped.permissions.every(permission=>typeof permission=="string"))throw invalidToken("Token identity mapping must return user, payload, and string permissions")}function requireAbsoluteOrigin(value,name){let url=parseAbsoluteUrl(value,name);if(url.pathname!=="/"||url.search!==""||url.hash!==""||url.username!==""||url.password!=="")throw new Error(`${name} must be an absolute origin without a path`);return url}function appendBasePath(origin,basePath){let resource=new URL(origin.origin);return resource.pathname=basePath,resource}function normalizeBasePath(basePath){if(!basePath.startsWith("/")||basePath.includes("?")||basePath.includes("#"))throw new Error("basePath must be an absolute URL pathname");return normalizePathname(basePath)}function normalizePathname(pathname){if(pathname==="/")return"/";let end=pathname.length;for(;end>0&&pathname.charCodeAt(end-1)===47;)end--;return pathname.slice(0,end)}function oauthCustomProvider(options){if(options===null||typeof options!="object"||typeof options.createTokenVerifier!="function"||typeof options.mapAuthInfo!="function")throw new TypeError("oauthCustomProvider requires createTokenVerifier, oauthMetadata, and mapAuthInfo");if(assertOAuthMetadata(options.oauthMetadata),options.resource!==void 0&&assertResourceUrl(options.resource),assertStringArray(options.requiredScopes,"requiredScopes"),assertStringArray(options.scopesSupported,"scopesSupported"),options.resourceName!==void 0&&(typeof options.resourceName!="string"||options.resourceName.trim().length===0))throw new TypeError("resourceName must be a non-empty string");if(options.serviceDocumentationUrl!==void 0){if(!(options.serviceDocumentationUrl instanceof URL))throw new TypeError("serviceDocumentationUrl must be a URL");assertSecureHttpUrl(options.serviceDocumentationUrl,"serviceDocumentationUrl")}return{createTokenVerifier:options.createTokenVerifier,oauthMetadata:options.oauthMetadata,mapAuthInfo:options.mapAuthInfo,...options.resource!==void 0&&{resource:options.resource},...options.requiredScopes!==void 0&&{requiredScopes:[...options.requiredScopes]},...options.scopesSupported!==void 0&&{scopesSupported:[...options.scopesSupported]},...options.resourceName!==void 0&&{resourceName:options.resourceName},...options.serviceDocumentationUrl!==void 0&&{serviceDocumentationUrl:options.serviceDocumentationUrl}}}function assertOAuthMetadata(metadata){if(metadata===null||typeof metadata!="object"||!("issuer"in metadata)||typeof metadata.issuer!="string")throw new TypeError("oauthMetadata must include a string issuer");assertSecureHttpUrl(parseAbsoluteUrl(metadata.issuer,"oauthMetadata.issuer"),"oauthMetadata.issuer")}function assertResourceUrl(resource){assertSecureHttpUrl(parseAbsoluteUrl(resource,"resource"),"resource")}function assertStringArray(value,name){if(value!==void 0&&(!Array.isArray(value)||!value.every(item=>typeof item=="string")))throw new TypeError(`${name} must be an array of strings`)}export{isRecord,isLocalhost,invalidToken,resolveConfiguredOAuthResource,resolveLocalOAuthResource,wrapOAuthTokenVerifier,getOAuthProviderOptions,oauthCustomProvider};
@@ -0,0 +1 @@
1
+ import{invalidToken,isLocalhost,isRecord}from"./chunk-IS7FKXFR.js";import{OAuthError}from"@modelcontextprotocol/server";import{createRemoteJWKSet,jwtVerify,errors}from"jose";function createJwtVerifier(options){let key=options.key??createRemoteJWKSet(options.jwksUrl),configuredResource=canonicalUrl(options.resource),configuredAudience=verifierAudience(options.audience);if(configuredAudience!==void 0&&options.issuerBoundAccessTokens===!0)throw new TypeError("JWT verifier cannot combine audience and issuer-bound access tokens");return{async verifyAccessToken(token){try{let{payload}=await jwtVerify(token,key,{issuer:options.issuer,...configuredAudience!==void 0&&{audience:configuredAudience},...options.algorithms!==void 0&&{algorithms:[...options.algorithms]},requiredClaims:["exp","sub"]}),claims={...payload},clientId=requiredString(claims,"client_id")??requiredString(claims,"azp"),expiresAt=requiredFutureNumber(claims,"exp"),resource=verifiedResource(claims,configuredResource,configuredAudience!==void 0||options.issuerBoundAccessTokens===!0);return{token,clientId:clientId??"",scopes:normalizedStrings(claims.scope),expiresAt,extra:{payload:claims},resource}}catch(error){throw error instanceof OAuthError?error:isCredentialFailure(error)?(process.env.MCP_USE_OAUTH_DEBUG&&logJwtFailure(token,error),invalidToken("JWT verification failed",error)):error}}}}function normalizedProviderUrl(value,name){let raw=typeof value=="string"&&!value.includes("://")?`https://${value}`:value,url;try{url=new URL(raw)}catch{throw new TypeError(`${name} must be an absolute HTTP(S) URL`)}if(!isAllowedHttpUrl(url))throw new TypeError(`${name} must use HTTPS, or HTTP for localhost, without credentials, query, or fragment`);return url.pathname=url.pathname.replace(/\/+$/,"")||"/",url}function providerEndpoint(issuer,path){let base=new URL(issuer);return base.pathname=`${base.pathname.replace(/\/+$/,"")}/`,new URL(path.replace(/^\/+/,""),base).href}function payloadFromAuthInfo(authInfo){let payload=authInfo.extra?.payload;if(!isRecord(payload))throw invalidToken("Verified token payload is missing");return payload}function requiredString(claims,name){let value=claims[name];return typeof value=="string"&&value.trim().length>0?value:void 0}function stringValue(claims,name){let value=claims[name];return typeof value=="string"?value:void 0}function booleanValue(claims,name){let value=claims[name];return typeof value=="boolean"?value:void 0}function numberValue(claims,name){let value=claims[name];return typeof value=="number"&&Number.isFinite(value)?value:void 0}function recordValue(claims,name){let value=claims[name];return isRecord(value)?value:void 0}function normalizedStrings(value){return typeof value=="string"?value.split(/\s+/).filter(Boolean):Array.isArray(value)?value.filter(item=>typeof item=="string"&&item.length>0):[]}function requiredFutureNumber(claims,name){let value=numberValue(claims,name);if(value===void 0||value<=Date.now()/1e3)throw invalidToken(`Missing or expired ${name} claim`);return value}function verifiedResource(claims,configuredResource,providerBindingWasValidated){let value=claims.resource;if(value!==void 0){if(typeof value!="string")throw invalidToken("Token resource claim must be an absolute URL");if(canonicalUrl(value).href!==configuredResource.href)throw invalidToken("Token resource claim does not match protected resource");return configuredResource}if(providerBindingWasValidated)return configuredResource;let audience=claims.aud;if(!validAudience(audience))throw invalidToken("Token audience claim must be a string or string array");if(!(typeof audience=="string"?[audience]:audience).includes(configuredResource.href))throw invalidToken("Token audience does not include the protected resource");return configuredResource}function verifierAudience(value){if(value!==void 0){if(typeof value=="string"&&value.trim().length>0)return value;if(Array.isArray(value)&&value.length>0&&value.every(audience=>typeof audience=="string"&&audience.trim().length>0))return[...value];throw new TypeError("JWT verifier audience must be a non-empty string or string array")}}function validAudience(value){return typeof value=="string"||Array.isArray(value)&&value.length>0&&value.every(item=>typeof item=="string")}function canonicalUrl(value){try{let url=new URL(value);if(!isAllowedHttpUrl(url))throw new TypeError;return url.pathname=url.pathname==="/"?"/":url.pathname.replace(/\/+$/,""),url}catch{throw invalidToken("Token resource claim must be an absolute HTTPS URL, or HTTP URL for localhost")}}function isAllowedHttpUrl(url){return/^https?:$/.test(url.protocol)&&!url.username&&!url.password&&!url.search&&!url.hash&&(url.protocol!=="http:"||isLocalhost(url))}function isCredentialFailure(error){return error instanceof errors.JWTClaimValidationFailed||error instanceof errors.JWTExpired||error instanceof errors.JOSEAlgNotAllowed||error instanceof errors.JOSENotSupported||error instanceof errors.JWSInvalid||error instanceof errors.JWTInvalid||error instanceof errors.JWSSignatureVerificationFailed||error instanceof errors.JWKSNoMatchingKey}var JWT_DEBUG_CLAIMS=["iss","aud","azp","sub","exp","iat","nbf","client_id","scope","typ","jti"];function debugErrorText(error){return error instanceof Error?error.message:String(error)}function logJwtFailure(token,error){try{let decodeSegment2=function(segment,label){try{return Buffer.from(segment,"base64url").toString("utf8")}catch(decodeError){console.error(`[oauth-debug] ${label} decode failed: ${debugErrorText(decodeError)}`);return}};var decodeSegment=decodeSegment2;let name=error instanceof Error?error.constructor.name:typeof error;console.error(`[oauth-debug] JWT verify failed: ${name}: ${debugErrorText(error)}`),error instanceof errors.JWTClaimValidationFailed&&console.error(`[oauth-debug] claim=${error.claim} reason=${error.reason}`);let segments=token.split(".");if(console.error(`[oauth-debug] token segments: ${segments.length}`),segments.length!==3){let preview=token.length>12?`${token.slice(0,12)}\u2026`:token;console.error(`[oauth-debug] non-JWT token preview=${preview} length=${token.length}`);return}let headerJson=decodeSegment2(segments[0],"header");headerJson!==void 0&&console.error(`[oauth-debug] header=${headerJson}`);let payloadJson=decodeSegment2(segments[1],"payload");if(payloadJson===void 0)return;try{let payload=JSON.parse(payloadJson),selected={};for(let claim of JWT_DEBUG_CLAIMS)claim in payload&&(selected[claim]=payload[claim]);selected.now=Math.floor(Date.now()/1e3),console.error(`[oauth-debug] payload=${JSON.stringify(selected)}`)}catch(decodeError){console.error(`[oauth-debug] payload decode failed: ${debugErrorText(decodeError)}`)}}catch{}}export{createJwtVerifier,normalizedProviderUrl,providerEndpoint,payloadFromAuthInfo,requiredString,stringValue,booleanValue,recordValue,normalizedStrings};
@@ -0,0 +1 @@
1
+ import{getOAuthProviderOptions,wrapOAuthTokenVerifier}from"./chunk-IS7FKXFR.js";import{OAuthError,OAuthErrorCode,bearerAuthChallengeResponse,getOAuthProtectedResourceMetadataUrl as getOAuthProtectedResourceMetadataUrl2,oauthMetadataResponse as oauthMetadataResponse2,requireBearerAuth as requireBearerAuth2,verifyBearerToken}from"@modelcontextprotocol/server";import{getOAuthProtectedResourceMetadataUrl,oauthMetadataResponse,requireBearerAuth}from"@modelcontextprotocol/server";import{hostHeaderValidationResponse,originValidationResponse}from"@modelcontextprotocol/server";var requestBags=new WeakMap;function getRequestBag(request){let bag=requestBags.get(request);return bag===void 0&&(bag={},requestBags.set(request,bag)),bag}function composeFetch(terminal,...middlewares){return async request=>{let index=0,dispatch=async()=>{if(index<middlewares.length){let middleware=middlewares[index];return index+=1,middleware(request,dispatch)}return terminal(request)};return dispatch()}}function pathnameOf(request){return new URL(request.url).pathname}function matchesPath(request,path){return pathnameOf(request)===path}function matchesPathPrefix(request,prefix){let pathname=pathnameOf(request);return pathname===prefix||pathname.startsWith(`${prefix}/`)}function pathUnderBase(basePath,childPath){let child=childPath.replace(/^\/+/,"");return basePath==="/"?`/${child}`:`${basePath}/${child}`}function isHtmlNavigationRequest(request){if(request.method!=="GET"&&request.method!=="HEAD")return!1;let accept=request.headers.get("accept");return accept===null?!1:accept.split(",").some(range=>{let[mediaType,...parameters]=range.split(";");return mediaType?.trim().toLowerCase()!=="text/html"?!1:!parameters.some(parameter=>{let[name,value]=parameter.trim().toLowerCase().split("=");return name==="q"&&Number(value)===0})})}function jsonBodyMiddleware(){return async(request,next)=>{let bag=getRequestBag(request);if(bag.parsedBody!==void 0||!(request.headers.get("content-type")??"").includes("application/json"))return next();try{bag.parsedBody=await request.clone().json()}catch{return new Response("Invalid JSON",{status:400})}return next()}}function hostValidationMiddleware(hosts){return async(request,next)=>hostHeaderValidationResponse(request,hosts)??next()}function originValidationMiddleware(origins,skipSafeMethods=!0){return async(request,next)=>skipSafeMethods&&(request.method==="GET"||request.method==="HEAD")?next():originValidationResponse(request,origins)??next()}function bearerAuth(provider,resource){let options=getOAuthProviderOptions(provider),gate=requireBearerAuth({verifier:wrapOAuthTokenVerifier(provider,resource),resourceMetadataUrl:getOAuthProtectedResourceMetadataUrl(resource),...options.requiredScopes!==void 0&&{requiredScopes:[...options.requiredScopes]}});return async(request,next)=>{let result=await gate(request);return result instanceof Response?result:(getRequestBag(request).authInfo=result,next())}}function oauthMetadata(provider,resource){let options=getOAuthProviderOptions(provider);return async(request,next)=>{let response=oauthMetadataResponse(request,{oauthMetadata:options.oauthMetadata,resourceServerUrl:resource,...options.scopesSupported!==void 0&&{scopesSupported:[...options.scopesSupported]},...options.resourceName!==void 0&&{resourceName:options.resourceName},...options.serviceDocumentationUrl!==void 0&&{serviceDocumentationUrl:options.serviceDocumentationUrl}});return response!==void 0?response:next()}}function authInfoFromRequest(request){return getRequestBag(request).authInfo}export{getRequestBag,composeFetch,pathnameOf,matchesPath,matchesPathPrefix,pathUnderBase,isHtmlNavigationRequest,jsonBodyMiddleware,hostValidationMiddleware,originValidationMiddleware,bearerAuth,oauthMetadata,authInfoFromRequest,OAuthError,OAuthErrorCode,bearerAuthChallengeResponse,getOAuthProtectedResourceMetadataUrl2 as getOAuthProtectedResourceMetadataUrl,oauthMetadataResponse2 as oauthMetadataResponse,requireBearerAuth2 as requireBearerAuth,verifyBearerToken};
@@ -0,0 +1 @@
1
+ import{completable as sdkCompletable}from"@modelcontextprotocol/server";function createPrefixCompletion(values){let strings=values.map(String);return value=>{let prefix=String(value??"").toLowerCase();return strings.filter(candidate=>candidate.toLowerCase().startsWith(prefix))}}function completable(schema,complete){return typeof complete=="function"?sdkCompletable(schema,(value,context)=>complete(String(value??""),context)):sdkCompletable(schema,createPrefixCompletion(complete))}function normalizeCompletions(completions){let normalized=Object.create(null);for(let[variable,completer]of Object.entries(completions))completer!==void 0&&(normalized[variable]=Array.isArray(completer)?createPrefixCompletion(completer):completer);return normalized}export{completable,normalizeCompletions};
@@ -0,0 +1 @@
1
+ function stripTrailingSlashes(value){return value.replace(/\/+$/,"")}function readEnv(name){if(typeof process>"u")return;let value=process.env[name];return value!==void 0&&value!==""?value:void 0}function parseForwardedHeader(header){for(let part of header.split(",")){let params=new Map;for(let token of part.split(";")){let[key,...rest]=token.trim().split("=");key===void 0||rest.length===0||params.set(key.toLowerCase(),rest.join("=").replace(/^"|"$/g,""))}let proto=params.get("proto"),host=params.get("host");if(proto!==void 0&&host!==void 0)return`${proto}://${host}`}}function resolveRequestOriginFromHeaders(request){let forwarded=request.headers.get("forwarded");if(forwarded!==null){let fromForwarded=parseForwardedHeader(forwarded);if(fromForwarded!==void 0)return fromForwarded}let proto=request.headers.get("x-forwarded-proto"),host=request.headers.get("x-forwarded-host");if(proto!==null&&host!==null){let firstHost=host.split(",")[0]?.trim(),firstProto=proto.split(",")[0]?.trim();if(firstHost!==void 0&&firstProto!==void 0&&firstHost!=="")return`${firstProto}://${firstHost}`}return new URL(request.url).origin}function resolveServerOrigin(request){let mcpUrl=readEnv("MCP_URL");if(mcpUrl!==void 0)try{return new URL(mcpUrl).origin}catch{}return resolveRequestOriginFromHeaders(request)}function originFromAssetsBase(assetsBase){try{return new URL(assetsBase).origin}catch{return assetsBase}}function normalizeAssetsBaseUrl(value){return stripTrailingSlashes(value)}function resolveAssetsBase(request){let assetsUrl=readEnv("MCP_ASSETS_URL");if(assetsUrl!==void 0)try{return normalizeAssetsBaseUrl(new URL(assetsUrl).href.replace(/\/$/,""))}catch{}return resolveServerOrigin(request)}function hasExplicitAssetsBase(){let assetsUrl=readEnv("MCP_ASSETS_URL");if(assetsUrl===void 0)return!1;try{return new URL(assetsUrl),!0}catch{return!1}}export{resolveServerOrigin,originFromAssetsBase,resolveAssetsBase,hasExplicitAssetsBase};
@@ -0,0 +1 @@
1
+ var bufferedResponses=new WeakSet,bufferedSources=new WeakMap;function markBufferedResponse(response){return response.body!==null&&bufferedResponses.add(response),response}function trackBufferedResponse(request,response){return markBufferedResponse(response),bufferedSources.set(request,response),response}function isBufferedResponse(response,request){if(response.body===null)return!1;if(bufferedResponses.has(response))return!0;let source=request===void 0?void 0:bufferedSources.get(request);return source!==void 0&&source.body!==null&&source.body===response.body}function inheritBufferedResponse(source,target){return isBufferedResponse(source)?markBufferedResponse(target):target}function toNodeHandler(handler,opts){return async(req,res,parsedBody)=>{typeof parsedBody=="function"&&(parsedBody=void 0);let finished=!1,abort=new AbortController;res.on("close",()=>{finished||abort.abort()}),res.destroyed===!0&&abort.abort();let request,response;try{request=await toWebRequest(req,parsedBody,{signal:abort.signal}),response=await handler.fetch(request,{...req.auth!==void 0&&{authInfo:req.auth},...parsedBody!==void 0&&{parsedBody}})}catch(error){try{opts?.onerror?.(error instanceof Error?error:new Error(String(error)))}catch{}response=internalServerErrorResponse(echoableRequestId(parsedBody))}let headers={};for(let[name,value]of response.headers)headers[name]=value;if(res.writeHead(response.status,headers),response.body===null){finished=!0,res.end();return}if(isBufferedResponse(response,request)){try{let bytes=new Uint8Array(await response.arrayBuffer());finished=!0,res.end(bytes)}catch{finished=!0,res.end()}return}let drainResolve,releaseDrainWait=()=>{drainResolve?.(),drainResolve=void 0},waitForDrain=()=>new Promise(resolve=>{drainResolve=resolve});res.on("drain",releaseDrainWait);let closed=new Promise(resolve=>{abort.signal.addEventListener("abort",()=>resolve(),{once:!0})});try{for await(let chunk of response.body){if(abort.signal.aborted)break;let bytes=chunk instanceof Uint8Array?chunk:new Uint8Array(chunk);res.write(bytes)===!1&&await Promise.race([waitForDrain(),closed])}}catch{}finished=!0,res.end()}}async function toWebRequest(req,parsedBody,options){let method=(req.method??"GET").toUpperCase(),url=`http://${singleHeaderValue(req.headers.host)??singleHeaderValue(req.headers[":authority"])??"localhost"}${req.url??"/"}`,headers=new Headers;for(let[name,value]of Object.entries(req.headers))if(!(value===void 0||name.startsWith(":")))if(Array.isArray(value))for(let item of value)headers.append(name,item);else headers.set(name,value);let body;if(method!=="GET"&&method!=="HEAD")if(parsedBody===void 0){let decoder=new TextDecoder,collected="";for await(let chunk of req)collected+=typeof chunk=="string"?chunk:decoder.decode(chunk,{stream:!0});collected+=decoder.decode(),collected.length>0&&(body=collected)}else{let serialized=JSON.stringify(parsedBody);headers.delete("content-encoding"),headers.delete("transfer-encoding"),serialized===void 0?headers.delete("content-length"):(body=serialized,headers.set("content-length",String(new TextEncoder().encode(serialized).byteLength)))}return new Request(url,{method,headers,...options?.signal!==void 0&&{signal:options.signal},...body!==void 0&&{body}})}function singleHeaderValue(value){return Array.isArray(value)?value[0]:value}function echoableRequestId(body){if(body===null||typeof body!="object"||Array.isArray(body))return null;let{method,id}=body;return typeof method!="string"?null:typeof id=="string"||typeof id=="number"?id:null}function internalServerErrorResponse(id){return Response.json({jsonrpc:"2.0",error:{code:-32603,message:"Internal server error"},id},{status:500})}export{trackBufferedResponse,inheritBufferedResponse,toNodeHandler,toWebRequest};
@@ -0,0 +1,3 @@
1
+ import{fromJsonSchema}from"@modelcontextprotocol/server";var HTTP_METHODS=["get","put","post","delete","options","head","patch","trace"];function registerOpenAPITools(server,options){let operations=collectOperations(options.spec,options),names=createToolNames(operations),baseUrl=operations.length>0?resolveBaseUrl(options):void 0;for(let[index,operation]of operations.entries()){let name=names[index];if(name===void 0||baseUrl===void 0)continue;let inputBindings=createInputBindings(operation);server.tool({name,description:createToolDescription(operation),inputSchema:createToolInputSchema(options.spec,operation,inputBindings)},async params=>callOpenAPIOperation(operation,params,options,inputBindings,baseUrl))}}function collectOperations(spec,options){let collected=[];for(let[path,pathItemOrRef]of Object.entries(spec.paths??{})){let pathItem=resolveRef(spec,pathItemOrRef);if(pathItem===void 0||isReferenceObject(pathItem))continue;let pathParameters=resolveParameters(spec,pathItem.parameters);for(let method of HTTP_METHODS){let operationOrRef=pathItem[method];if(operationOrRef===void 0)continue;let operation=resolveRef(spec,operationOrRef);if(operation===void 0||isReferenceObject(operation))continue;let operationParameters=resolveParameters(spec,operation.parameters),requestBody=operation.requestBody===void 0?void 0:resolveRef(spec,operation.requestBody),item={method,path,operation,parameters:mergeParameters(pathParameters,operationParameters),...requestBody!==void 0&&!isReferenceObject(requestBody)&&{requestBody}};isIncluded(item,options)&&collected.push(item)}}return collected}function resolveParameters(spec,parameters){let resolved=[];for(let parameter of parameters??[]){let value=resolveRef(spec,parameter);value!==void 0&&!isReferenceObject(value)&&resolved.push(value)}return resolved}function mergeParameters(pathParameters,operationParameters){let merged=new Map;for(let parameter of[...pathParameters,...operationParameters])merged.set(`${parameter.in}:${parameter.name}`,parameter);return[...merged.values()]}function isIncluded(operation,options){if(options.tags?.length){let tags=new Set(operation.operation.tags??[]);if(!options.tags.some(tag=>tags.has(tag)))return!1}return!(options.exclude??[]).some(rule=>matchesExcludeRule(operation,rule))}function matchesExcludeRule(operation,rule){if(rule.method&&rule.method.toLowerCase()!==operation.method||rule.operationId&&!matchesPattern(rule.operationId,operation.operation.operationId??"")||rule.path&&!matchesPattern(rule.path,operation.path))return!1;if(rule.tags?.length){let tags=new Set(operation.operation.tags??[]);if(!rule.tags.some(tag=>tags.has(tag)))return!1}return!0}function matchesPattern(pattern,value){return typeof pattern=="string"?pattern===value:(pattern.lastIndex=0,pattern.test(value))}function createToolNames(operations){let seen=new Map;return operations.map(operation=>{let baseName=slugifyToolName(operation.operation.operationId??`${operation.method}_${operation.path.replace(/[{}]/g,"").replace(/\//g,"_")}`),count=seen.get(baseName)??0;if(seen.set(baseName,count+1),count===0)return baseName;let suffix=`_${count+1}`;return`${baseName.slice(0,64-suffix.length)}${suffix}`})}function createToolDescription(operation){return[operation.operation.summary,operation.operation.description,`HTTP: ${operation.method.toUpperCase()} ${operation.path}`].filter(part=>!!part).join(`
2
+
3
+ `)}function slugifyToolName(value){return value.trim().replace(/[^a-zA-Z0-9_-]+/g,"_").replace(/_+/g,"_").replace(/^_/,"").replace(/_$/,"").slice(0,64)||"openapi_tool"}function createToolInputSchema(spec,operation,inputBindings){let properties={},required=[];for(let{parameter,inputName}of inputBindings.parameters){let parameterSchema=transformSchema(spec,parameter.schema??{});properties[inputName]={...parameterSchema,description:parameter.description??`${parameter.in} parameter`},(parameter.required||parameter.in==="path")&&required.push(inputName)}let bodySchema=getJsonRequestBodySchema(operation.requestBody);bodySchema!==void 0&&inputBindings.bodyInputName!==void 0&&(properties[inputBindings.bodyInputName]=transformSchema(spec,bodySchema),operation.requestBody?.required&&required.push(inputBindings.bodyInputName));let definitions=createSchemaDefinitions(spec),schema={type:"object",properties,additionalProperties:!1,...required.length>0&&{required},...definitions!==void 0&&{$defs:definitions}};return fromJsonSchema(schema)}function createInputBindings(operation){let parameters=operation.parameters.filter(parameter=>parameter.in!=="cookie"),bodyInputName=getJsonRequestBodySchema(operation.requestBody)===void 0?void 0:"body",nameCounts=new Map;for(let parameter of parameters)nameCounts.set(parameter.name,(nameCounts.get(parameter.name)??0)+1);let usedNames=new Set(bodyInputName===void 0?[]:[bodyInputName]);return{parameters:parameters.map(parameter=>{let preferredName=(nameCounts.get(parameter.name)??0)>1||parameter.name===bodyInputName?`${parameter.name}_${parameter.in}`:parameter.name;return{parameter,inputName:claimInputName(preferredName,usedNames)}}),...bodyInputName!==void 0&&{bodyInputName}}}function claimInputName(preferredName,usedNames){let inputName=preferredName,suffix=2;for(;usedNames.has(inputName);)inputName=`${preferredName}_${suffix}`,suffix+=1;return usedNames.add(inputName),inputName}function createSchemaDefinitions(spec){let schemas=readRecord(spec.components?.schemas);if(schemas===void 0)return;let definitions={};for(let[name,schema]of Object.entries(schemas))definitions[name]=transformSchemaNode(spec,schema,new Set);return definitions}function transformSchema(spec,schema){let transformed=transformSchemaNode(spec,schema,new Set);return readRecord(transformed)??{}}function transformSchemaNode(spec,value,resolvingRefs){if(Array.isArray(value))return value.map(item=>transformSchemaNode(spec,item,resolvingRefs));let object=readRecord(value);if(object===void 0)return value;let ref=typeof object.$ref=="string"?object.$ref:void 0,siblings={};for(let[key,child]of Object.entries(object))key!=="$ref"&&(key==="nullable"&&typeof child=="boolean"||(siblings[key]=transformSchemaNode(spec,child,resolvingRefs)));let transformed=siblings;if(ref!==void 0){let schemaRef=rewriteSchemaRef(spec,ref);if(schemaRef!==void 0)transformed={$ref:schemaRef,...siblings};else if(!resolvingRefs.has(ref)){let resolved=resolveRef(spec,{$ref:ref});if(resolved!==void 0){let nextRefs=new Set(resolvingRefs);nextRefs.add(ref),transformed={...readRecord(transformSchemaNode(spec,resolved,nextRefs))??{},...siblings}}}}return object.nullable===!0?{anyOf:[transformed,{type:"null"}]}:transformed}function rewriteSchemaRef(spec,ref){let prefix="#/components/schemas/";if(ref.startsWith(prefix))return resolveRef(spec,{$ref:ref})===void 0?void 0:`#/$defs/${ref.slice(prefix.length)}`}function getJsonRequestBodySchema(requestBody){let content=requestBody?.content;if(content!==void 0)return content["application/json"]?.schema??content["application/*+json"]?.schema??Object.entries(content).find(([mediaType])=>mediaType.includes("+json"))?.[1].schema}async function callOpenAPIOperation(operation,params,options,inputBindings,baseUrl){let fetchImpl=options.fetch??globalThis.fetch,url=buildUrl(operation,params,inputBindings.parameters,baseUrl),headers=buildHeaders(inputBindings.parameters,params,options),bodyInputName=inputBindings.bodyInputName,body=bodyInputName===void 0||params[bodyInputName]===void 0?void 0:JSON.stringify(params[bodyInputName]);body!==void 0&&!hasHeader(headers,"content-type")&&(headers["content-type"]="application/json");let response=await fetchImpl(url,{method:operation.method.toUpperCase(),headers,...body!==void 0&&{body}}),contentType=response.headers.get("content-type")??"";if(!response.ok)return{content:[{type:"text",text:await response.text()}],isError:!0};if(contentType.includes("application/json")||contentType.includes("+json")){let text=await response.text();try{let data=JSON.parse(text);return{content:[{type:"text",text:JSON.stringify(data)}],structuredContent:data}}catch{return{content:[{type:"text",text}]}}}return{content:[{type:"text",text:await response.text()}]}}function buildUrl(operation,params,parameterBindings,baseUrl){let interpolatedPath=operation.path.replace(/{([^}]+)}/g,(_match,name)=>{let binding=parameterBindings.find(({parameter})=>parameter.in==="path"&&parameter.name===name);return encodeURIComponent(String(binding===void 0?"":params[binding.inputName]??""))}),url=new URL(interpolatedPath.replace(/^\/+/,""),ensureTrailingSlash(baseUrl));for(let{parameter,inputName}of parameterBindings){if(parameter.in!=="query")continue;let value=params[inputName];value==null||value===""||appendQueryParam(url,parameter.name,value)}return url.toString()}function buildHeaders(parameterBindings,params,options){let headers={...options.headers??{}};for(let{parameter,inputName}of parameterBindings){if(parameter.in!=="header")continue;let value=params[inputName];value==null||value===""||(headers[parameter.name]=String(value))}return options.auth?.type==="bearer"&&options.auth.token&&(headers.authorization=`Bearer ${options.auth.token}`),options.auth?.type==="header"&&options.auth.value&&(headers[options.auth.name]=options.auth.value),headers}function resolveBaseUrl(options){let baseUrl=options.baseUrl??options.spec.servers?.[0]?.url;if(baseUrl===void 0||baseUrl.trim()==="")throw new Error("MCPServer.fromOpenAPI requires options.baseUrl or spec.servers[0].url");return baseUrl}function appendQueryParam(url,name,value){if(Array.isArray(value)){for(let item of value)item!=null&&item!==""&&url.searchParams.append(name,String(item));return}url.searchParams.set(name,String(value))}function ensureTrailingSlash(url){return url.endsWith("/")?url:`${url}/`}function hasHeader(headers,name){return Object.keys(headers).some(headerName=>headerName.toLowerCase()===name)}function isReferenceObject(value){let object=readRecord(value);return object!==void 0&&typeof object.$ref=="string"}function resolveRef(spec,value){if(!isReferenceObject(value))return value;if(!value.$ref.startsWith("#/"))return;let segments=value.$ref.slice(2).split("/").map(segment=>segment.replace(/~1/g,"/").replace(/~0/g,"~")),current=spec;for(let segment of segments){let object=readRecord(current);if(object===void 0||!(segment in object))return;current=object[segment]}return current}function readRecord(value){return typeof value=="object"&&value!==null&&!Array.isArray(value)?value:void 0}export{registerOpenAPITools};
@@ -0,0 +1 @@
1
+ var PUBLIC_CONTENT_TYPES={".css":"text/css",".gif":"image/gif",".html":"text/html",".ico":"image/x-icon",".jpeg":"image/jpeg",".jpg":"image/jpeg",".js":"application/javascript",".json":"application/json",".map":"application/json",".png":"image/png",".svg":"image/svg+xml",".txt":"text/plain",".webp":"image/webp",".woff":"font/woff",".woff2":"font/woff2"};async function resolvePublicFilePath(publicRoot,subpath){let{stat}=await import("fs/promises"),{resolve,sep}=await import("path");if(subpath===""||subpath.includes("\\")||subpath.split("/").some(segment=>segment===".."))return null;let clean=subpath.replace(/^\/+/,"");if(clean===""||clean.endsWith("/"))return null;let root=resolve(publicRoot),abs=resolve(root,clean);if(abs!==root&&!abs.startsWith(root+sep))return null;try{if(!(await stat(abs)).isFile())return null}catch{return null}return abs}async function servePublicFile(diskPath,options={}){let{readFile}=await import("fs/promises"),{extname}=await import("path"),ext=extname(diskPath).toLowerCase(),contentType=PUBLIC_CONTENT_TYPES[ext]??"application/octet-stream",body=options.head===!0?null:new Uint8Array(await readFile(diskPath));return new Response(body,{status:200,headers:{"Content-Type":contentType,"Cache-Control":"public, max-age=0, must-revalidate",...options.deferCors!==!0&&{"Access-Control-Allow-Origin":"*"}}})}export{resolvePublicFilePath,servePublicFile};
@@ -39,4 +39,3 @@ export declare function createPrefixCompletion(values: ReadonlyArray<string | nu
39
39
  * ```
40
40
  */
41
41
  export declare function completable<T extends StandardSchemaV1>(schema: T, complete: ReadonlyArray<string | number | boolean> | CompletionCallback): ReturnType<typeof sdkCompletable<T>>;
42
- //# sourceMappingURL=completable.d.ts.map