mcp-use 2.0.0-beta.9 → 2.0.1
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.
- package/README.md +379 -0
- package/dist/bin.js +1 -179
- package/dist/branding.d.ts +7 -11
- package/dist/buffered-response.d.ts +27 -0
- package/dist/{chunk-GTOOHAI2.js → chunk-GX6PGIEO.js} +33 -143
- package/dist/chunk-IS7FKXFR.js +1 -0
- package/dist/chunk-KGTOBJW2.js +1 -0
- package/dist/chunk-MIZQEWZS.js +1 -0
- package/dist/chunk-OJF6B5EU.js +1 -0
- package/dist/chunk-PSKSL567.js +1 -0
- package/dist/chunk-XYHHP43G.js +1 -0
- package/dist/chunk-Y26DNVWA.js +3 -0
- package/dist/chunk-ZMU5USAZ.js +1 -0
- package/dist/chunk-ZXGOR5YI.js +2 -0
- package/dist/completable.d.ts +0 -1
- package/dist/config.d.ts +24 -84
- package/dist/context.d.ts +154 -60
- package/dist/fetch-app.d.ts +3 -28
- package/dist/index-node.js +781 -0
- package/dist/index.d.ts +31 -14
- package/dist/index.js +41 -2548
- package/dist/internal/node-http-unavailable.js +1 -0
- package/dist/internal/node-http.js +1 -0
- package/dist/internal/resource-completion.js +1 -7
- package/dist/internal/usage.js +1 -0
- package/dist/landing-handler-TG6LVQBI.js +1 -0
- package/dist/landing-handler.d.ts +1 -2
- package/dist/landing.d.ts +19 -5
- package/dist/landing.js +1 -7
- package/dist/listen-address.d.ts +8 -0
- package/dist/logging.d.ts +0 -1
- package/dist/mcp-proxy-NETCUGUD.js +2 -0
- package/dist/mcp-proxy.d.ts +158 -0
- package/dist/middleware/cors.d.ts +0 -1
- package/dist/middleware/mcp-middleware.d.ts +178 -104
- package/dist/mount-mcp.d.ts +0 -1
- package/dist/next/config.d.ts +67 -0
- package/dist/next/handler.d.ts +32 -0
- package/dist/next/index.d.ts +9 -0
- package/dist/next/index.js +1 -0
- package/dist/node-bridge.d.ts +33 -4
- package/dist/node-bridge.js +1 -151
- package/dist/node-http-unavailable.d.ts +9 -0
- package/dist/node-http.d.ts +2 -0
- package/dist/oauth/adapters.d.ts +0 -1
- package/dist/oauth/auth0.d.ts +24 -1
- package/dist/oauth/auth0.js +1 -61
- package/dist/oauth/better-auth.d.ts +23 -1
- package/dist/oauth/better-auth.js +1 -76
- package/dist/oauth/clerk.d.ts +30 -3
- package/dist/oauth/clerk.js +1 -70
- package/dist/oauth/errors.d.ts +3 -0
- package/dist/oauth/guards.d.ts +0 -1
- package/dist/oauth/index.d.ts +0 -1
- package/dist/oauth/index.js +1 -28
- package/dist/oauth/internal.d.ts +0 -1
- package/dist/oauth/jwt.d.ts +10 -4
- package/dist/oauth/keycloak.d.ts +28 -1
- package/dist/oauth/keycloak.js +1 -94
- package/dist/oauth/provider.d.ts +17 -2
- package/dist/oauth/supabase.d.ts +38 -2
- package/dist/oauth/supabase.js +1 -101
- package/dist/oauth/workos.d.ts +27 -1
- package/dist/oauth/workos.js +1 -77
- package/dist/openapi/index.d.ts +0 -1
- package/dist/openapi/index.js +1 -7
- package/dist/openapi/types.d.ts +0 -1
- package/dist/prompts.d.ts +7 -4
- package/dist/public-route-DAQJGS6K.js +1 -0
- package/dist/react/components/error-boundary.d.ts +3 -1
- package/dist/react/components/image.d.ts +0 -1
- package/dist/react/components/model-context.d.ts +8 -57
- package/dist/react/components/theme-provider.d.ts +7 -4
- package/dist/react/components/view-controls.d.ts +0 -1
- package/dist/react/hooks/use-call-tool.d.ts +29 -12
- package/dist/react/hooks/use-display-mode.d.ts +0 -1
- package/dist/react/hooks/use-files.d.ts +0 -1
- package/dist/react/hooks/use-host-context.d.ts +5 -1
- package/dist/react/hooks/use-open-external.d.ts +0 -1
- package/dist/react/hooks/use-send-follow-up.d.ts +0 -1
- package/dist/react/hooks/use-send-size-changed.d.ts +0 -1
- package/dist/react/hooks/use-tool-context.d.ts +0 -1
- package/dist/react/hooks/use-view-state.d.ts +23 -0
- package/dist/react/hooks/use-view-theme.d.ts +0 -1
- package/dist/react/hooks/use-view-tool.d.ts +3 -4
- package/dist/react/index.d.ts +9 -9
- package/dist/react/index.js +286 -131
- package/dist/react/public-assets.d.ts +21 -6
- package/dist/react/runtime/bootstrap-view.d.ts +3 -4
- package/dist/react/runtime/model-context-store.d.ts +34 -69
- package/dist/react/runtime/view-config.d.ts +0 -1
- package/dist/react/runtime/view-runtime-context.d.ts +0 -1
- package/dist/react/runtime/view-runtime.d.ts +4 -6
- package/dist/react/types/file-types.d.ts +2 -1
- package/dist/react/types/host-types.d.ts +2 -1
- package/dist/react/types/register.d.ts +11 -4
- package/dist/react/types/result-types.d.ts +0 -1
- package/dist/resource-completion.d.ts +0 -1
- package/dist/resources.d.ts +14 -6
- package/dist/response-conversion.d.ts +25 -0
- package/dist/response-helpers.d.ts +231 -0
- package/dist/server.d.ts +118 -51
- package/dist/tools.d.ts +14 -14
- package/dist/usage.d.ts +14 -0
- package/dist/views/capabilities.d.ts +0 -1
- package/dist/views/constants.d.ts +1 -2
- package/dist/views/csp-env.d.ts +0 -1
- package/dist/views/document.d.ts +9 -11
- package/dist/views/index.d.ts +0 -1
- package/dist/views/origin.d.ts +0 -1
- package/dist/views/public-route.d.ts +2 -3
- package/dist/views/register.d.ts +1 -2
- package/dist/views/routes.d.ts +1 -2
- package/dist/views/types.d.ts +21 -17
- package/dist/views/wire.d.ts +7 -7
- package/dist/vite-client.d.ts +1 -0
- package/package.json +41 -21
- package/dist/.tsbuildinfo +0 -1
- package/dist/bin/args.d.ts +0 -61
- package/dist/bin/args.d.ts.map +0 -1
- package/dist/bin/main.d.ts +0 -32
- package/dist/bin/main.d.ts.map +0 -1
- package/dist/bin/start.d.ts +0 -40
- package/dist/bin/start.d.ts.map +0 -1
- package/dist/bin.d.ts +0 -3
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js.map +0 -1
- package/dist/branding.d.ts.map +0 -1
- package/dist/chunk-AATFAERC.js +0 -384
- package/dist/chunk-AATFAERC.js.map +0 -1
- package/dist/chunk-DPL7OEXC.js +0 -518
- package/dist/chunk-DPL7OEXC.js.map +0 -1
- package/dist/chunk-DQ7LE4ZA.js +0 -237
- package/dist/chunk-DQ7LE4ZA.js.map +0 -1
- package/dist/chunk-FC2Z2VFO.js +0 -99
- package/dist/chunk-FC2Z2VFO.js.map +0 -1
- package/dist/chunk-GTOOHAI2.js.map +0 -1
- package/dist/chunk-IG2BCCMU.js +0 -98
- package/dist/chunk-IG2BCCMU.js.map +0 -1
- package/dist/chunk-KIZ72TIK.js +0 -38
- package/dist/chunk-KIZ72TIK.js.map +0 -1
- package/dist/chunk-QUUANIE4.js +0 -125
- package/dist/chunk-QUUANIE4.js.map +0 -1
- package/dist/chunk-RQRT27Q3.js +0 -454
- package/dist/chunk-RQRT27Q3.js.map +0 -1
- package/dist/chunk-SMN75YED.js +0 -66
- package/dist/chunk-SMN75YED.js.map +0 -1
- package/dist/chunk-STCR3P5O.js +0 -95
- package/dist/chunk-STCR3P5O.js.map +0 -1
- package/dist/chunk-XUD22N3Y.js +0 -156
- package/dist/chunk-XUD22N3Y.js.map +0 -1
- package/dist/chunk-Z326HADF.js +0 -82
- package/dist/chunk-Z326HADF.js.map +0 -1
- package/dist/chunk-ZMIKQPSO.js +0 -151
- package/dist/chunk-ZMIKQPSO.js.map +0 -1
- package/dist/cli/build.d.ts +0 -61
- package/dist/cli/build.d.ts.map +0 -1
- package/dist/cli/dev-api.d.ts +0 -49
- package/dist/cli/dev-api.d.ts.map +0 -1
- package/dist/cli/dev.d.ts +0 -101
- package/dist/cli/dev.d.ts.map +0 -1
- package/dist/cli/entry.d.ts +0 -31
- package/dist/cli/entry.d.ts.map +0 -1
- package/dist/cli/index.d.ts +0 -17
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/port.d.ts +0 -30
- package/dist/cli/port.d.ts.map +0 -1
- package/dist/cli/tools-declaration.d.ts +0 -22
- package/dist/cli/tools-declaration.d.ts.map +0 -1
- package/dist/cli/tunnel.d.ts +0 -46
- package/dist/cli/tunnel.d.ts.map +0 -1
- package/dist/cli/views-bindings.d.ts +0 -30
- package/dist/cli/views-bindings.d.ts.map +0 -1
- package/dist/cli/views-plugin.d.ts +0 -47
- package/dist/cli/views-plugin.d.ts.map +0 -1
- package/dist/cli/views.d.ts +0 -75
- package/dist/cli/views.d.ts.map +0 -1
- package/dist/cli/vite-config.d.ts +0 -21
- package/dist/cli/vite-config.d.ts.map +0 -1
- package/dist/cli/workspace.d.ts +0 -107
- package/dist/cli/workspace.d.ts.map +0 -1
- package/dist/commands/build.d.ts +0 -8
- package/dist/commands/build.d.ts.map +0 -1
- package/dist/commands/build.js +0 -374
- package/dist/commands/build.js.map +0 -1
- package/dist/commands/client.d.ts +0 -22
- package/dist/commands/client.d.ts.map +0 -1
- package/dist/commands/client.js +0 -14
- package/dist/commands/client.js.map +0 -1
- package/dist/commands/cloud-api.d.ts +0 -70
- package/dist/commands/cloud-api.d.ts.map +0 -1
- package/dist/commands/deploy.d.ts +0 -3
- package/dist/commands/deploy.d.ts.map +0 -1
- package/dist/commands/deploy.js +0 -242
- package/dist/commands/deploy.js.map +0 -1
- package/dist/commands/deployments.d.ts +0 -3
- package/dist/commands/deployments.d.ts.map +0 -1
- package/dist/commands/deployments.js +0 -213
- package/dist/commands/deployments.js.map +0 -1
- package/dist/commands/dev.d.ts +0 -8
- package/dist/commands/dev.d.ts.map +0 -1
- package/dist/commands/dev.js +0 -656
- package/dist/commands/dev.js.map +0 -1
- package/dist/commands/identity.d.ts +0 -3
- package/dist/commands/identity.d.ts.map +0 -1
- package/dist/commands/identity.js +0 -192
- package/dist/commands/identity.js.map +0 -1
- package/dist/commands/load-client.d.ts +0 -11
- package/dist/commands/load-client.d.ts.map +0 -1
- package/dist/commands/organizations.d.ts +0 -3
- package/dist/commands/organizations.d.ts.map +0 -1
- package/dist/commands/organizations.js +0 -97
- package/dist/commands/organizations.js.map +0 -1
- package/dist/commands/screenshot.d.ts +0 -3
- package/dist/commands/screenshot.d.ts.map +0 -1
- package/dist/commands/screenshot.js +0 -463
- package/dist/commands/screenshot.js.map +0 -1
- package/dist/commands/servers.d.ts +0 -3
- package/dist/commands/servers.d.ts.map +0 -1
- package/dist/commands/servers.js +0 -278
- package/dist/commands/servers.js.map +0 -1
- package/dist/commands/shared.d.ts +0 -44
- package/dist/commands/shared.d.ts.map +0 -1
- package/dist/commands/skills.d.ts +0 -3
- package/dist/commands/skills.d.ts.map +0 -1
- package/dist/commands/skills.js +0 -84
- package/dist/commands/skills.js.map +0 -1
- package/dist/commands/start.d.ts +0 -8
- package/dist/commands/start.d.ts.map +0 -1
- package/dist/commands/start.js +0 -72
- package/dist/commands/start.js.map +0 -1
- package/dist/completable.d.ts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/context.d.ts.map +0 -1
- package/dist/fetch-app.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/inspector-shell.d.ts +0 -90
- package/dist/inspector-shell.d.ts.map +0 -1
- package/dist/internal/resource-completion.js.map +0 -1
- package/dist/landing-handler-3VN4BMR2.js +0 -34
- package/dist/landing-handler-3VN4BMR2.js.map +0 -1
- package/dist/landing-handler.d.ts.map +0 -1
- package/dist/landing.d.ts.map +0 -1
- package/dist/landing.js.map +0 -1
- package/dist/logging.d.ts.map +0 -1
- package/dist/middleware/cors.d.ts.map +0 -1
- package/dist/middleware/mcp-middleware.d.ts.map +0 -1
- package/dist/mount-mcp.d.ts.map +0 -1
- package/dist/node-bridge.d.ts.map +0 -1
- package/dist/node-bridge.js.map +0 -1
- package/dist/oauth/adapters.d.ts.map +0 -1
- package/dist/oauth/auth0.d.ts.map +0 -1
- package/dist/oauth/auth0.js.map +0 -1
- package/dist/oauth/better-auth.d.ts.map +0 -1
- package/dist/oauth/better-auth.js.map +0 -1
- package/dist/oauth/clerk.d.ts.map +0 -1
- package/dist/oauth/clerk.js.map +0 -1
- package/dist/oauth/guards.d.ts.map +0 -1
- package/dist/oauth/index.d.ts.map +0 -1
- package/dist/oauth/index.js.map +0 -1
- package/dist/oauth/internal.d.ts.map +0 -1
- package/dist/oauth/jwt.d.ts.map +0 -1
- package/dist/oauth/keycloak.d.ts.map +0 -1
- package/dist/oauth/keycloak.js.map +0 -1
- package/dist/oauth/provider.d.ts.map +0 -1
- package/dist/oauth/supabase.d.ts.map +0 -1
- package/dist/oauth/supabase.js.map +0 -1
- package/dist/oauth/workos.d.ts.map +0 -1
- package/dist/oauth/workos.js.map +0 -1
- package/dist/openapi/index.d.ts.map +0 -1
- package/dist/openapi/index.js.map +0 -1
- package/dist/openapi/types.d.ts.map +0 -1
- package/dist/prompts.d.ts.map +0 -1
- package/dist/public-route-5JEGFEIN.js +0 -9
- package/dist/public-route-5JEGFEIN.js.map +0 -1
- package/dist/react/components/error-boundary.d.ts.map +0 -1
- package/dist/react/components/image.d.ts.map +0 -1
- package/dist/react/components/model-context.d.ts.map +0 -1
- package/dist/react/components/theme-provider.d.ts.map +0 -1
- package/dist/react/components/view-controls.d.ts.map +0 -1
- package/dist/react/hooks/use-call-tool.d.ts.map +0 -1
- package/dist/react/hooks/use-display-mode.d.ts.map +0 -1
- package/dist/react/hooks/use-files.d.ts.map +0 -1
- package/dist/react/hooks/use-host-context.d.ts.map +0 -1
- package/dist/react/hooks/use-open-external.d.ts.map +0 -1
- package/dist/react/hooks/use-send-follow-up.d.ts.map +0 -1
- package/dist/react/hooks/use-send-size-changed.d.ts.map +0 -1
- package/dist/react/hooks/use-tool-context.d.ts.map +0 -1
- package/dist/react/hooks/use-view-theme.d.ts.map +0 -1
- package/dist/react/hooks/use-view-tool.d.ts.map +0 -1
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/index.js.map +0 -1
- package/dist/react/public-assets.d.ts.map +0 -1
- package/dist/react/runtime/bootstrap-view.d.ts.map +0 -1
- package/dist/react/runtime/model-context-store.d.ts.map +0 -1
- package/dist/react/runtime/view-config.d.ts.map +0 -1
- package/dist/react/runtime/view-runtime-context.d.ts.map +0 -1
- package/dist/react/runtime/view-runtime.d.ts.map +0 -1
- package/dist/react/types/file-types.d.ts.map +0 -1
- package/dist/react/types/host-types.d.ts.map +0 -1
- package/dist/react/types/register.d.ts.map +0 -1
- package/dist/react/types/result-types.d.ts.map +0 -1
- package/dist/resource-completion.d.ts.map +0 -1
- package/dist/resources.d.ts.map +0 -1
- package/dist/server.d.ts.map +0 -1
- package/dist/tools.d.ts.map +0 -1
- package/dist/views/capabilities.d.ts.map +0 -1
- package/dist/views/constants.d.ts.map +0 -1
- package/dist/views/csp-env.d.ts.map +0 -1
- package/dist/views/document.d.ts.map +0 -1
- package/dist/views/index.d.ts.map +0 -1
- package/dist/views/origin.d.ts.map +0 -1
- package/dist/views/public-route.d.ts.map +0 -1
- package/dist/views/register.d.ts.map +0 -1
- package/dist/views/routes.d.ts.map +0 -1
- package/dist/views/types.d.ts.map +0 -1
- package/dist/views/wire.d.ts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/LICENSE +0 -216
- package/node_modules/@modelcontextprotocol/client/README.md +0 -26
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-Asx17_Co.mjs +0 -7069
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-Asx17_Co.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B7GnTXYx.d.mts +0 -1054
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B7GnTXYx.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B_4czhCS.d.cts +0 -1054
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B_4czhCS.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-DNzBrkxq.cjs +0 -7086
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-DNzBrkxq.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-D9GAttn8.d.cts +0 -59
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-D9GAttn8.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-DbU8BxXO.mjs +0 -970
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-DbU8BxXO.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Djgwc46-.cjs +0 -976
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Djgwc46-.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Xtj52JOa.d.mts +0 -59
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Xtj52JOa.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/chunk-Bnu9O96Y.cjs +0 -60
- package/node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs +0 -42
- package/node_modules/@modelcontextprotocol/client/dist/index-ZagFkUbt.d.mts +0 -2675
- package/node_modules/@modelcontextprotocol/client/dist/index-ZagFkUbt.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index-gN3EXmil.d.cts +0 -2678
- package/node_modules/@modelcontextprotocol/client/dist/index-gN3EXmil.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs +0 -5427
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts +0 -3196
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts +0 -3196
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs +0 -5224
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs +0 -14
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs +0 -14
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +0 -21
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +0 -20
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/src-BzzZSQyL.cjs +0 -7331
- package/node_modules/@modelcontextprotocol/client/dist/src-BzzZSQyL.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/src-DGeA9On3.mjs +0 -6963
- package/node_modules/@modelcontextprotocol/client/dist/src-DGeA9On3.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +0 -181
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts +0 -87
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts +0 -87
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +0 -176
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/types-BDNQEPSs.d.mts +0 -1099
- package/node_modules/@modelcontextprotocol/client/dist/types-BDNQEPSs.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts +0 -1099
- package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.cjs +0 -5
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.cts +0 -2
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.mts +0 -2
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.mjs +0 -3
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.cjs +0 -3
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.cts +0 -2
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.mts +0 -2
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.mjs +0 -3
- package/node_modules/@modelcontextprotocol/client/package.json +0 -166
- package/node_modules/@modelcontextprotocol/core/LICENSE +0 -216
- package/node_modules/@modelcontextprotocol/core/README.md +0 -40
- package/node_modules/@modelcontextprotocol/core/dist/auth-BUWfrB3C.d.cts +0 -8198
- package/node_modules/@modelcontextprotocol/core/dist/auth-BUWfrB3C.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-CEFpHq32.cjs +0 -2862
- package/node_modules/@modelcontextprotocol/core/dist/auth-CEFpHq32.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-CNbu4K4a.d.mts +0 -8198
- package/node_modules/@modelcontextprotocol/core/dist/auth-CNbu4K4a.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-DFgbUATV.mjs +0 -1653
- package/node_modules/@modelcontextprotocol/core/dist/auth-DFgbUATV.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/index.cjs +0 -174
- package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +0 -2
- package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +0 -2
- package/node_modules/@modelcontextprotocol/core/dist/index.mjs +0 -3
- package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +0 -199
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +0 -87
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +0 -87
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +0 -3
- package/node_modules/@modelcontextprotocol/core/package.json +0 -85
- package/node_modules/jose/LICENSE.md +0 -21
- package/node_modules/jose/README.md +0 -153
- package/node_modules/jose/dist/types/index.d.ts +0 -55
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +0 -31
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +0 -65
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +0 -31
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +0 -83
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +0 -31
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +0 -74
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +0 -17
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +0 -32
- package/node_modules/jose/dist/types/jwks/local.d.ts +0 -29
- package/node_modules/jose/dist/types/jwks/remote.d.ts +0 -237
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +0 -36
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +0 -33
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +0 -42
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +0 -33
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +0 -53
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +0 -33
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +0 -35
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +0 -91
- package/node_modules/jose/dist/types/jwt/sign.d.ts +0 -43
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +0 -43
- package/node_modules/jose/dist/types/jwt/verify.d.ts +0 -37
- package/node_modules/jose/dist/types/key/export.d.ts +0 -33
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +0 -47
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +0 -35
- package/node_modules/jose/dist/types/key/import.d.ts +0 -83
- package/node_modules/jose/dist/types/types.d.ts +0 -841
- package/node_modules/jose/dist/types/util/base64url.d.ts +0 -9
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +0 -18
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +0 -17
- package/node_modules/jose/dist/types/util/errors.d.ts +0 -213
- package/node_modules/jose/dist/webapi/index.js +0 -32
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +0 -27
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +0 -27
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +0 -165
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +0 -169
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +0 -31
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +0 -187
- package/node_modules/jose/dist/webapi/jwk/embedded.js +0 -17
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +0 -68
- package/node_modules/jose/dist/webapi/jwks/local.js +0 -119
- package/node_modules/jose/dist/webapi/jwks/remote.js +0 -179
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +0 -18
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +0 -21
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +0 -92
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +0 -120
- package/node_modules/jose/dist/webapi/jws/general/sign.js +0 -73
- package/node_modules/jose/dist/webapi/jws/general/verify.js +0 -24
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +0 -23
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +0 -108
- package/node_modules/jose/dist/webapi/jwt/sign.js +0 -52
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +0 -63
- package/node_modules/jose/dist/webapi/jwt/verify.js +0 -15
- package/node_modules/jose/dist/webapi/key/export.js +0 -11
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +0 -97
- package/node_modules/jose/dist/webapi/key/generate_secret.js +0 -40
- package/node_modules/jose/dist/webapi/key/import.js +0 -57
- package/node_modules/jose/dist/webapi/lib/aesgcmkw.js +0 -16
- package/node_modules/jose/dist/webapi/lib/aeskw.js +0 -25
- package/node_modules/jose/dist/webapi/lib/asn1.js +0 -243
- package/node_modules/jose/dist/webapi/lib/base64.js +0 -22
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +0 -43
- package/node_modules/jose/dist/webapi/lib/cek.js +0 -19
- package/node_modules/jose/dist/webapi/lib/check_cek_length.js +0 -7
- package/node_modules/jose/dist/webapi/lib/check_iv_length.js +0 -7
- package/node_modules/jose/dist/webapi/lib/check_key_length.js +0 -8
- package/node_modules/jose/dist/webapi/lib/check_key_type.js +0 -122
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -143
- package/node_modules/jose/dist/webapi/lib/decrypt.js +0 -106
- package/node_modules/jose/dist/webapi/lib/decrypt_key_management.js +0 -127
- package/node_modules/jose/dist/webapi/lib/digest.js +0 -4
- package/node_modules/jose/dist/webapi/lib/ecdhes.js +0 -52
- package/node_modules/jose/dist/webapi/lib/encrypt.js +0 -74
- package/node_modules/jose/dist/webapi/lib/encrypt_key_management.js +0 -92
- package/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js +0 -12
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -27
- package/node_modules/jose/dist/webapi/lib/is_disjoint.js +0 -21
- package/node_modules/jose/dist/webapi/lib/is_jwk.js +0 -6
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -17
- package/node_modules/jose/dist/webapi/lib/is_object.js +0 -14
- package/node_modules/jose/dist/webapi/lib/iv.js +0 -19
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -109
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +0 -238
- package/node_modules/jose/dist/webapi/lib/key_to_jwk.js +0 -31
- package/node_modules/jose/dist/webapi/lib/normalize_key.js +0 -176
- package/node_modules/jose/dist/webapi/lib/pbes2kw.js +0 -39
- package/node_modules/jose/dist/webapi/lib/private_symbols.js +0 -1
- package/node_modules/jose/dist/webapi/lib/rsaes.js +0 -24
- package/node_modules/jose/dist/webapi/lib/sign.js +0 -9
- package/node_modules/jose/dist/webapi/lib/subtle_dsa.js +0 -31
- package/node_modules/jose/dist/webapi/lib/validate_algorithms.js +0 -10
- package/node_modules/jose/dist/webapi/lib/validate_crit.js +0 -33
- package/node_modules/jose/dist/webapi/lib/verify.js +0 -14
- package/node_modules/jose/dist/webapi/util/base64url.js +0 -30
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +0 -32
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +0 -34
- package/node_modules/jose/dist/webapi/util/errors.js +0 -99
- package/node_modules/jose/package.json +0 -200
- package/node_modules/zod/LICENSE +0 -21
- package/node_modules/zod/README.md +0 -191
- package/node_modules/zod/index.cjs +0 -33
- package/node_modules/zod/index.d.cts +0 -4
- package/node_modules/zod/index.d.ts +0 -4
- package/node_modules/zod/index.js +0 -4
- package/node_modules/zod/locales/index.cjs +0 -17
- package/node_modules/zod/locales/index.d.cts +0 -1
- package/node_modules/zod/locales/index.d.ts +0 -1
- package/node_modules/zod/locales/index.js +0 -1
- package/node_modules/zod/locales/package.json +0 -7
- package/node_modules/zod/mini/index.cjs +0 -32
- package/node_modules/zod/mini/index.d.cts +0 -3
- package/node_modules/zod/mini/index.d.ts +0 -3
- package/node_modules/zod/mini/index.js +0 -3
- package/node_modules/zod/mini/package.json +0 -7
- package/node_modules/zod/package.json +0 -135
- package/node_modules/zod/src/index.ts +0 -4
- package/node_modules/zod/src/locales/index.ts +0 -1
- package/node_modules/zod/src/mini/index.ts +0 -3
- package/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
- package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
- package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/zod/src/v3/types.ts +0 -5138
- package/node_modules/zod/src/v4/classic/checks.ts +0 -32
- package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/zod/src/v4/classic/compat.ts +0 -70
- package/node_modules/zod/src/v4/classic/errors.ts +0 -82
- package/node_modules/zod/src/v4/classic/external.ts +0 -52
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -659
- package/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/node_modules/zod/src/v4/classic/parse.ts +0 -82
- package/node_modules/zod/src/v4/classic/schemas.ts +0 -2672
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -216
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -326
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -703
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -409
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -197
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -694
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -807
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -895
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -39
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -46
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -325
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -717
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -333
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -450
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -717
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -631
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -633
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1224
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -3125
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -496
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -273
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/zod/src/v4/core/api.ts +0 -1823
- package/node_modules/zod/src/v4/core/checks.ts +0 -1293
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/core.ts +0 -153
- package/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/node_modules/zod/src/v4/core/errors.ts +0 -455
- package/node_modules/zod/src/v4/core/index.ts +0 -16
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -666
- package/node_modules/zod/src/v4/core/json-schema.ts +0 -147
- package/node_modules/zod/src/v4/core/parse.ts +0 -195
- package/node_modules/zod/src/v4/core/regexes.ts +0 -190
- package/node_modules/zod/src/v4/core/registries.ts +0 -105
- package/node_modules/zod/src/v4/core/schemas.ts +0 -4730
- package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
- package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -215
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
- package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -622
- package/node_modules/zod/src/v4/core/util.ts +0 -983
- package/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/zod/src/v4/locales/ar.ts +0 -115
- package/node_modules/zod/src/v4/locales/az.ts +0 -111
- package/node_modules/zod/src/v4/locales/be.ts +0 -176
- package/node_modules/zod/src/v4/locales/bg.ts +0 -128
- package/node_modules/zod/src/v4/locales/ca.ts +0 -116
- package/node_modules/zod/src/v4/locales/cs.ts +0 -118
- package/node_modules/zod/src/v4/locales/da.ts +0 -123
- package/node_modules/zod/src/v4/locales/de.ts +0 -116
- package/node_modules/zod/src/v4/locales/el.ts +0 -121
- package/node_modules/zod/src/v4/locales/en.ts +0 -123
- package/node_modules/zod/src/v4/locales/eo.ts +0 -118
- package/node_modules/zod/src/v4/locales/es.ts +0 -141
- package/node_modules/zod/src/v4/locales/fa.ts +0 -126
- package/node_modules/zod/src/v4/locales/fi.ts +0 -121
- package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
- package/node_modules/zod/src/v4/locales/fr.ts +0 -132
- package/node_modules/zod/src/v4/locales/he.ts +0 -246
- package/node_modules/zod/src/v4/locales/hr.ts +0 -131
- package/node_modules/zod/src/v4/locales/hu.ts +0 -117
- package/node_modules/zod/src/v4/locales/hy.ts +0 -164
- package/node_modules/zod/src/v4/locales/id.ts +0 -115
- package/node_modules/zod/src/v4/locales/index.ts +0 -52
- package/node_modules/zod/src/v4/locales/is.ts +0 -119
- package/node_modules/zod/src/v4/locales/it.ts +0 -116
- package/node_modules/zod/src/v4/locales/ja.ts +0 -114
- package/node_modules/zod/src/v4/locales/ka.ts +0 -123
- package/node_modules/zod/src/v4/locales/kh.ts +0 -7
- package/node_modules/zod/src/v4/locales/km.ts +0 -119
- package/node_modules/zod/src/v4/locales/ko.ts +0 -121
- package/node_modules/zod/src/v4/locales/lt.ts +0 -239
- package/node_modules/zod/src/v4/locales/mk.ts +0 -118
- package/node_modules/zod/src/v4/locales/ms.ts +0 -115
- package/node_modules/zod/src/v4/locales/nl.ts +0 -121
- package/node_modules/zod/src/v4/locales/no.ts +0 -116
- package/node_modules/zod/src/v4/locales/ota.ts +0 -117
- package/node_modules/zod/src/v4/locales/pl.ts +0 -118
- package/node_modules/zod/src/v4/locales/ps.ts +0 -126
- package/node_modules/zod/src/v4/locales/pt.ts +0 -116
- package/node_modules/zod/src/v4/locales/ro.ts +0 -129
- package/node_modules/zod/src/v4/locales/ru.ts +0 -176
- package/node_modules/zod/src/v4/locales/sl.ts +0 -118
- package/node_modules/zod/src/v4/locales/sv.ts +0 -119
- package/node_modules/zod/src/v4/locales/ta.ts +0 -118
- package/node_modules/zod/src/v4/locales/th.ts +0 -119
- package/node_modules/zod/src/v4/locales/tr.ts +0 -111
- package/node_modules/zod/src/v4/locales/ua.ts +0 -7
- package/node_modules/zod/src/v4/locales/uk.ts +0 -117
- package/node_modules/zod/src/v4/locales/ur.ts +0 -119
- package/node_modules/zod/src/v4/locales/uz.ts +0 -117
- package/node_modules/zod/src/v4/locales/vi.ts +0 -117
- package/node_modules/zod/src/v4/locales/yo.ts +0 -124
- package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
- package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
- package/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
- package/node_modules/zod/src/v4/mini/external.ts +0 -41
- package/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/zod/src/v4/mini/iso.ts +0 -66
- package/node_modules/zod/src/v4/mini/parse.ts +0 -14
- package/node_modules/zod/src/v4/mini/schemas.ts +0 -1947
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -548
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -993
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -352
- package/node_modules/zod/src/v4-mini/index.ts +0 -3
- package/node_modules/zod/v3/ZodError.cjs +0 -138
- package/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/zod/v3/ZodError.js +0 -133
- package/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/zod/v3/external.js +0 -6
- package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/zod/v3/index.js +0 -4
- package/node_modules/zod/v3/locales/en.cjs +0 -112
- package/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/zod/v3/package.json +0 -7
- package/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/zod/v3/types.cjs +0 -3777
- package/node_modules/zod/v3/types.d.cts +0 -1034
- package/node_modules/zod/v3/types.d.ts +0 -1034
- package/node_modules/zod/v3/types.js +0 -3695
- package/node_modules/zod/v4/classic/checks.cjs +0 -33
- package/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/zod/v4/classic/compat.cjs +0 -61
- package/node_modules/zod/v4/classic/compat.d.cts +0 -50
- package/node_modules/zod/v4/classic/compat.d.ts +0 -50
- package/node_modules/zod/v4/classic/compat.js +0 -31
- package/node_modules/zod/v4/classic/errors.cjs +0 -74
- package/node_modules/zod/v4/classic/errors.d.cts +0 -30
- package/node_modules/zod/v4/classic/errors.d.ts +0 -30
- package/node_modules/zod/v4/classic/errors.js +0 -48
- package/node_modules/zod/v4/classic/external.cjs +0 -73
- package/node_modules/zod/v4/classic/external.d.cts +0 -16
- package/node_modules/zod/v4/classic/external.d.ts +0 -16
- package/node_modules/zod/v4/classic/external.js +0 -20
- package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -625
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.js +0 -599
- package/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/zod/v4/classic/index.d.cts +0 -4
- package/node_modules/zod/v4/classic/index.d.ts +0 -4
- package/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/node_modules/zod/v4/classic/iso.d.cts +0 -22
- package/node_modules/zod/v4/classic/iso.d.ts +0 -22
- package/node_modules/zod/v4/classic/iso.js +0 -30
- package/node_modules/zod/v4/classic/package.json +0 -7
- package/node_modules/zod/v4/classic/parse.cjs +0 -41
- package/node_modules/zod/v4/classic/parse.d.cts +0 -31
- package/node_modules/zod/v4/classic/parse.d.ts +0 -31
- package/node_modules/zod/v4/classic/parse.js +0 -15
- package/node_modules/zod/v4/classic/schemas.cjs +0 -1511
- package/node_modules/zod/v4/classic/schemas.d.cts +0 -767
- package/node_modules/zod/v4/classic/schemas.d.ts +0 -767
- package/node_modules/zod/v4/classic/schemas.js +0 -1395
- package/node_modules/zod/v4/core/api.cjs +0 -1227
- package/node_modules/zod/v4/core/api.d.cts +0 -325
- package/node_modules/zod/v4/core/api.d.ts +0 -325
- package/node_modules/zod/v4/core/api.js +0 -1087
- package/node_modules/zod/v4/core/checks.cjs +0 -601
- package/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/zod/v4/core/checks.js +0 -575
- package/node_modules/zod/v4/core/core.cjs +0 -85
- package/node_modules/zod/v4/core/core.d.cts +0 -70
- package/node_modules/zod/v4/core/core.d.ts +0 -70
- package/node_modules/zod/v4/core/core.js +0 -78
- package/node_modules/zod/v4/core/doc.cjs +0 -39
- package/node_modules/zod/v4/core/doc.d.cts +0 -14
- package/node_modules/zod/v4/core/doc.d.ts +0 -14
- package/node_modules/zod/v4/core/doc.js +0 -35
- package/node_modules/zod/v4/core/errors.cjs +0 -216
- package/node_modules/zod/v4/core/errors.d.cts +0 -221
- package/node_modules/zod/v4/core/errors.d.ts +0 -221
- package/node_modules/zod/v4/core/errors.js +0 -185
- package/node_modules/zod/v4/core/index.cjs +0 -47
- package/node_modules/zod/v4/core/index.d.cts +0 -16
- package/node_modules/zod/v4/core/index.d.ts +0 -16
- package/node_modules/zod/v4/core/index.js +0 -16
- package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.js +0 -95
- package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -644
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.js +0 -601
- package/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/zod/v4/core/json-schema.d.cts +0 -88
- package/node_modules/zod/v4/core/json-schema.d.ts +0 -88
- package/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/zod/v4/core/package.json +0 -7
- package/node_modules/zod/v4/core/parse.cjs +0 -131
- package/node_modules/zod/v4/core/parse.d.cts +0 -49
- package/node_modules/zod/v4/core/parse.d.ts +0 -49
- package/node_modules/zod/v4/core/parse.js +0 -93
- package/node_modules/zod/v4/core/regexes.cjs +0 -172
- package/node_modules/zod/v4/core/regexes.d.cts +0 -85
- package/node_modules/zod/v4/core/regexes.d.ts +0 -85
- package/node_modules/zod/v4/core/regexes.js +0 -139
- package/node_modules/zod/v4/core/registries.cjs +0 -56
- package/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/zod/v4/core/schemas.cjs +0 -2270
- package/node_modules/zod/v4/core/schemas.d.cts +0 -1184
- package/node_modules/zod/v4/core/schemas.d.ts +0 -1184
- package/node_modules/zod/v4/core/schemas.js +0 -2239
- package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
- package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
- package/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -457
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
- package/node_modules/zod/v4/core/to-json-schema.js +0 -448
- package/node_modules/zod/v4/core/util.cjs +0 -734
- package/node_modules/zod/v4/core/util.d.cts +0 -200
- package/node_modules/zod/v4/core/util.d.ts +0 -200
- package/node_modules/zod/v4/core/util.js +0 -674
- package/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/zod/v4/index.cjs +0 -22
- package/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/zod/v4/index.js +0 -3
- package/node_modules/zod/v4/locales/ar.cjs +0 -133
- package/node_modules/zod/v4/locales/ar.d.cts +0 -5
- package/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/zod/v4/locales/ar.js +0 -106
- package/node_modules/zod/v4/locales/az.cjs +0 -132
- package/node_modules/zod/v4/locales/az.d.cts +0 -5
- package/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/zod/v4/locales/az.js +0 -105
- package/node_modules/zod/v4/locales/be.cjs +0 -183
- package/node_modules/zod/v4/locales/be.d.cts +0 -5
- package/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/zod/v4/locales/be.js +0 -156
- package/node_modules/zod/v4/locales/bg.cjs +0 -147
- package/node_modules/zod/v4/locales/bg.d.cts +0 -5
- package/node_modules/zod/v4/locales/bg.d.ts +0 -4
- package/node_modules/zod/v4/locales/bg.js +0 -120
- package/node_modules/zod/v4/locales/ca.cjs +0 -134
- package/node_modules/zod/v4/locales/ca.d.cts +0 -5
- package/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/zod/v4/locales/ca.js +0 -107
- package/node_modules/zod/v4/locales/cs.cjs +0 -138
- package/node_modules/zod/v4/locales/cs.d.cts +0 -5
- package/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/zod/v4/locales/cs.js +0 -111
- package/node_modules/zod/v4/locales/da.cjs +0 -142
- package/node_modules/zod/v4/locales/da.d.cts +0 -5
- package/node_modules/zod/v4/locales/da.d.ts +0 -4
- package/node_modules/zod/v4/locales/da.js +0 -115
- package/node_modules/zod/v4/locales/de.cjs +0 -135
- package/node_modules/zod/v4/locales/de.d.cts +0 -5
- package/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/zod/v4/locales/de.js +0 -108
- package/node_modules/zod/v4/locales/el.cjs +0 -136
- package/node_modules/zod/v4/locales/el.d.cts +0 -5
- package/node_modules/zod/v4/locales/el.d.ts +0 -4
- package/node_modules/zod/v4/locales/el.js +0 -109
- package/node_modules/zod/v4/locales/en.cjs +0 -140
- package/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/zod/v4/locales/en.d.ts +0 -4
- package/node_modules/zod/v4/locales/en.js +0 -113
- package/node_modules/zod/v4/locales/eo.cjs +0 -136
- package/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/zod/v4/locales/eo.d.ts +0 -4
- package/node_modules/zod/v4/locales/eo.js +0 -109
- package/node_modules/zod/v4/locales/es.cjs +0 -159
- package/node_modules/zod/v4/locales/es.d.cts +0 -5
- package/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/zod/v4/locales/es.js +0 -132
- package/node_modules/zod/v4/locales/fa.cjs +0 -141
- package/node_modules/zod/v4/locales/fa.d.cts +0 -5
- package/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/zod/v4/locales/fa.js +0 -114
- package/node_modules/zod/v4/locales/fi.cjs +0 -139
- package/node_modules/zod/v4/locales/fi.d.cts +0 -5
- package/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/zod/v4/locales/fi.js +0 -112
- package/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
- package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.js +0 -107
- package/node_modules/zod/v4/locales/fr.cjs +0 -152
- package/node_modules/zod/v4/locales/fr.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr.js +0 -125
- package/node_modules/zod/v4/locales/he.cjs +0 -241
- package/node_modules/zod/v4/locales/he.d.cts +0 -5
- package/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/zod/v4/locales/he.js +0 -214
- package/node_modules/zod/v4/locales/hr.cjs +0 -149
- package/node_modules/zod/v4/locales/hr.d.cts +0 -5
- package/node_modules/zod/v4/locales/hr.d.ts +0 -4
- package/node_modules/zod/v4/locales/hr.js +0 -122
- package/node_modules/zod/v4/locales/hu.cjs +0 -135
- package/node_modules/zod/v4/locales/hu.d.cts +0 -5
- package/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/zod/v4/locales/hu.js +0 -108
- package/node_modules/zod/v4/locales/hy.cjs +0 -174
- package/node_modules/zod/v4/locales/hy.d.cts +0 -5
- package/node_modules/zod/v4/locales/hy.d.ts +0 -4
- package/node_modules/zod/v4/locales/hy.js +0 -147
- package/node_modules/zod/v4/locales/id.cjs +0 -133
- package/node_modules/zod/v4/locales/id.d.cts +0 -5
- package/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/zod/v4/locales/id.js +0 -106
- package/node_modules/zod/v4/locales/index.cjs +0 -111
- package/node_modules/zod/v4/locales/index.d.cts +0 -52
- package/node_modules/zod/v4/locales/index.d.ts +0 -52
- package/node_modules/zod/v4/locales/index.js +0 -52
- package/node_modules/zod/v4/locales/is.cjs +0 -136
- package/node_modules/zod/v4/locales/is.d.cts +0 -5
- package/node_modules/zod/v4/locales/is.d.ts +0 -4
- package/node_modules/zod/v4/locales/is.js +0 -109
- package/node_modules/zod/v4/locales/it.cjs +0 -135
- package/node_modules/zod/v4/locales/it.d.cts +0 -5
- package/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/zod/v4/locales/it.js +0 -108
- package/node_modules/zod/v4/locales/ja.cjs +0 -134
- package/node_modules/zod/v4/locales/ja.d.cts +0 -5
- package/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/zod/v4/locales/ja.js +0 -107
- package/node_modules/zod/v4/locales/ka.cjs +0 -139
- package/node_modules/zod/v4/locales/ka.d.cts +0 -5
- package/node_modules/zod/v4/locales/ka.d.ts +0 -4
- package/node_modules/zod/v4/locales/ka.js +0 -112
- package/node_modules/zod/v4/locales/kh.cjs +0 -12
- package/node_modules/zod/v4/locales/kh.d.cts +0 -5
- package/node_modules/zod/v4/locales/kh.d.ts +0 -5
- package/node_modules/zod/v4/locales/kh.js +0 -5
- package/node_modules/zod/v4/locales/km.cjs +0 -137
- package/node_modules/zod/v4/locales/km.d.cts +0 -5
- package/node_modules/zod/v4/locales/km.d.ts +0 -4
- package/node_modules/zod/v4/locales/km.js +0 -110
- package/node_modules/zod/v4/locales/ko.cjs +0 -138
- package/node_modules/zod/v4/locales/ko.d.cts +0 -5
- package/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/zod/v4/locales/ko.js +0 -111
- package/node_modules/zod/v4/locales/lt.cjs +0 -230
- package/node_modules/zod/v4/locales/lt.d.cts +0 -5
- package/node_modules/zod/v4/locales/lt.d.ts +0 -4
- package/node_modules/zod/v4/locales/lt.js +0 -203
- package/node_modules/zod/v4/locales/mk.cjs +0 -136
- package/node_modules/zod/v4/locales/mk.d.cts +0 -5
- package/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/zod/v4/locales/mk.js +0 -109
- package/node_modules/zod/v4/locales/ms.cjs +0 -134
- package/node_modules/zod/v4/locales/ms.d.cts +0 -5
- package/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/zod/v4/locales/ms.js +0 -107
- package/node_modules/zod/v4/locales/nl.cjs +0 -137
- package/node_modules/zod/v4/locales/nl.d.cts +0 -5
- package/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/zod/v4/locales/nl.js +0 -110
- package/node_modules/zod/v4/locales/no.cjs +0 -135
- package/node_modules/zod/v4/locales/no.d.cts +0 -5
- package/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/zod/v4/locales/no.js +0 -108
- package/node_modules/zod/v4/locales/ota.cjs +0 -136
- package/node_modules/zod/v4/locales/ota.d.cts +0 -5
- package/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/zod/v4/locales/ota.js +0 -109
- package/node_modules/zod/v4/locales/package.json +0 -7
- package/node_modules/zod/v4/locales/pl.cjs +0 -136
- package/node_modules/zod/v4/locales/pl.d.cts +0 -5
- package/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/zod/v4/locales/pl.js +0 -109
- package/node_modules/zod/v4/locales/ps.cjs +0 -141
- package/node_modules/zod/v4/locales/ps.d.cts +0 -5
- package/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/zod/v4/locales/ps.js +0 -114
- package/node_modules/zod/v4/locales/pt.cjs +0 -135
- package/node_modules/zod/v4/locales/pt.d.cts +0 -5
- package/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt.js +0 -108
- package/node_modules/zod/v4/locales/ro.cjs +0 -146
- package/node_modules/zod/v4/locales/ro.d.cts +0 -5
- package/node_modules/zod/v4/locales/ro.d.ts +0 -4
- package/node_modules/zod/v4/locales/ro.js +0 -119
- package/node_modules/zod/v4/locales/ru.cjs +0 -183
- package/node_modules/zod/v4/locales/ru.d.cts +0 -5
- package/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/zod/v4/locales/ru.js +0 -156
- package/node_modules/zod/v4/locales/sl.cjs +0 -136
- package/node_modules/zod/v4/locales/sl.d.cts +0 -5
- package/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/zod/v4/locales/sl.js +0 -109
- package/node_modules/zod/v4/locales/sv.cjs +0 -137
- package/node_modules/zod/v4/locales/sv.d.cts +0 -5
- package/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/zod/v4/locales/sv.js +0 -110
- package/node_modules/zod/v4/locales/ta.cjs +0 -137
- package/node_modules/zod/v4/locales/ta.d.cts +0 -5
- package/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/zod/v4/locales/ta.js +0 -110
- package/node_modules/zod/v4/locales/th.cjs +0 -137
- package/node_modules/zod/v4/locales/th.d.cts +0 -5
- package/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/zod/v4/locales/th.js +0 -110
- package/node_modules/zod/v4/locales/tr.cjs +0 -132
- package/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/zod/v4/locales/tr.d.ts +0 -4
- package/node_modules/zod/v4/locales/tr.js +0 -105
- package/node_modules/zod/v4/locales/ua.cjs +0 -12
- package/node_modules/zod/v4/locales/ua.d.cts +0 -5
- package/node_modules/zod/v4/locales/ua.d.ts +0 -5
- package/node_modules/zod/v4/locales/ua.js +0 -5
- package/node_modules/zod/v4/locales/uk.cjs +0 -135
- package/node_modules/zod/v4/locales/uk.d.cts +0 -5
- package/node_modules/zod/v4/locales/uk.d.ts +0 -4
- package/node_modules/zod/v4/locales/uk.js +0 -108
- package/node_modules/zod/v4/locales/ur.cjs +0 -137
- package/node_modules/zod/v4/locales/ur.d.cts +0 -5
- package/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/zod/v4/locales/ur.js +0 -110
- package/node_modules/zod/v4/locales/uz.cjs +0 -137
- package/node_modules/zod/v4/locales/uz.d.cts +0 -5
- package/node_modules/zod/v4/locales/uz.d.ts +0 -4
- package/node_modules/zod/v4/locales/uz.js +0 -110
- package/node_modules/zod/v4/locales/vi.cjs +0 -135
- package/node_modules/zod/v4/locales/vi.d.cts +0 -5
- package/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/zod/v4/locales/vi.js +0 -108
- package/node_modules/zod/v4/locales/yo.cjs +0 -134
- package/node_modules/zod/v4/locales/yo.d.cts +0 -5
- package/node_modules/zod/v4/locales/yo.d.ts +0 -4
- package/node_modules/zod/v4/locales/yo.js +0 -107
- package/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
- package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.js +0 -109
- package/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
- package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.js +0 -107
- package/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/zod/v4/mini/coerce.cjs +0 -52
- package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/zod/v4/mini/coerce.js +0 -22
- package/node_modules/zod/v4/mini/external.cjs +0 -63
- package/node_modules/zod/v4/mini/external.d.cts +0 -13
- package/node_modules/zod/v4/mini/external.d.ts +0 -13
- package/node_modules/zod/v4/mini/external.js +0 -14
- package/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/zod/v4/mini/iso.cjs +0 -64
- package/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/zod/v4/mini/iso.js +0 -34
- package/node_modules/zod/v4/mini/package.json +0 -7
- package/node_modules/zod/v4/mini/parse.cjs +0 -16
- package/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/zod/v4/mini/schemas.cjs +0 -1083
- package/node_modules/zod/v4/mini/schemas.d.cts +0 -445
- package/node_modules/zod/v4/mini/schemas.d.ts +0 -445
- package/node_modules/zod/v4/mini/schemas.js +0 -961
- package/node_modules/zod/v4/package.json +0 -7
- package/node_modules/zod/v4-mini/index.cjs +0 -32
- package/node_modules/zod/v4-mini/index.d.cts +0 -3
- package/node_modules/zod/v4-mini/index.d.ts +0 -3
- package/node_modules/zod/v4-mini/index.js +0 -3
- package/node_modules/zod/v4-mini/package.json +0 -7
package/dist/chunk-DPL7OEXC.js
DELETED
|
@@ -1,518 +0,0 @@
|
|
|
1
|
-
// src/oauth/guards.ts
|
|
2
|
-
function isRecord(value) {
|
|
3
|
-
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
4
|
-
}
|
|
5
|
-
function isLocalhost(url) {
|
|
6
|
-
const hostname = url.hostname.toLowerCase();
|
|
7
|
-
return hostname === "localhost" || hostname.endsWith(".localhost") || hostname === "[::1]" || /^127(?:\.\d{1,3}){3}$/.test(hostname);
|
|
8
|
-
}
|
|
9
|
-
function parseAbsoluteUrl(value, name) {
|
|
10
|
-
let url;
|
|
11
|
-
try {
|
|
12
|
-
url = new URL(value);
|
|
13
|
-
} catch {
|
|
14
|
-
throw new Error(`${name} must be an absolute URL`);
|
|
15
|
-
}
|
|
16
|
-
if (url.origin === "null" || url.username !== "" || url.password !== "") {
|
|
17
|
-
throw new Error(`${name} must be an absolute URL without credentials`);
|
|
18
|
-
}
|
|
19
|
-
return url;
|
|
20
|
-
}
|
|
21
|
-
function assertSecureHttpUrl(url, name) {
|
|
22
|
-
if (url.protocol === "https:") {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
if (url.protocol === "http:" && isLocalhost(url)) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
throw new Error(`${name} must use HTTPS, or HTTP for localhost`);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// src/oauth/jwt.ts
|
|
32
|
-
import {
|
|
33
|
-
OAuthError,
|
|
34
|
-
OAuthErrorCode
|
|
35
|
-
} from "@modelcontextprotocol/server";
|
|
36
|
-
import {
|
|
37
|
-
createRemoteJWKSet,
|
|
38
|
-
jwtVerify,
|
|
39
|
-
errors
|
|
40
|
-
} from "jose";
|
|
41
|
-
function createJwtVerifier(options) {
|
|
42
|
-
const key = options.key ?? createRemoteJWKSet(options.jwksUrl);
|
|
43
|
-
const configuredResource = canonicalUrl(options.resource);
|
|
44
|
-
return {
|
|
45
|
-
async verifyAccessToken(token) {
|
|
46
|
-
try {
|
|
47
|
-
const { payload } = await jwtVerify(token, key, {
|
|
48
|
-
issuer: options.issuer,
|
|
49
|
-
...options.algorithms !== void 0 && {
|
|
50
|
-
algorithms: [...options.algorithms]
|
|
51
|
-
},
|
|
52
|
-
requiredClaims: ["exp", "sub"]
|
|
53
|
-
});
|
|
54
|
-
const claims = { ...payload };
|
|
55
|
-
const clientId = requiredString(claims, "client_id") ?? requiredString(claims, "azp");
|
|
56
|
-
const expiresAt = requiredFutureNumber(claims, "exp");
|
|
57
|
-
const resource = verifiedResource(claims, configuredResource);
|
|
58
|
-
return {
|
|
59
|
-
token,
|
|
60
|
-
clientId: clientId ?? "",
|
|
61
|
-
scopes: normalizedStrings(claims["scope"]),
|
|
62
|
-
expiresAt,
|
|
63
|
-
extra: { payload: claims },
|
|
64
|
-
resource
|
|
65
|
-
};
|
|
66
|
-
} catch (error) {
|
|
67
|
-
if (error instanceof OAuthError) {
|
|
68
|
-
throw error;
|
|
69
|
-
}
|
|
70
|
-
if (isCredentialFailure(error)) {
|
|
71
|
-
if (process.env["MCP_USE_OAUTH_DEBUG"]) {
|
|
72
|
-
logJwtFailure(token, error);
|
|
73
|
-
}
|
|
74
|
-
throw invalidToken("JWT verification failed", error);
|
|
75
|
-
}
|
|
76
|
-
throw error;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function normalizedProviderUrl(value, name) {
|
|
82
|
-
const raw = typeof value === "string" && !value.includes("://") ? `https://${value}` : value;
|
|
83
|
-
let url;
|
|
84
|
-
try {
|
|
85
|
-
url = new URL(raw);
|
|
86
|
-
} catch {
|
|
87
|
-
throw new TypeError(`${name} must be an absolute HTTP(S) URL`);
|
|
88
|
-
}
|
|
89
|
-
if (!isAllowedHttpUrl(url)) {
|
|
90
|
-
throw new TypeError(
|
|
91
|
-
`${name} must use HTTPS, or HTTP for localhost, without credentials, query, or fragment`
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
url.pathname = url.pathname.replace(/\/+$/, "") || "/";
|
|
95
|
-
return url;
|
|
96
|
-
}
|
|
97
|
-
function providerEndpoint(issuer, path) {
|
|
98
|
-
const base = new URL(issuer);
|
|
99
|
-
base.pathname = `${base.pathname.replace(/\/+$/, "")}/`;
|
|
100
|
-
return new URL(path.replace(/^\/+/, ""), base).href;
|
|
101
|
-
}
|
|
102
|
-
function payloadFromAuthInfo(authInfo) {
|
|
103
|
-
const payload = authInfo.extra?.["payload"];
|
|
104
|
-
if (!isRecord(payload)) {
|
|
105
|
-
throw invalidToken("Verified token payload is missing");
|
|
106
|
-
}
|
|
107
|
-
return payload;
|
|
108
|
-
}
|
|
109
|
-
function requiredString(claims, name) {
|
|
110
|
-
const value = claims[name];
|
|
111
|
-
return typeof value === "string" && value.trim().length > 0 ? value : void 0;
|
|
112
|
-
}
|
|
113
|
-
function stringValue(claims, name) {
|
|
114
|
-
const value = claims[name];
|
|
115
|
-
return typeof value === "string" ? value : void 0;
|
|
116
|
-
}
|
|
117
|
-
function booleanValue(claims, name) {
|
|
118
|
-
const value = claims[name];
|
|
119
|
-
return typeof value === "boolean" ? value : void 0;
|
|
120
|
-
}
|
|
121
|
-
function numberValue(claims, name) {
|
|
122
|
-
const value = claims[name];
|
|
123
|
-
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
124
|
-
}
|
|
125
|
-
function recordValue(claims, name) {
|
|
126
|
-
const value = claims[name];
|
|
127
|
-
return isRecord(value) ? value : void 0;
|
|
128
|
-
}
|
|
129
|
-
function normalizedStrings(value) {
|
|
130
|
-
if (typeof value === "string") {
|
|
131
|
-
return value.split(/\s+/).filter(Boolean);
|
|
132
|
-
}
|
|
133
|
-
if (!Array.isArray(value)) {
|
|
134
|
-
return [];
|
|
135
|
-
}
|
|
136
|
-
return value.filter(
|
|
137
|
-
(item) => typeof item === "string" && item.length > 0
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
function requiredFutureNumber(claims, name) {
|
|
141
|
-
const value = numberValue(claims, name);
|
|
142
|
-
if (value === void 0 || value <= Date.now() / 1e3) {
|
|
143
|
-
throw invalidToken(`Missing or expired ${name} claim`);
|
|
144
|
-
}
|
|
145
|
-
return value;
|
|
146
|
-
}
|
|
147
|
-
function invalidToken(message, cause) {
|
|
148
|
-
const error = new OAuthError(OAuthErrorCode.InvalidToken, message);
|
|
149
|
-
if (cause !== void 0) {
|
|
150
|
-
error.cause = cause;
|
|
151
|
-
}
|
|
152
|
-
return error;
|
|
153
|
-
}
|
|
154
|
-
function verifiedResource(claims, configuredResource) {
|
|
155
|
-
const value = claims["resource"];
|
|
156
|
-
if (value !== void 0) {
|
|
157
|
-
if (typeof value !== "string") {
|
|
158
|
-
throw invalidToken("Token resource claim must be an absolute URL");
|
|
159
|
-
}
|
|
160
|
-
const resource = canonicalUrl(value);
|
|
161
|
-
if (resource.href !== configuredResource.href) {
|
|
162
|
-
throw invalidToken(
|
|
163
|
-
"Token resource claim does not match protected resource"
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
return configuredResource;
|
|
167
|
-
}
|
|
168
|
-
const audience = claims["aud"];
|
|
169
|
-
if (!validAudience(audience)) {
|
|
170
|
-
throw invalidToken("Token audience claim must be a string or string array");
|
|
171
|
-
}
|
|
172
|
-
const audiences = typeof audience === "string" ? [audience] : audience;
|
|
173
|
-
if (!audiences.includes(configuredResource.href)) {
|
|
174
|
-
throw invalidToken(
|
|
175
|
-
"Token audience does not include the protected resource"
|
|
176
|
-
);
|
|
177
|
-
}
|
|
178
|
-
return configuredResource;
|
|
179
|
-
}
|
|
180
|
-
function validAudience(value) {
|
|
181
|
-
return typeof value === "string" || Array.isArray(value) && value.length > 0 && value.every((item) => typeof item === "string");
|
|
182
|
-
}
|
|
183
|
-
function canonicalUrl(value) {
|
|
184
|
-
try {
|
|
185
|
-
const url = new URL(value);
|
|
186
|
-
if (!isAllowedHttpUrl(url)) {
|
|
187
|
-
throw new TypeError();
|
|
188
|
-
}
|
|
189
|
-
url.pathname = url.pathname === "/" ? "/" : url.pathname.replace(/\/+$/, "");
|
|
190
|
-
return url;
|
|
191
|
-
} catch {
|
|
192
|
-
throw invalidToken(
|
|
193
|
-
"Token resource claim must be an absolute HTTPS URL, or HTTP URL for localhost"
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
function isAllowedHttpUrl(url) {
|
|
198
|
-
return /^https?:$/.test(url.protocol) && !url.username && !url.password && !url.search && !url.hash && (url.protocol !== "http:" || isLocalhost(url));
|
|
199
|
-
}
|
|
200
|
-
function isCredentialFailure(error) {
|
|
201
|
-
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;
|
|
202
|
-
}
|
|
203
|
-
var JWT_DEBUG_CLAIMS = [
|
|
204
|
-
"iss",
|
|
205
|
-
"aud",
|
|
206
|
-
"azp",
|
|
207
|
-
"sub",
|
|
208
|
-
"exp",
|
|
209
|
-
"iat",
|
|
210
|
-
"nbf",
|
|
211
|
-
"client_id",
|
|
212
|
-
"scope",
|
|
213
|
-
"typ",
|
|
214
|
-
"jti"
|
|
215
|
-
];
|
|
216
|
-
function debugErrorText(error) {
|
|
217
|
-
return error instanceof Error ? error.message : String(error);
|
|
218
|
-
}
|
|
219
|
-
function logJwtFailure(token, error) {
|
|
220
|
-
try {
|
|
221
|
-
let decodeSegment2 = function(segment, label) {
|
|
222
|
-
try {
|
|
223
|
-
return Buffer.from(segment, "base64url").toString("utf8");
|
|
224
|
-
} catch (decodeError) {
|
|
225
|
-
console.error(
|
|
226
|
-
`[oauth-debug] ${label} decode failed: ${debugErrorText(decodeError)}`
|
|
227
|
-
);
|
|
228
|
-
return void 0;
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
var decodeSegment = decodeSegment2;
|
|
232
|
-
const name = error instanceof Error ? error.constructor.name : typeof error;
|
|
233
|
-
console.error(
|
|
234
|
-
`[oauth-debug] JWT verify failed: ${name}: ${debugErrorText(error)}`
|
|
235
|
-
);
|
|
236
|
-
if (error instanceof errors.JWTClaimValidationFailed) {
|
|
237
|
-
console.error(
|
|
238
|
-
`[oauth-debug] claim=${error.claim} reason=${error.reason}`
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
const segments = token.split(".");
|
|
242
|
-
console.error(`[oauth-debug] token segments: ${segments.length}`);
|
|
243
|
-
if (segments.length !== 3) {
|
|
244
|
-
const preview = token.length > 12 ? `${token.slice(0, 12)}\u2026` : token;
|
|
245
|
-
console.error(
|
|
246
|
-
`[oauth-debug] non-JWT token preview=${preview} length=${token.length}`
|
|
247
|
-
);
|
|
248
|
-
return;
|
|
249
|
-
}
|
|
250
|
-
const headerJson = decodeSegment2(segments[0], "header");
|
|
251
|
-
if (headerJson !== void 0) {
|
|
252
|
-
console.error(`[oauth-debug] header=${headerJson}`);
|
|
253
|
-
}
|
|
254
|
-
const payloadJson = decodeSegment2(segments[1], "payload");
|
|
255
|
-
if (payloadJson === void 0) {
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
try {
|
|
259
|
-
const payload = JSON.parse(payloadJson);
|
|
260
|
-
const selected = {};
|
|
261
|
-
for (const claim of JWT_DEBUG_CLAIMS) {
|
|
262
|
-
if (claim in payload) {
|
|
263
|
-
selected[claim] = payload[claim];
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
selected["now"] = Math.floor(Date.now() / 1e3);
|
|
267
|
-
console.error(`[oauth-debug] payload=${JSON.stringify(selected)}`);
|
|
268
|
-
} catch (decodeError) {
|
|
269
|
-
console.error(
|
|
270
|
-
`[oauth-debug] payload decode failed: ${debugErrorText(decodeError)}`
|
|
271
|
-
);
|
|
272
|
-
}
|
|
273
|
-
} catch {
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
// src/oauth/internal.ts
|
|
278
|
-
function resolveConfiguredOAuthResource(options) {
|
|
279
|
-
const provider = options.provider;
|
|
280
|
-
const basePath = normalizeBasePath(options.basePath);
|
|
281
|
-
if (provider.resource !== void 0) {
|
|
282
|
-
return validateOAuthResource(provider.resource, basePath);
|
|
283
|
-
}
|
|
284
|
-
if (options.mcpUrl !== void 0) {
|
|
285
|
-
return validateOAuthResource(
|
|
286
|
-
appendBasePath(
|
|
287
|
-
requireAbsoluteOrigin(options.mcpUrl, "MCP_URL"),
|
|
288
|
-
basePath
|
|
289
|
-
),
|
|
290
|
-
basePath
|
|
291
|
-
);
|
|
292
|
-
}
|
|
293
|
-
return void 0;
|
|
294
|
-
}
|
|
295
|
-
function resolveLocalOAuthResource(listenOrigin, basePath) {
|
|
296
|
-
const listenOriginUrl = requireAbsoluteOrigin(listenOrigin, "listen origin");
|
|
297
|
-
if (!isLocalhost(listenOriginUrl)) {
|
|
298
|
-
throw new Error(
|
|
299
|
-
"OAuth listen origin must be localhost or a loopback address"
|
|
300
|
-
);
|
|
301
|
-
}
|
|
302
|
-
return validateOAuthResource(
|
|
303
|
-
appendBasePath(listenOriginUrl, normalizeBasePath(basePath)),
|
|
304
|
-
basePath
|
|
305
|
-
);
|
|
306
|
-
}
|
|
307
|
-
function validateOAuthResource(resource, basePath) {
|
|
308
|
-
const normalizedBasePath = normalizeBasePath(basePath);
|
|
309
|
-
const url = parseAbsoluteUrl(resource, "OAuth resource");
|
|
310
|
-
if (url.search !== "" || url.hash !== "") {
|
|
311
|
-
throw new Error(
|
|
312
|
-
"OAuth resource must not include a query string or fragment"
|
|
313
|
-
);
|
|
314
|
-
}
|
|
315
|
-
assertSecureHttpUrl(url, "OAuth resource");
|
|
316
|
-
if (normalizePathname(url.pathname) !== normalizedBasePath) {
|
|
317
|
-
throw new Error(
|
|
318
|
-
`OAuth resource path must exactly match basePath (${normalizedBasePath})`
|
|
319
|
-
);
|
|
320
|
-
}
|
|
321
|
-
url.pathname = normalizedBasePath;
|
|
322
|
-
return url;
|
|
323
|
-
}
|
|
324
|
-
function wrapOAuthTokenVerifier(provider, expectedResource) {
|
|
325
|
-
const canonicalResource = normalizeResourceUrl(expectedResource);
|
|
326
|
-
const tokenVerifier = provider.createTokenVerifier(
|
|
327
|
-
new URL(canonicalResource.href)
|
|
328
|
-
);
|
|
329
|
-
if (tokenVerifier === null || typeof tokenVerifier !== "object" || typeof tokenVerifier.verifyAccessToken !== "function") {
|
|
330
|
-
throw new TypeError(
|
|
331
|
-
"OAuth provider createTokenVerifier must return an OAuthTokenVerifier"
|
|
332
|
-
);
|
|
333
|
-
}
|
|
334
|
-
return {
|
|
335
|
-
async verifyAccessToken(token) {
|
|
336
|
-
const authInfo = await tokenVerifier.verifyAccessToken(token);
|
|
337
|
-
assertVerifiedAuthInfo(authInfo);
|
|
338
|
-
assertResourceBinding(authInfo, canonicalResource);
|
|
339
|
-
let mapped;
|
|
340
|
-
try {
|
|
341
|
-
mapped = provider.mapAuthInfo(authInfo);
|
|
342
|
-
} catch (error) {
|
|
343
|
-
throw invalidToken("Token identity mapping failed", error);
|
|
344
|
-
}
|
|
345
|
-
assertMappedExtra(mapped);
|
|
346
|
-
return {
|
|
347
|
-
...authInfo,
|
|
348
|
-
scopes: [...authInfo.scopes],
|
|
349
|
-
extra: { ...authInfo.extra, ...mapped }
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
function assertResourceBinding(authInfo, expectedResource) {
|
|
355
|
-
if (authInfo.resource === void 0) {
|
|
356
|
-
throw invalidToken(
|
|
357
|
-
"Token verifier did not return a validated protected resource"
|
|
358
|
-
);
|
|
359
|
-
}
|
|
360
|
-
const resource = parseTokenResource(authInfo.resource);
|
|
361
|
-
if (resource.href !== normalizeResourceUrl(expectedResource).href) {
|
|
362
|
-
throw invalidToken("Token resource does not match the protected resource");
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
function parseTokenResource(value) {
|
|
366
|
-
if (!(value instanceof URL)) {
|
|
367
|
-
throw invalidToken(
|
|
368
|
-
"Token resource must be an absolute HTTPS URL, or HTTP URL for localhost"
|
|
369
|
-
);
|
|
370
|
-
}
|
|
371
|
-
const resource = value;
|
|
372
|
-
if (!/^https?:$/.test(resource.protocol) || resource.username !== "" || resource.password !== "" || resource.search !== "" || resource.hash !== "" || resource.protocol === "http:" && !isLocalhost(resource)) {
|
|
373
|
-
throw invalidToken(
|
|
374
|
-
"Token resource must be an absolute HTTPS URL, or HTTP URL for localhost"
|
|
375
|
-
);
|
|
376
|
-
}
|
|
377
|
-
return normalizeResourceUrl(resource);
|
|
378
|
-
}
|
|
379
|
-
function normalizeResourceUrl(resource) {
|
|
380
|
-
const normalized = new URL(resource);
|
|
381
|
-
normalized.pathname = normalized.pathname === "/" ? "/" : normalized.pathname.replace(/\/+$/, "");
|
|
382
|
-
return normalized;
|
|
383
|
-
}
|
|
384
|
-
function getOAuthProviderOptions(provider) {
|
|
385
|
-
return {
|
|
386
|
-
oauthMetadata: provider.oauthMetadata,
|
|
387
|
-
...provider.requiredScopes !== void 0 && {
|
|
388
|
-
requiredScopes: [...provider.requiredScopes]
|
|
389
|
-
},
|
|
390
|
-
...provider.scopesSupported !== void 0 && {
|
|
391
|
-
scopesSupported: [...provider.scopesSupported]
|
|
392
|
-
},
|
|
393
|
-
...provider.resourceName !== void 0 && {
|
|
394
|
-
resourceName: provider.resourceName
|
|
395
|
-
},
|
|
396
|
-
...provider.serviceDocumentationUrl !== void 0 && {
|
|
397
|
-
serviceDocumentationUrl: provider.serviceDocumentationUrl
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
function assertVerifiedAuthInfo(authInfo) {
|
|
402
|
-
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) {
|
|
403
|
-
throw invalidToken(
|
|
404
|
-
"Token verifier returned invalid authentication information"
|
|
405
|
-
);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
function assertMappedExtra(mapped) {
|
|
409
|
-
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")) {
|
|
410
|
-
throw invalidToken(
|
|
411
|
-
"Token identity mapping must return user, payload, and string permissions"
|
|
412
|
-
);
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
function requireAbsoluteOrigin(value, name) {
|
|
416
|
-
const url = parseAbsoluteUrl(value, name);
|
|
417
|
-
if (url.pathname !== "/" || url.search !== "" || url.hash !== "" || url.username !== "" || url.password !== "") {
|
|
418
|
-
throw new Error(`${name} must be an absolute origin without a path`);
|
|
419
|
-
}
|
|
420
|
-
return url;
|
|
421
|
-
}
|
|
422
|
-
function appendBasePath(origin, basePath) {
|
|
423
|
-
const resource = new URL(origin.origin);
|
|
424
|
-
resource.pathname = basePath;
|
|
425
|
-
return resource;
|
|
426
|
-
}
|
|
427
|
-
function normalizeBasePath(basePath) {
|
|
428
|
-
if (!basePath.startsWith("/") || basePath.includes("?") || basePath.includes("#")) {
|
|
429
|
-
throw new Error("basePath must be an absolute URL pathname");
|
|
430
|
-
}
|
|
431
|
-
return normalizePathname(basePath);
|
|
432
|
-
}
|
|
433
|
-
function normalizePathname(pathname) {
|
|
434
|
-
return pathname === "/" ? "/" : pathname.replace(/\/+$/, "");
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
// src/oauth/provider.ts
|
|
438
|
-
function oauthCustomProvider(options) {
|
|
439
|
-
if (options === null || typeof options !== "object" || typeof options.createTokenVerifier !== "function" || typeof options.mapAuthInfo !== "function") {
|
|
440
|
-
throw new TypeError(
|
|
441
|
-
"oauthCustomProvider requires createTokenVerifier, oauthMetadata, and mapAuthInfo"
|
|
442
|
-
);
|
|
443
|
-
}
|
|
444
|
-
assertOAuthMetadata(options.oauthMetadata);
|
|
445
|
-
if (options.resource !== void 0) {
|
|
446
|
-
assertResourceUrl(options.resource);
|
|
447
|
-
}
|
|
448
|
-
assertStringArray(options.requiredScopes, "requiredScopes");
|
|
449
|
-
assertStringArray(options.scopesSupported, "scopesSupported");
|
|
450
|
-
if (options.resourceName !== void 0 && (typeof options.resourceName !== "string" || options.resourceName.trim().length === 0)) {
|
|
451
|
-
throw new TypeError("resourceName must be a non-empty string");
|
|
452
|
-
}
|
|
453
|
-
if (options.serviceDocumentationUrl !== void 0) {
|
|
454
|
-
if (!(options.serviceDocumentationUrl instanceof URL)) {
|
|
455
|
-
throw new TypeError("serviceDocumentationUrl must be a URL");
|
|
456
|
-
}
|
|
457
|
-
assertSecureHttpUrl(
|
|
458
|
-
options.serviceDocumentationUrl,
|
|
459
|
-
"serviceDocumentationUrl"
|
|
460
|
-
);
|
|
461
|
-
}
|
|
462
|
-
const provider = {
|
|
463
|
-
createTokenVerifier: options.createTokenVerifier,
|
|
464
|
-
oauthMetadata: options.oauthMetadata,
|
|
465
|
-
mapAuthInfo: options.mapAuthInfo,
|
|
466
|
-
...options.resource !== void 0 && { resource: options.resource },
|
|
467
|
-
...options.requiredScopes !== void 0 && {
|
|
468
|
-
requiredScopes: [...options.requiredScopes]
|
|
469
|
-
},
|
|
470
|
-
...options.scopesSupported !== void 0 && {
|
|
471
|
-
scopesSupported: [...options.scopesSupported]
|
|
472
|
-
},
|
|
473
|
-
...options.resourceName !== void 0 && {
|
|
474
|
-
resourceName: options.resourceName
|
|
475
|
-
},
|
|
476
|
-
...options.serviceDocumentationUrl !== void 0 && {
|
|
477
|
-
serviceDocumentationUrl: options.serviceDocumentationUrl
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
|
-
return provider;
|
|
481
|
-
}
|
|
482
|
-
function assertOAuthMetadata(metadata) {
|
|
483
|
-
if (metadata === null || typeof metadata !== "object" || !("issuer" in metadata) || typeof metadata.issuer !== "string") {
|
|
484
|
-
throw new TypeError("oauthMetadata must include a string issuer");
|
|
485
|
-
}
|
|
486
|
-
assertSecureHttpUrl(
|
|
487
|
-
parseAbsoluteUrl(metadata.issuer, "oauthMetadata.issuer"),
|
|
488
|
-
"oauthMetadata.issuer"
|
|
489
|
-
);
|
|
490
|
-
}
|
|
491
|
-
function assertResourceUrl(resource) {
|
|
492
|
-
assertSecureHttpUrl(parseAbsoluteUrl(resource, "resource"), "resource");
|
|
493
|
-
}
|
|
494
|
-
function assertStringArray(value, name) {
|
|
495
|
-
if (value !== void 0 && (!Array.isArray(value) || !value.every((item) => typeof item === "string"))) {
|
|
496
|
-
throw new TypeError(`${name} must be an array of strings`);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
export {
|
|
501
|
-
isRecord,
|
|
502
|
-
createJwtVerifier,
|
|
503
|
-
normalizedProviderUrl,
|
|
504
|
-
providerEndpoint,
|
|
505
|
-
payloadFromAuthInfo,
|
|
506
|
-
requiredString,
|
|
507
|
-
stringValue,
|
|
508
|
-
booleanValue,
|
|
509
|
-
recordValue,
|
|
510
|
-
normalizedStrings,
|
|
511
|
-
invalidToken,
|
|
512
|
-
resolveConfiguredOAuthResource,
|
|
513
|
-
resolveLocalOAuthResource,
|
|
514
|
-
wrapOAuthTokenVerifier,
|
|
515
|
-
getOAuthProviderOptions,
|
|
516
|
-
oauthCustomProvider
|
|
517
|
-
};
|
|
518
|
-
//# sourceMappingURL=chunk-DPL7OEXC.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/oauth/guards.ts","../src/oauth/jwt.ts","../src/oauth/internal.ts","../src/oauth/provider.ts"],"sourcesContent":["/** @internal Narrows unknown values to plain object records. */\nexport function isRecord(value: unknown): value is Record<string, unknown> {\n return value !== null && typeof value === \"object\" && !Array.isArray(value);\n}\n\n/** @internal Checks if a URL points to localhost or a loopback address. */\nexport function isLocalhost(url: URL): boolean {\n const hostname = url.hostname.toLowerCase();\n return (\n hostname === \"localhost\" ||\n hostname.endsWith(\".localhost\") ||\n hostname === \"[::1]\" ||\n /^127(?:\\.\\d{1,3}){3}$/.test(hostname)\n );\n}\n\n/** @internal Parses and validates an absolute URL without credentials. */\nexport function parseAbsoluteUrl(value: string | URL, name: string): URL {\n let url: URL;\n try {\n url = new URL(value);\n } catch {\n throw new Error(`${name} must be an absolute URL`);\n }\n if (url.origin === \"null\" || url.username !== \"\" || url.password !== \"\") {\n throw new Error(`${name} must be an absolute URL without credentials`);\n }\n return url;\n}\n\n/** @internal Validates that a URL uses HTTPS, or HTTP for localhost. */\nexport function assertSecureHttpUrl(url: URL, name: string): void {\n if (url.protocol === \"https:\") {\n return;\n }\n if (url.protocol === \"http:\" && isLocalhost(url)) {\n return;\n }\n throw new Error(`${name} must use HTTPS, or HTTP for localhost`);\n}\n","import {\n OAuthError,\n OAuthErrorCode,\n type AuthInfo,\n type OAuthTokenVerifier,\n} from \"@modelcontextprotocol/server\";\nimport {\n createRemoteJWKSet,\n jwtVerify,\n errors,\n type JWTVerifyGetKey,\n} from \"jose\";\n\nimport { isLocalhost, isRecord } from \"./guards.js\";\n\n/** @internal Record of claims extracted from a verified JWT. */\nexport type VerifiedPayload = Record<string, unknown>;\n\n/** @internal Configures issuer, keys, and claims enforced by a JWT verifier. */\nexport interface JwtVerifierOptions {\n issuer: string;\n jwksUrl: URL;\n resource: URL;\n algorithms?: readonly string[];\n key?: Uint8Array;\n}\n\n/** @internal Creates a verifier that rejects JWTs with invalid signatures or required claims. */\nexport function createJwtVerifier(\n options: JwtVerifierOptions\n): OAuthTokenVerifier {\n // jose overloads key material vs JWKS getters; runtime accepts either.\n const key = options.key ?? createRemoteJWKSet(options.jwksUrl);\n const configuredResource = canonicalUrl(options.resource);\n\n return {\n async verifyAccessToken(token: string): Promise<AuthInfo> {\n try {\n const { payload } = await jwtVerify(token, key as JWTVerifyGetKey, {\n issuer: options.issuer,\n ...(options.algorithms !== undefined && {\n algorithms: [...options.algorithms],\n }),\n requiredClaims: [\"exp\", \"sub\"],\n });\n const claims: VerifiedPayload = { ...payload };\n // clientId is only the OAuth client (client_id / azp), never sub.\n // SDK AuthInfo requires a string, but many IdPs (WorkOS AuthKit,\n // Supabase) issue tokens without client claims; empty string is mapped\n // to undefined at the mcp-use context layer.\n const clientId =\n requiredString(claims, \"client_id\") ?? requiredString(claims, \"azp\");\n const expiresAt = requiredFutureNumber(claims, \"exp\");\n const resource = verifiedResource(claims, configuredResource);\n\n return {\n token,\n clientId: clientId ?? \"\",\n scopes: normalizedStrings(claims[\"scope\"]),\n expiresAt,\n extra: { payload: claims },\n resource,\n };\n } catch (error) {\n if (error instanceof OAuthError) {\n throw error;\n }\n if (isCredentialFailure(error)) {\n if (process.env[\"MCP_USE_OAUTH_DEBUG\"]) {\n logJwtFailure(token, error);\n }\n throw invalidToken(\"JWT verification failed\", error);\n }\n throw error;\n }\n },\n };\n}\n\n/** Validates and canonicalizes an authorization-server URL before JWKS setup. */\nexport function normalizedProviderUrl(value: URL | string, name: string): URL {\n const raw =\n typeof value === \"string\" && !value.includes(\"://\")\n ? `https://${value}`\n : value;\n let url: URL;\n try {\n url = new URL(raw);\n } catch {\n throw new TypeError(`${name} must be an absolute HTTP(S) URL`);\n }\n if (!isAllowedHttpUrl(url)) {\n throw new TypeError(\n `${name} must use HTTPS, or HTTP for localhost, without credentials, query, or fragment`\n );\n }\n url.pathname = url.pathname.replace(/\\/+$/, \"\") || \"/\";\n return url;\n}\n\n/** @internal Resolves a provider endpoint without losing an issuer path prefix. */\nexport function providerEndpoint(issuer: string | URL, path: string): string {\n const base = new URL(issuer);\n base.pathname = `${base.pathname.replace(/\\/+$/, \"\")}/`;\n return new URL(path.replace(/^\\/+/, \"\"), base).href;\n}\n\n/** @internal Reads the verified JWT payload from SDK auth information. */\nexport function payloadFromAuthInfo(authInfo: AuthInfo): VerifiedPayload {\n const payload = authInfo.extra?.[\"payload\"];\n if (!isRecord(payload)) {\n throw invalidToken(\"Verified token payload is missing\");\n }\n return payload;\n}\n\n/** @internal Returns a non-blank string claim when present. */\nexport function requiredString(\n claims: VerifiedPayload,\n name: string\n): string | undefined {\n const value = claims[name];\n return typeof value === \"string\" && value.trim().length > 0\n ? value\n : undefined;\n}\n\n/** @internal Returns a string claim without coercion. */\nexport function stringValue(\n claims: VerifiedPayload,\n name: string\n): string | undefined {\n const value = claims[name];\n return typeof value === \"string\" ? value : undefined;\n}\n\n/** @internal Returns a boolean claim without coercion. */\nexport function booleanValue(\n claims: VerifiedPayload,\n name: string\n): boolean | undefined {\n const value = claims[name];\n return typeof value === \"boolean\" ? value : undefined;\n}\n\n/** @internal Returns a finite numeric claim without coercion. */\nexport function numberValue(\n claims: VerifiedPayload,\n name: string\n): number | undefined {\n const value = claims[name];\n return typeof value === \"number\" && Number.isFinite(value)\n ? value\n : undefined;\n}\n\n/** @internal Returns an object claim and excludes arrays. */\nexport function recordValue(\n claims: VerifiedPayload,\n name: string\n): Record<string, unknown> | undefined {\n const value = claims[name];\n return isRecord(value) ? value : undefined;\n}\n\n/** @internal Normalizes scope-like strings or arrays into non-empty strings. */\nexport function normalizedStrings(value: unknown): string[] {\n if (typeof value === \"string\") {\n return value.split(/\\s+/).filter(Boolean);\n }\n if (!Array.isArray(value)) {\n return [];\n }\n return value.filter(\n (item): item is string => typeof item === \"string\" && item.length > 0\n );\n}\n\n/** @internal Returns a future numeric claim or raises an invalid-token error. */\nexport function requiredFutureNumber(\n claims: VerifiedPayload,\n name: string\n): number {\n const value = numberValue(claims, name);\n if (value === undefined || value <= Date.now() / 1000) {\n throw invalidToken(`Missing or expired ${name} claim`);\n }\n return value;\n}\n\n/** @internal Creates an OAuth invalid-token error with an optional cause. */\nexport function invalidToken(message: string, cause?: unknown): OAuthError {\n const error = new OAuthError(OAuthErrorCode.InvalidToken, message);\n if (cause !== undefined) {\n error.cause = cause;\n }\n return error;\n}\n\nfunction verifiedResource(\n claims: VerifiedPayload,\n configuredResource: URL\n): URL {\n const value = claims[\"resource\"];\n if (value !== undefined) {\n if (typeof value !== \"string\") {\n throw invalidToken(\"Token resource claim must be an absolute URL\");\n }\n const resource = canonicalUrl(value);\n if (resource.href !== configuredResource.href) {\n throw invalidToken(\n \"Token resource claim does not match protected resource\"\n );\n }\n return configuredResource;\n }\n\n const audience = claims[\"aud\"];\n if (!validAudience(audience)) {\n throw invalidToken(\"Token audience claim must be a string or string array\");\n }\n const audiences = typeof audience === \"string\" ? [audience] : audience;\n if (!audiences.includes(configuredResource.href)) {\n throw invalidToken(\n \"Token audience does not include the protected resource\"\n );\n }\n return configuredResource;\n}\n\nfunction validAudience(value: unknown): value is string | string[] {\n return (\n typeof value === \"string\" ||\n (Array.isArray(value) &&\n value.length > 0 &&\n value.every((item) => typeof item === \"string\"))\n );\n}\n\nfunction canonicalUrl(value: URL | string): URL {\n try {\n const url = new URL(value);\n if (!isAllowedHttpUrl(url)) {\n throw new TypeError();\n }\n url.pathname =\n url.pathname === \"/\" ? \"/\" : url.pathname.replace(/\\/+$/, \"\");\n return url;\n } catch {\n throw invalidToken(\n \"Token resource claim must be an absolute HTTPS URL, or HTTP URL for localhost\"\n );\n }\n}\n\n/** Shared URL-shape rules for provider and resource URLs (HTTP only on localhost). */\nfunction isAllowedHttpUrl(url: URL): boolean {\n return (\n /^https?:$/.test(url.protocol) &&\n !url.username &&\n !url.password &&\n !url.search &&\n !url.hash &&\n (url.protocol !== \"http:\" || isLocalhost(url))\n );\n}\n\nfunction isCredentialFailure(error: unknown): boolean {\n return (\n error instanceof errors.JWTClaimValidationFailed ||\n error instanceof errors.JWTExpired ||\n error instanceof errors.JOSEAlgNotAllowed ||\n error instanceof errors.JOSENotSupported ||\n error instanceof errors.JWSInvalid ||\n error instanceof errors.JWTInvalid ||\n error instanceof errors.JWSSignatureVerificationFailed ||\n error instanceof errors.JWKSNoMatchingKey\n );\n}\n\nconst JWT_DEBUG_CLAIMS = [\n \"iss\",\n \"aud\",\n \"azp\",\n \"sub\",\n \"exp\",\n \"iat\",\n \"nbf\",\n \"client_id\",\n \"scope\",\n \"typ\",\n \"jti\",\n] as const;\n\nfunction debugErrorText(error: unknown): string {\n return error instanceof Error ? error.message : String(error);\n}\n\nfunction logJwtFailure(token: string, error: unknown): void {\n try {\n const name = error instanceof Error ? error.constructor.name : typeof error;\n console.error(\n `[oauth-debug] JWT verify failed: ${name}: ${debugErrorText(error)}`\n );\n if (error instanceof errors.JWTClaimValidationFailed) {\n console.error(\n `[oauth-debug] claim=${error.claim} reason=${error.reason}`\n );\n }\n\n const segments = token.split(\".\");\n console.error(`[oauth-debug] token segments: ${segments.length}`);\n if (segments.length !== 3) {\n const preview = token.length > 12 ? `${token.slice(0, 12)}…` : token;\n console.error(\n `[oauth-debug] non-JWT token preview=${preview} length=${token.length}`\n );\n return;\n }\n\n function decodeSegment(segment: string, label: string): string | undefined {\n try {\n return Buffer.from(segment, \"base64url\").toString(\"utf8\");\n } catch (decodeError) {\n console.error(\n `[oauth-debug] ${label} decode failed: ${debugErrorText(decodeError)}`\n );\n return undefined;\n }\n }\n\n const headerJson = decodeSegment(segments[0]!, \"header\");\n if (headerJson !== undefined) {\n console.error(`[oauth-debug] header=${headerJson}`);\n }\n\n const payloadJson = decodeSegment(segments[1]!, \"payload\");\n if (payloadJson === undefined) {\n return;\n }\n try {\n const payload = JSON.parse(payloadJson) as Record<string, unknown>;\n const selected: Record<string, unknown> = {};\n for (const claim of JWT_DEBUG_CLAIMS) {\n if (claim in payload) {\n selected[claim] = payload[claim];\n }\n }\n selected[\"now\"] = Math.floor(Date.now() / 1000);\n console.error(`[oauth-debug] payload=${JSON.stringify(selected)}`);\n } catch (decodeError) {\n console.error(\n `[oauth-debug] payload decode failed: ${debugErrorText(decodeError)}`\n );\n }\n } catch {\n // never throw from debug logging\n }\n}\n","import type {\n AuthInfo,\n OAuthTokenVerifier,\n} from \"@modelcontextprotocol/server\";\n\nimport {\n assertSecureHttpUrl,\n isLocalhost,\n isRecord,\n parseAbsoluteUrl,\n} from \"./guards.js\";\nimport { invalidToken } from \"./jwt.js\";\nimport type { OAuthExtra, OAuthProvider } from \"./provider.js\";\n\nexport {\n assertSecureHttpUrl,\n isLocalhost,\n parseAbsoluteUrl,\n} from \"./guards.js\";\n\n/** @internal Resolves configured resource identity, or undefined when none is configured. */\nexport function resolveConfiguredOAuthResource<TUser>(options: {\n provider: OAuthProvider<TUser>;\n basePath: string;\n mcpUrl?: string | URL;\n}): URL | undefined {\n const provider = options.provider;\n const basePath = normalizeBasePath(options.basePath);\n if (provider.resource !== undefined) {\n return validateOAuthResource(provider.resource, basePath);\n }\n if (options.mcpUrl !== undefined) {\n return validateOAuthResource(\n appendBasePath(\n requireAbsoluteOrigin(options.mcpUrl, \"MCP_URL\"),\n basePath\n ),\n basePath\n );\n }\n return undefined;\n}\n\n/** @internal Resolves a canonical resource from a trusted local listener. */\nexport function resolveLocalOAuthResource(\n listenOrigin: string | URL,\n basePath: string\n): URL {\n const listenOriginUrl = requireAbsoluteOrigin(listenOrigin, \"listen origin\");\n if (!isLocalhost(listenOriginUrl)) {\n throw new Error(\n \"OAuth listen origin must be localhost or a loopback address\"\n );\n }\n return validateOAuthResource(\n appendBasePath(listenOriginUrl, normalizeBasePath(basePath)),\n basePath\n );\n}\n\n/** @internal Validates and canonicalizes one resource-server URL. */\nexport function validateOAuthResource(\n resource: URL | string,\n basePath: string\n): URL {\n const normalizedBasePath = normalizeBasePath(basePath);\n const url = parseAbsoluteUrl(resource, \"OAuth resource\");\n if (url.search !== \"\" || url.hash !== \"\") {\n throw new Error(\n \"OAuth resource must not include a query string or fragment\"\n );\n }\n assertSecureHttpUrl(url, \"OAuth resource\");\n if (normalizePathname(url.pathname) !== normalizedBasePath) {\n throw new Error(\n `OAuth resource path must exactly match basePath (${normalizedBasePath})`\n );\n }\n url.pathname = normalizedBasePath;\n return url;\n}\n\n/** @internal Wraps a provider verifier with mcp-use's verified auth mapping. */\nexport function wrapOAuthTokenVerifier<TUser>(\n provider: OAuthProvider<TUser>,\n expectedResource: URL\n): OAuthTokenVerifier {\n const canonicalResource = normalizeResourceUrl(expectedResource);\n const tokenVerifier = provider.createTokenVerifier(\n new URL(canonicalResource.href)\n );\n if (\n tokenVerifier === null ||\n typeof tokenVerifier !== \"object\" ||\n typeof tokenVerifier.verifyAccessToken !== \"function\"\n ) {\n throw new TypeError(\n \"OAuth provider createTokenVerifier must return an OAuthTokenVerifier\"\n );\n }\n\n return {\n async verifyAccessToken(token: string): Promise<AuthInfo> {\n const authInfo = await tokenVerifier.verifyAccessToken(token);\n assertVerifiedAuthInfo(authInfo);\n assertResourceBinding(authInfo, canonicalResource);\n\n let mapped: OAuthExtra<TUser>;\n try {\n mapped = provider.mapAuthInfo(authInfo);\n } catch (error) {\n throw invalidToken(\"Token identity mapping failed\", error);\n }\n assertMappedExtra(mapped);\n\n return {\n ...authInfo,\n scopes: [...authInfo.scopes],\n extra: { ...authInfo.extra, ...mapped },\n };\n },\n };\n}\n\nfunction assertResourceBinding(\n authInfo: AuthInfo,\n expectedResource: URL\n): void {\n if (authInfo.resource === undefined) {\n throw invalidToken(\n \"Token verifier did not return a validated protected resource\"\n );\n }\n const resource = parseTokenResource(authInfo.resource);\n if (resource.href !== normalizeResourceUrl(expectedResource).href) {\n throw invalidToken(\"Token resource does not match the protected resource\");\n }\n}\n\nfunction parseTokenResource(value: unknown): URL {\n if (!(value instanceof URL)) {\n throw invalidToken(\n \"Token resource must be an absolute HTTPS URL, or HTTP URL for localhost\"\n );\n }\n const resource = value;\n if (\n !/^https?:$/.test(resource.protocol) ||\n resource.username !== \"\" ||\n resource.password !== \"\" ||\n resource.search !== \"\" ||\n resource.hash !== \"\" ||\n (resource.protocol === \"http:\" && !isLocalhost(resource))\n ) {\n throw invalidToken(\n \"Token resource must be an absolute HTTPS URL, or HTTP URL for localhost\"\n );\n }\n return normalizeResourceUrl(resource);\n}\n\nfunction normalizeResourceUrl(resource: URL): URL {\n const normalized = new URL(resource);\n normalized.pathname =\n normalized.pathname === \"/\" ? \"/\" : normalized.pathname.replace(/\\/+$/, \"\");\n return normalized;\n}\n\n/** @internal Gets immutable provider metadata for Hono adapter wiring. */\nexport function getOAuthProviderOptions<TUser>(\n provider: OAuthProvider<TUser>\n): {\n oauthMetadata: OAuthProvider<TUser>[\"oauthMetadata\"];\n requiredScopes?: string[];\n scopesSupported?: string[];\n resourceName?: string;\n serviceDocumentationUrl?: URL;\n} {\n return {\n oauthMetadata: provider.oauthMetadata,\n ...(provider.requiredScopes !== undefined && {\n requiredScopes: [...provider.requiredScopes],\n }),\n ...(provider.scopesSupported !== undefined && {\n scopesSupported: [...provider.scopesSupported],\n }),\n ...(provider.resourceName !== undefined && {\n resourceName: provider.resourceName,\n }),\n ...(provider.serviceDocumentationUrl !== undefined && {\n serviceDocumentationUrl: provider.serviceDocumentationUrl,\n }),\n };\n}\n\nfunction assertVerifiedAuthInfo(\n authInfo: AuthInfo\n): asserts authInfo is AuthInfo {\n if (\n authInfo === null ||\n typeof authInfo !== \"object\" ||\n typeof authInfo.token !== \"string\" ||\n authInfo.token.length === 0 ||\n typeof authInfo.clientId !== \"string\" ||\n !Array.isArray(authInfo.scopes) ||\n !authInfo.scopes.every((scope) => typeof scope === \"string\") ||\n typeof authInfo.expiresAt !== \"number\" ||\n !Number.isFinite(authInfo.expiresAt) ||\n authInfo.expiresAt <= Date.now() / 1000\n ) {\n throw invalidToken(\n \"Token verifier returned invalid authentication information\"\n );\n }\n}\n\nfunction assertMappedExtra<TUser>(\n mapped: OAuthExtra<TUser>\n): asserts mapped is OAuthExtra<TUser> {\n if (\n mapped === null ||\n typeof mapped !== \"object\" ||\n !(\"user\" in mapped) ||\n mapped.user === undefined ||\n !isRecord(mapped.payload) ||\n !Array.isArray(mapped.permissions) ||\n !mapped.permissions.every((permission) => typeof permission === \"string\")\n ) {\n throw invalidToken(\n \"Token identity mapping must return user, payload, and string permissions\"\n );\n }\n}\n\nfunction requireAbsoluteOrigin(value: string | URL, name: string): URL {\n const url = parseAbsoluteUrl(value, name);\n if (\n url.pathname !== \"/\" ||\n url.search !== \"\" ||\n url.hash !== \"\" ||\n url.username !== \"\" ||\n url.password !== \"\"\n ) {\n throw new Error(`${name} must be an absolute origin without a path`);\n }\n return url;\n}\n\nfunction appendBasePath(origin: URL, basePath: string): URL {\n const resource = new URL(origin.origin);\n resource.pathname = basePath;\n return resource;\n}\n\nfunction normalizeBasePath(basePath: string): string {\n if (\n !basePath.startsWith(\"/\") ||\n basePath.includes(\"?\") ||\n basePath.includes(\"#\")\n ) {\n throw new Error(\"basePath must be an absolute URL pathname\");\n }\n return normalizePathname(basePath);\n}\n\nfunction normalizePathname(pathname: string): string {\n return pathname === \"/\" ? \"/\" : pathname.replace(/\\/+$/, \"\");\n}\n","import type {\n AuthInfo as OAuthAuthInfo,\n OAuthMetadata,\n OAuthTokenVerifier,\n} from \"@modelcontextprotocol/server\";\n\nimport { assertSecureHttpUrl, parseAbsoluteUrl } from \"./internal.js\";\n\n/** Additional verified identity information exposed by mcp-use callbacks. */\nexport type OAuthExtra<TUser> = Record<string, unknown> & {\n /** The authenticated application user. */\n user: TUser;\n /** Verified token claims or introspection data. */\n payload: Record<string, unknown>;\n /** Verified permissions granted to the user. */\n permissions: string[];\n};\n\n/** Resource-server metadata and bearer-gate configuration. */\nexport interface OAuthResourceOptions {\n /** Full canonical public MCP endpoint URL. */\n resource?: URL | string;\n /** Endpoint-wide scopes enforced by the SDK bearer gate. */\n requiredScopes?: readonly string[];\n /** Scopes advertised by protected-resource metadata. */\n scopesSupported?: readonly string[];\n /** Human-readable name advertised by protected-resource metadata. */\n resourceName?: string;\n /** Documentation URL advertised by protected-resource metadata. */\n serviceDocumentationUrl?: URL;\n}\n\n/** Options for {@link oauthCustomProvider}. */\nexport interface CustomOAuthProviderOptions<\n TUser,\n> extends OAuthResourceOptions {\n /** Creates a verifier bound to the resolved canonical MCP resource. */\n createTokenVerifier: (resource: URL) => OAuthTokenVerifier;\n /** RFC 8414 metadata for the external authorization server. */\n oauthMetadata: OAuthMetadata;\n /** Maps verified SDK auth information into mcp-use callback identity data. */\n mapAuthInfo: (authInfo: OAuthAuthInfo) => OAuthExtra<TUser>;\n}\n\n/** OAuth resource-server provider accepted by {@link MCPServer}. */\nexport type OAuthProvider<TUser> = CustomOAuthProviderOptions<TUser>;\n\n/**\n * Creates an OAuth provider backed by an external authorization server.\n *\n * @typeParam TUser - Application user type exposed to authenticated callbacks.\n * @param options - Token verification, discovery metadata, and identity mapping.\n * @returns A provider for an OAuth-enabled MCP server.\n */\nexport function oauthCustomProvider<TUser>(\n options: CustomOAuthProviderOptions<TUser>\n): OAuthProvider<TUser> {\n if (\n options === null ||\n typeof options !== \"object\" ||\n typeof options.createTokenVerifier !== \"function\" ||\n typeof options.mapAuthInfo !== \"function\"\n ) {\n throw new TypeError(\n \"oauthCustomProvider requires createTokenVerifier, oauthMetadata, and mapAuthInfo\"\n );\n }\n\n assertOAuthMetadata(options.oauthMetadata);\n if (options.resource !== undefined) {\n assertResourceUrl(options.resource);\n }\n assertStringArray(options.requiredScopes, \"requiredScopes\");\n assertStringArray(options.scopesSupported, \"scopesSupported\");\n if (\n options.resourceName !== undefined &&\n (typeof options.resourceName !== \"string\" ||\n options.resourceName.trim().length === 0)\n ) {\n throw new TypeError(\"resourceName must be a non-empty string\");\n }\n if (options.serviceDocumentationUrl !== undefined) {\n if (!(options.serviceDocumentationUrl instanceof URL)) {\n throw new TypeError(\"serviceDocumentationUrl must be a URL\");\n }\n assertSecureHttpUrl(\n options.serviceDocumentationUrl,\n \"serviceDocumentationUrl\"\n );\n }\n\n const provider: OAuthProvider<TUser> = {\n createTokenVerifier: options.createTokenVerifier,\n oauthMetadata: options.oauthMetadata,\n mapAuthInfo: options.mapAuthInfo,\n ...(options.resource !== undefined && { resource: options.resource }),\n ...(options.requiredScopes !== undefined && {\n requiredScopes: [...options.requiredScopes],\n }),\n ...(options.scopesSupported !== undefined && {\n scopesSupported: [...options.scopesSupported],\n }),\n ...(options.resourceName !== undefined && {\n resourceName: options.resourceName,\n }),\n ...(options.serviceDocumentationUrl !== undefined && {\n serviceDocumentationUrl: options.serviceDocumentationUrl,\n }),\n };\n return provider;\n}\n\nfunction assertOAuthMetadata(\n metadata: unknown\n): asserts metadata is OAuthMetadata {\n if (\n metadata === null ||\n typeof metadata !== \"object\" ||\n !(\"issuer\" in metadata) ||\n typeof metadata.issuer !== \"string\"\n ) {\n throw new TypeError(\"oauthMetadata must include a string issuer\");\n }\n assertSecureHttpUrl(\n parseAbsoluteUrl(metadata.issuer, \"oauthMetadata.issuer\"),\n \"oauthMetadata.issuer\"\n );\n}\n\nfunction assertResourceUrl(resource: URL | string): void {\n assertSecureHttpUrl(parseAbsoluteUrl(resource, \"resource\"), \"resource\");\n}\n\nfunction assertStringArray(\n value: readonly string[] | undefined,\n name: string\n): void {\n if (\n value !== undefined &&\n (!Array.isArray(value) || !value.every((item) => typeof item === \"string\"))\n ) {\n throw new TypeError(`${name} must be an array of strings`);\n }\n}\n"],"mappings":";AACO,SAAS,SAAS,OAAkD;AACzE,SAAO,UAAU,QAAQ,OAAO,UAAU,YAAY,CAAC,MAAM,QAAQ,KAAK;AAC5E;AAGO,SAAS,YAAY,KAAmB;AAC7C,QAAM,WAAW,IAAI,SAAS,YAAY;AAC1C,SACE,aAAa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