@frontmcp/sdk 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -18
- package/package.json +20 -5
- package/src/app/app.registry.d.ts +3 -2
- package/src/app/app.registry.js +3 -1
- package/src/app/app.registry.js.map +1 -1
- package/src/app/instances/app.local.instance.js +2 -2
- package/src/app/instances/app.local.instance.js.map +1 -1
- package/src/auth/auth.registry.d.ts +34 -2
- package/src/auth/auth.registry.js +162 -24
- package/src/auth/auth.registry.js.map +1 -1
- package/src/auth/auth.utils.js +8 -9
- package/src/auth/auth.utils.js.map +1 -1
- package/src/auth/authorization/authorization.class.d.ts +125 -0
- package/src/auth/authorization/authorization.class.js +224 -0
- package/src/auth/authorization/authorization.class.js.map +1 -0
- package/src/auth/authorization/authorization.types.d.ts +300 -0
- package/src/auth/authorization/authorization.types.js +79 -0
- package/src/auth/authorization/authorization.types.js.map +1 -0
- package/src/auth/authorization/index.d.ts +5 -0
- package/src/auth/authorization/index.js +19 -0
- package/src/auth/authorization/index.js.map +1 -0
- package/src/auth/authorization/orchestrated.authorization.d.ts +242 -0
- package/src/auth/authorization/orchestrated.authorization.js +306 -0
- package/src/auth/authorization/orchestrated.authorization.js.map +1 -0
- package/src/auth/authorization/public.authorization.d.ts +91 -0
- package/src/auth/authorization/public.authorization.js +132 -0
- package/src/auth/authorization/public.authorization.js.map +1 -0
- package/src/auth/authorization/transparent.authorization.d.ts +130 -0
- package/src/auth/authorization/transparent.authorization.js +147 -0
- package/src/auth/authorization/transparent.authorization.js.map +1 -0
- package/src/auth/consent/consent.types.d.ts +111 -0
- package/src/auth/consent/consent.types.js +119 -0
- package/src/auth/consent/consent.types.js.map +1 -0
- package/src/auth/consent/index.d.ts +1 -0
- package/src/auth/consent/index.js +13 -0
- package/src/auth/consent/index.js.map +1 -0
- package/src/auth/detection/auth-provider-detection.d.ts +84 -0
- package/src/auth/detection/auth-provider-detection.js +230 -0
- package/src/auth/detection/auth-provider-detection.js.map +1 -0
- package/src/auth/detection/index.d.ts +1 -0
- package/src/auth/detection/index.js +15 -0
- package/src/auth/detection/index.js.map +1 -0
- package/src/auth/flows/auth.verify.flow.d.ts +110 -0
- package/src/auth/flows/auth.verify.flow.js +379 -0
- package/src/auth/flows/auth.verify.flow.js.map +1 -0
- package/src/auth/flows/oauth.authorize.flow.d.ts +118 -164
- package/src/auth/flows/oauth.authorize.flow.js +701 -33
- package/src/auth/flows/oauth.authorize.flow.js.map +1 -1
- package/src/auth/flows/oauth.callback.flow.d.ts +117 -0
- package/src/auth/flows/oauth.callback.flow.js +357 -0
- package/src/auth/flows/oauth.callback.flow.js.map +1 -0
- package/src/auth/flows/oauth.register.flow.d.ts +32 -125
- package/src/auth/flows/oauth.token.flow.d.ts +52 -154
- package/src/auth/flows/oauth.token.flow.js +193 -55
- package/src/auth/flows/oauth.token.flow.js.map +1 -1
- package/src/auth/flows/session.verify.flow.d.ts +66 -321
- package/src/auth/flows/session.verify.flow.js +107 -18
- package/src/auth/flows/session.verify.flow.js.map +1 -1
- package/src/auth/flows/well-known.jwks.flow.d.ts +34 -205
- package/src/auth/flows/well-known.jwks.flow.js +15 -8
- package/src/auth/flows/well-known.jwks.flow.js.map +1 -1
- package/src/auth/flows/well-known.oauth-authorization-server.flow.d.ts +48 -223
- package/src/auth/flows/well-known.oauth-authorization-server.flow.js +2 -3
- package/src/auth/flows/well-known.oauth-authorization-server.flow.js.map +1 -1
- package/src/auth/flows/well-known.prm.flow.d.ts +19 -120
- package/src/auth/flows/well-known.prm.flow.js +3 -4
- package/src/auth/flows/well-known.prm.flow.js.map +1 -1
- package/src/auth/instances/instance.local-primary-auth.d.ts +91 -4
- package/src/auth/instances/instance.local-primary-auth.js +236 -6
- package/src/auth/instances/instance.local-primary-auth.js.map +1 -1
- package/src/auth/instances/instance.remote-primary-auth.d.ts +4 -3
- package/src/auth/instances/instance.remote-primary-auth.js +2 -2
- package/src/auth/instances/instance.remote-primary-auth.js.map +1 -1
- package/src/auth/session/authorization-vault.d.ts +611 -0
- package/src/auth/session/authorization-vault.js +817 -0
- package/src/auth/session/authorization-vault.js.map +1 -0
- package/src/auth/session/authorization.store.d.ts +301 -0
- package/src/auth/session/authorization.store.js +323 -0
- package/src/auth/session/authorization.store.js.map +1 -0
- package/src/auth/session/encrypted-authorization-vault.d.ts +181 -0
- package/src/auth/session/encrypted-authorization-vault.js +493 -0
- package/src/auth/session/encrypted-authorization-vault.js.map +1 -0
- package/src/auth/session/index.d.ts +4 -4
- package/src/auth/session/index.js +11 -7
- package/src/auth/session/index.js.map +1 -1
- package/src/auth/session/session.schema.d.ts +1 -1
- package/src/auth/session/session.service.d.ts +1 -1
- package/src/auth/session/transport-session.manager.d.ts +101 -0
- package/src/auth/session/transport-session.manager.js +300 -0
- package/src/auth/session/transport-session.manager.js.map +1 -0
- package/src/auth/session/transport-session.types.d.ts +457 -0
- package/src/auth/session/transport-session.types.js +110 -0
- package/src/auth/session/transport-session.types.js.map +1 -0
- package/src/auth/session/utils/session-id.utils.d.ts +14 -2
- package/src/auth/session/utils/session-id.utils.js +68 -19
- package/src/auth/session/utils/session-id.utils.js.map +1 -1
- package/src/auth/session/vault-encryption.d.ts +189 -0
- package/src/auth/session/vault-encryption.js +263 -0
- package/src/auth/session/vault-encryption.js.map +1 -0
- package/src/auth/ui/base-layout.d.ts +188 -0
- package/src/auth/ui/base-layout.js +292 -0
- package/src/auth/ui/base-layout.js.map +1 -0
- package/src/auth/ui/htmx-templates.d.ts +135 -0
- package/src/auth/ui/htmx-templates.js +433 -0
- package/src/auth/ui/htmx-templates.js.map +1 -0
- package/src/auth/ui/index.d.ts +11 -0
- package/src/auth/ui/index.js +35 -0
- package/src/auth/ui/index.js.map +1 -0
- package/src/auth/utils/audience.validator.d.ts +129 -0
- package/src/auth/utils/audience.validator.js +196 -0
- package/src/auth/utils/audience.validator.js.map +1 -0
- package/src/auth/utils/index.d.ts +2 -0
- package/src/auth/utils/index.js +7 -0
- package/src/auth/utils/index.js.map +1 -0
- package/src/auth/utils/www-authenticate.utils.d.ts +97 -0
- package/src/auth/utils/www-authenticate.utils.js +183 -0
- package/src/auth/utils/www-authenticate.utils.js.map +1 -0
- package/src/common/common.schema.d.ts +2 -16
- package/src/common/constants.d.ts +3 -0
- package/src/common/constants.js +6 -1
- package/src/common/constants.js.map +1 -1
- package/src/common/decorators/decorator-utils.d.ts +131 -0
- package/src/common/decorators/decorator-utils.js +195 -0
- package/src/common/decorators/decorator-utils.js.map +1 -0
- package/src/common/decorators/front-mcp.decorator.js +3 -2
- package/src/common/decorators/front-mcp.decorator.js.map +1 -1
- package/src/common/decorators/hook.decorator.d.ts +58 -2
- package/src/common/decorators/hook.decorator.js +127 -17
- package/src/common/decorators/hook.decorator.js.map +1 -1
- package/src/common/decorators/plugin.decorator.d.ts +1 -1
- package/src/common/decorators/plugin.decorator.js +11 -10
- package/src/common/decorators/plugin.decorator.js.map +1 -1
- package/src/common/decorators/resource.decorator.d.ts +32 -3
- package/src/common/decorators/resource.decorator.js +46 -4
- package/src/common/decorators/resource.decorator.js.map +1 -1
- package/src/common/decorators/tool.decorator.d.ts +54 -5
- package/src/common/decorators/tool.decorator.js.map +1 -1
- package/src/common/dynamic/dynamic.plugin.d.ts +22 -11
- package/src/common/dynamic/dynamic.plugin.js +7 -1
- package/src/common/dynamic/dynamic.plugin.js.map +1 -1
- package/src/common/entries/prompt.entry.d.ts +46 -2
- package/src/common/entries/prompt.entry.js +10 -0
- package/src/common/entries/prompt.entry.js.map +1 -1
- package/src/common/entries/resource.entry.d.ts +69 -6
- package/src/common/entries/resource.entry.js +27 -3
- package/src/common/entries/resource.entry.js.map +1 -1
- package/src/common/entries/scope.entry.d.ts +5 -1
- package/src/common/entries/scope.entry.js +3 -3
- package/src/common/entries/scope.entry.js.map +1 -1
- package/src/common/flow/flow.utils.d.ts +56 -0
- package/src/common/flow/flow.utils.js +96 -0
- package/src/common/flow/flow.utils.js.map +1 -0
- package/src/common/index.d.ts +2 -2
- package/src/common/index.js +2 -2
- package/src/common/index.js.map +1 -1
- package/src/common/interfaces/execution-context.interface.d.ts +59 -0
- package/src/common/interfaces/execution-context.interface.js +81 -0
- package/src/common/interfaces/execution-context.interface.js.map +1 -0
- package/src/common/interfaces/flow.interface.d.ts +1 -1
- package/src/common/interfaces/flow.interface.js.map +1 -1
- package/src/common/interfaces/index.d.ts +1 -0
- package/src/common/interfaces/index.js +1 -0
- package/src/common/interfaces/index.js.map +1 -1
- package/src/common/interfaces/internal/primary-auth-provider.interface.d.ts +17 -2
- package/src/common/interfaces/internal/primary-auth-provider.interface.js +52 -4
- package/src/common/interfaces/internal/primary-auth-provider.interface.js.map +1 -1
- package/src/common/interfaces/internal/registry.interface.d.ts +16 -2
- package/src/common/interfaces/internal/registry.interface.js.map +1 -1
- package/src/common/interfaces/plugin.interface.js.map +1 -1
- package/src/common/interfaces/prompt.interface.d.ts +53 -4
- package/src/common/interfaces/prompt.interface.js +78 -0
- package/src/common/interfaces/prompt.interface.js.map +1 -1
- package/src/common/interfaces/resource.interface.d.ts +47 -17
- package/src/common/interfaces/resource.interface.js +53 -0
- package/src/common/interfaces/resource.interface.js.map +1 -1
- package/src/common/interfaces/tool.interface.d.ts +39 -22
- package/src/common/interfaces/tool.interface.js +61 -34
- package/src/common/interfaces/tool.interface.js.map +1 -1
- package/src/common/metadata/adapter.metadata.d.ts +1 -9
- package/src/common/metadata/app.metadata.d.ts +425 -730
- package/src/common/metadata/auth-provider.metadata.d.ts +2 -12
- package/src/common/metadata/flow.metadata.d.ts +10 -25
- package/src/common/metadata/front-mcp.metadata.d.ts +602 -1023
- package/src/common/metadata/front-mcp.metadata.js +6 -4
- package/src/common/metadata/front-mcp.metadata.js.map +1 -1
- package/src/common/metadata/hook.metadata.d.ts +1 -1
- package/src/common/metadata/hook.metadata.js.map +1 -1
- package/src/common/metadata/index.d.ts +1 -0
- package/src/common/metadata/index.js +1 -0
- package/src/common/metadata/index.js.map +1 -1
- package/src/common/metadata/logger.metadata.d.ts +1 -9
- package/src/common/metadata/plugin.metadata.d.ts +8 -30
- package/src/common/metadata/prompt.metadata.d.ts +4 -161
- package/src/common/metadata/provider.metadata.d.ts +2 -12
- package/src/common/metadata/resource.metadata.d.ts +6 -98
- package/src/common/metadata/resource.metadata.js +15 -6
- package/src/common/metadata/resource.metadata.js.map +1 -1
- package/src/common/metadata/tool-ui.metadata.d.ts +10 -0
- package/src/common/metadata/tool-ui.metadata.js +12 -0
- package/src/common/metadata/tool-ui.metadata.js.map +1 -0
- package/src/common/metadata/tool.metadata.d.ts +78 -199
- package/src/common/metadata/tool.metadata.js +11 -14
- package/src/common/metadata/tool.metadata.js.map +1 -1
- package/src/common/providers/base-config.provider.d.ts +84 -0
- package/src/common/providers/base-config.provider.js +128 -0
- package/src/common/providers/base-config.provider.js.map +1 -0
- package/src/common/records/plugin.record.d.ts +5 -6
- package/src/common/records/plugin.record.js.map +1 -1
- package/src/common/records/prompt.record.js.map +1 -1
- package/src/common/records/resource.record.d.ts +17 -1
- package/src/common/records/resource.record.js +12 -6
- package/src/common/records/resource.record.js.map +1 -1
- package/src/common/records/tool.record.js.map +1 -1
- package/src/common/schemas/annotated-class.schema.d.ts +9 -9
- package/src/common/schemas/annotated-class.schema.js +92 -27
- package/src/common/schemas/annotated-class.schema.js.map +1 -1
- package/src/common/schemas/http-input.schema.d.ts +6 -30
- package/src/common/schemas/http-output.schema.d.ts +326 -1630
- package/src/common/schemas/http-output.schema.js +39 -1
- package/src/common/schemas/http-output.schema.js.map +1 -1
- package/src/common/tokens/front-mcp.tokens.js +4 -1
- package/src/common/tokens/front-mcp.tokens.js.map +1 -1
- package/src/common/tokens/resource.tokens.d.ts +2 -0
- package/src/common/tokens/resource.tokens.js +4 -1
- package/src/common/tokens/resource.tokens.js.map +1 -1
- package/src/common/tokens/tool.tokens.d.ts +2 -0
- package/src/common/tokens/tool.tokens.js +2 -0
- package/src/common/tokens/tool.tokens.js.map +1 -1
- package/src/common/types/auth/jwt.types.d.ts +5 -31
- package/src/common/types/auth/session.types.d.ts +97 -192
- package/src/common/types/auth/session.types.js +24 -11
- package/src/common/types/auth/session.types.js.map +1 -1
- package/src/common/types/options/auth.options.d.ts +1013 -490
- package/src/common/types/options/auth.options.js +554 -36
- package/src/common/types/options/auth.options.js.map +1 -1
- package/src/common/types/options/http.options.d.ts +1 -9
- package/src/common/types/options/logging.options.d.ts +7 -13
- package/src/common/types/options/logging.options.js +4 -0
- package/src/common/types/options/logging.options.js.map +1 -1
- package/src/common/types/options/server-info.options.d.ts +3 -31
- package/src/common/types/options/session.options.d.ts +90 -10
- package/src/common/types/options/session.options.js +26 -3
- package/src/common/types/options/session.options.js.map +1 -1
- package/src/common/utils/decide-request-intent.utils.d.ts +8 -46
- package/src/common/utils/decide-request-intent.utils.js +88 -23
- package/src/common/utils/decide-request-intent.utils.js.map +1 -1
- package/src/completion/flows/complete.flow.d.ts +74 -0
- package/src/completion/flows/complete.flow.js +199 -0
- package/src/completion/flows/complete.flow.js.map +1 -0
- package/src/errors/authorization-required.error.d.ts +189 -0
- package/src/errors/authorization-required.error.js +274 -0
- package/src/errors/authorization-required.error.js.map +1 -0
- package/src/errors/index.d.ts +2 -1
- package/src/errors/index.js +17 -1
- package/src/errors/index.js.map +1 -1
- package/src/errors/mcp.error.d.ts +101 -1
- package/src/errors/mcp.error.js +147 -2
- package/src/errors/mcp.error.js.map +1 -1
- package/src/flows/flow.instance.js +4 -3
- package/src/flows/flow.instance.js.map +1 -1
- package/src/flows/flow.registry.js.map +1 -1
- package/src/flows/flow.stages.js +14 -11
- package/src/flows/flow.stages.js.map +1 -1
- package/src/front-mcp/front-mcp.providers.d.ts +464 -102
- package/src/front-mcp/front-mcp.providers.js +3 -5
- package/src/front-mcp/front-mcp.providers.js.map +1 -1
- package/src/hooks/hook.instance.d.ts +1 -1
- package/src/hooks/hook.instance.js +5 -2
- package/src/hooks/hook.instance.js.map +1 -1
- package/src/hooks/hook.registry.js +7 -5
- package/src/hooks/hook.registry.js.map +1 -1
- package/src/index.d.ts +28 -9
- package/src/index.js +5 -1
- package/src/index.js.map +1 -1
- package/src/logger/instances/instance.logger.js +3 -2
- package/src/logger/instances/instance.logger.js.map +1 -1
- package/src/logger/logger.registry.js +7 -2
- package/src/logger/logger.registry.js.map +1 -1
- package/src/logging/flows/set-level.flow.d.ts +62 -0
- package/src/logging/flows/set-level.flow.js +108 -0
- package/src/logging/flows/set-level.flow.js.map +1 -0
- package/src/mcp-apps/csp.d.ts +111 -0
- package/src/mcp-apps/csp.js +267 -0
- package/src/mcp-apps/csp.js.map +1 -0
- package/src/mcp-apps/index.d.ts +23 -0
- package/src/mcp-apps/index.js +91 -0
- package/src/mcp-apps/index.js.map +1 -0
- package/src/mcp-apps/schemas.d.ts +403 -0
- package/src/mcp-apps/schemas.js +345 -0
- package/src/mcp-apps/schemas.js.map +1 -0
- package/src/mcp-apps/template.d.ts +94 -0
- package/src/mcp-apps/template.js +419 -0
- package/src/mcp-apps/template.js.map +1 -0
- package/src/mcp-apps/types.d.ts +323 -0
- package/src/mcp-apps/types.js +59 -0
- package/src/mcp-apps/types.js.map +1 -0
- package/src/notification/index.d.ts +1 -0
- package/src/notification/index.js +13 -0
- package/src/notification/index.js.map +1 -0
- package/src/notification/notification.service.d.ts +378 -0
- package/src/notification/notification.service.js +727 -0
- package/src/notification/notification.service.js.map +1 -0
- package/src/plugin/plugin.registry.js +12 -9
- package/src/plugin/plugin.registry.js.map +1 -1
- package/src/prompt/flows/get-prompt.flow.d.ts +153 -0
- package/src/prompt/flows/get-prompt.flow.js +214 -0
- package/src/prompt/flows/get-prompt.flow.js.map +1 -0
- package/src/prompt/flows/prompts-list.flow.d.ts +67 -0
- package/src/prompt/flows/prompts-list.flow.js +176 -0
- package/src/prompt/flows/prompts-list.flow.js.map +1 -0
- package/src/prompt/index.d.ts +7 -0
- package/src/prompt/index.js +17 -0
- package/src/prompt/index.js.map +1 -0
- package/src/prompt/prompt.events.d.ts +17 -0
- package/src/prompt/prompt.events.js +25 -0
- package/src/prompt/prompt.events.js.map +1 -0
- package/src/prompt/prompt.instance.d.ts +30 -0
- package/src/prompt/prompt.instance.js +120 -0
- package/src/prompt/prompt.instance.js.map +1 -0
- package/src/prompt/prompt.registry.d.ts +79 -12
- package/src/prompt/prompt.registry.js +360 -15
- package/src/prompt/prompt.registry.js.map +1 -1
- package/src/prompt/prompt.types.d.ts +26 -0
- package/src/prompt/prompt.types.js +11 -0
- package/src/prompt/prompt.types.js.map +1 -0
- package/src/prompt/prompt.utils.d.ts +26 -0
- package/src/prompt/prompt.utils.js +136 -0
- package/src/prompt/prompt.utils.js.map +1 -0
- package/src/provider/provider.registry.d.ts +12 -5
- package/src/provider/provider.registry.js +30 -138
- package/src/provider/provider.registry.js.map +1 -1
- package/src/regsitry/registry.base.d.ts +1 -1
- package/src/regsitry/registry.base.js.map +1 -1
- package/src/resource/flows/read-resource.flow.d.ts +91 -0
- package/src/resource/flows/read-resource.flow.js +270 -0
- package/src/resource/flows/read-resource.flow.js.map +1 -0
- package/src/resource/flows/resource-templates-list.flow.d.ts +64 -0
- package/src/resource/flows/resource-templates-list.flow.js +191 -0
- package/src/resource/flows/resource-templates-list.flow.js.map +1 -0
- package/src/resource/flows/resources-list.flow.d.ts +64 -0
- package/src/resource/flows/resources-list.flow.js +196 -0
- package/src/resource/flows/resources-list.flow.js.map +1 -0
- package/src/resource/flows/subscribe-resource.flow.d.ts +45 -0
- package/src/resource/flows/subscribe-resource.flow.js +123 -0
- package/src/resource/flows/subscribe-resource.flow.js.map +1 -0
- package/src/resource/flows/unsubscribe-resource.flow.d.ts +44 -0
- package/src/resource/flows/unsubscribe-resource.flow.js +107 -0
- package/src/resource/flows/unsubscribe-resource.flow.js.map +1 -0
- package/src/resource/index.d.ts +8 -0
- package/src/resource/index.js +20 -0
- package/src/resource/index.js.map +1 -0
- package/src/resource/resource.events.d.ts +24 -0
- package/src/resource/resource.events.js +17 -0
- package/src/resource/resource.events.js.map +1 -0
- package/src/resource/resource.instance.d.ts +35 -0
- package/src/resource/resource.instance.js +163 -0
- package/src/resource/resource.instance.js.map +1 -0
- package/src/resource/resource.registry.d.ts +106 -12
- package/src/resource/resource.registry.js +449 -13
- package/src/resource/resource.registry.js.map +1 -1
- package/src/resource/resource.types.d.ts +35 -0
- package/src/resource/resource.types.js +11 -0
- package/src/resource/resource.types.js.map +1 -0
- package/src/resource/resource.utils.d.ts +30 -0
- package/src/resource/resource.utils.js +151 -0
- package/src/resource/resource.utils.js.map +1 -0
- package/src/scope/flows/http.request.flow.d.ts +48 -330
- package/src/scope/flows/http.request.flow.js +306 -78
- package/src/scope/flows/http.request.flow.js.map +1 -1
- package/src/scope/scope.instance.d.ts +12 -0
- package/src/scope/scope.instance.js +145 -15
- package/src/scope/scope.instance.js.map +1 -1
- package/src/tool/flows/call-tool.flow.d.ts +64 -1110
- package/src/tool/flows/call-tool.flow.js +303 -15
- package/src/tool/flows/call-tool.flow.js.map +1 -1
- package/src/tool/flows/tools-list.flow.d.ts +32 -473
- package/src/tool/flows/tools-list.flow.js +111 -10
- package/src/tool/flows/tools-list.flow.js.map +1 -1
- package/src/tool/tool.events.d.ts +8 -1
- package/src/tool/tool.events.js.map +1 -1
- package/src/tool/tool.instance.d.ts +3 -1
- package/src/tool/tool.instance.js +17 -3
- package/src/tool/tool.instance.js.map +1 -1
- package/src/tool/tool.registry.d.ts +7 -1
- package/src/tool/tool.registry.js +26 -10
- package/src/tool/tool.registry.js.map +1 -1
- package/src/tool/tool.types.d.ts +4 -4
- package/src/tool/tool.types.js.map +1 -1
- package/src/tool/tool.utils.d.ts +3 -12
- package/src/tool/tool.utils.js +39 -193
- package/src/tool/tool.utils.js.map +1 -1
- package/src/tool/ui/index.d.ts +22 -0
- package/src/tool/ui/index.js +63 -0
- package/src/tool/ui/index.js.map +1 -0
- package/src/tool/ui/platform-adapters.d.ts +10 -0
- package/src/tool/ui/platform-adapters.js +18 -0
- package/src/tool/ui/platform-adapters.js.map +1 -0
- package/src/tool/ui/template-helpers.d.ts +46 -0
- package/src/tool/ui/template-helpers.js +112 -0
- package/src/tool/ui/template-helpers.js.map +1 -0
- package/src/tool/ui/ui-resource-template.d.ts +34 -0
- package/src/tool/ui/ui-resource-template.js +64 -0
- package/src/tool/ui/ui-resource-template.js.map +1 -0
- package/src/tool/ui/ui-resource.handler.d.ts +74 -0
- package/src/tool/ui/ui-resource.handler.js +129 -0
- package/src/tool/ui/ui-resource.handler.js.map +1 -0
- package/src/transport/adapters/transport.local.adapter.d.ts +2 -2
- package/src/transport/adapters/transport.local.adapter.js +28 -7
- package/src/transport/adapters/transport.local.adapter.js.map +1 -1
- package/src/transport/adapters/transport.sse.adapter.d.ts +2 -2
- package/src/transport/adapters/transport.sse.adapter.js +4 -3
- package/src/transport/adapters/transport.sse.adapter.js.map +1 -1
- package/src/transport/adapters/transport.streamable-http.adapter.d.ts +10 -3
- package/src/transport/adapters/transport.streamable-http.adapter.js +54 -8
- package/src/transport/adapters/transport.streamable-http.adapter.js.map +1 -1
- package/src/transport/flows/handle.sse.flow.d.ts +29 -63
- package/src/transport/flows/handle.sse.flow.js +78 -10
- package/src/transport/flows/handle.sse.flow.js.map +1 -1
- package/src/transport/flows/handle.stateless-http.flow.d.ts +29 -0
- package/src/transport/flows/handle.stateless-http.flow.js +102 -0
- package/src/transport/flows/handle.stateless-http.flow.js.map +1 -0
- package/src/transport/flows/handle.streamable-http.flow.d.ts +32 -64
- package/src/transport/flows/handle.streamable-http.flow.js +158 -26
- package/src/transport/flows/handle.streamable-http.flow.js.map +1 -1
- package/src/transport/legacy/legacy.sse.tranporter.d.ts +9 -0
- package/src/transport/legacy/legacy.sse.tranporter.js +17 -2
- package/src/transport/legacy/legacy.sse.tranporter.js.map +1 -1
- package/src/transport/mcp-handlers/call-tool-request.handler.js +27 -1
- package/src/transport/mcp-handlers/call-tool-request.handler.js.map +1 -1
- package/src/transport/mcp-handlers/complete-request.handler.d.ts +69 -0
- package/src/transport/mcp-handlers/complete-request.handler.js +11 -0
- package/src/transport/mcp-handlers/complete-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/get-prompt-request.handler.d.ts +87 -0
- package/src/transport/mcp-handlers/get-prompt-request.handler.js +11 -0
- package/src/transport/mcp-handlers/get-prompt-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/index.d.ts +517 -208
- package/src/transport/mcp-handlers/index.js +39 -2
- package/src/transport/mcp-handlers/index.js.map +1 -1
- package/src/transport/mcp-handlers/initialize-request.handler.d.ts +1 -1
- package/src/transport/mcp-handlers/initialize-request.handler.js +73 -7
- package/src/transport/mcp-handlers/initialize-request.handler.js.map +1 -1
- package/src/transport/mcp-handlers/list-prompts-request.handler.d.ts +54 -0
- package/src/transport/mcp-handlers/list-prompts-request.handler.js +11 -0
- package/src/transport/mcp-handlers/list-prompts-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +51 -0
- package/src/transport/mcp-handlers/list-resource-templates-request.handler.js +12 -0
- package/src/transport/mcp-handlers/list-resource-templates-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/list-resources-request.handler.d.ts +51 -0
- package/src/transport/mcp-handlers/list-resources-request.handler.js +12 -0
- package/src/transport/mcp-handlers/list-resources-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/list-tools-request.handler.d.ts +19 -146
- package/src/transport/mcp-handlers/logging-set-level-request.handler.d.ts +46 -0
- package/src/transport/mcp-handlers/logging-set-level-request.handler.js +34 -0
- package/src/transport/mcp-handlers/logging-set-level-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/mcp-handlers.types.d.ts +3 -7
- package/src/transport/mcp-handlers/mcp-handlers.types.js.map +1 -1
- package/src/transport/mcp-handlers/read-resource-request.handler.d.ts +46 -0
- package/src/transport/mcp-handlers/read-resource-request.handler.js +12 -0
- package/src/transport/mcp-handlers/read-resource-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts +11 -0
- package/src/transport/mcp-handlers/roots-list-changed-notification.handler.js +26 -0
- package/src/transport/mcp-handlers/roots-list-changed-notification.handler.js.map +1 -0
- package/src/transport/mcp-handlers/subscribe-request.handler.d.ts +37 -0
- package/src/transport/mcp-handlers/subscribe-request.handler.js +34 -0
- package/src/transport/mcp-handlers/subscribe-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/unsubscribe-request.handler.d.ts +37 -0
- package/src/transport/mcp-handlers/unsubscribe-request.handler.js +34 -0
- package/src/transport/mcp-handlers/unsubscribe-request.handler.js.map +1 -0
- package/src/transport/transport.local.js +7 -2
- package/src/transport/transport.local.js.map +1 -1
- package/src/transport/transport.registry.d.ts +30 -0
- package/src/transport/transport.registry.js +84 -1
- package/src/transport/transport.registry.js.map +1 -1
- package/src/transport/transport.types.d.ts +3 -3
- package/src/transport/transport.types.js.map +1 -1
- package/src/utils/content.utils.d.ts +48 -0
- package/src/utils/content.utils.js +194 -0
- package/src/utils/content.utils.js.map +1 -0
- package/src/utils/index.d.ts +8 -0
- package/src/utils/index.js +55 -0
- package/src/utils/index.js.map +1 -0
- package/src/utils/lineage.utils.d.ts +40 -0
- package/src/utils/lineage.utils.js +82 -0
- package/src/utils/lineage.utils.js.map +1 -0
- package/src/utils/naming.utils.d.ts +46 -0
- package/src/utils/naming.utils.js +136 -0
- package/src/utils/naming.utils.js.map +1 -0
- package/src/utils/types.utils.d.ts +2 -2
- package/src/utils/types.utils.js.map +1 -1
- package/src/utils/uri-template.utils.d.ts +57 -0
- package/src/utils/uri-template.utils.js +113 -0
- package/src/utils/uri-template.utils.js.map +1 -0
- package/src/utils/uri-validation.utils.d.ts +40 -0
- package/src/utils/uri-validation.utils.js +76 -0
- package/src/utils/uri-validation.utils.js.map +1 -0
- package/src/__test-utils__/fixtures/hook.fixtures.d.ts +0 -46
- package/src/__test-utils__/fixtures/hook.fixtures.js +0 -114
- package/src/__test-utils__/fixtures/hook.fixtures.js.map +0 -1
- package/src/__test-utils__/fixtures/index.d.ts +0 -7
- package/src/__test-utils__/fixtures/index.js +0 -11
- package/src/__test-utils__/fixtures/index.js.map +0 -1
- package/src/__test-utils__/fixtures/plugin.fixtures.d.ts +0 -46
- package/src/__test-utils__/fixtures/plugin.fixtures.js +0 -127
- package/src/__test-utils__/fixtures/plugin.fixtures.js.map +0 -1
- package/src/__test-utils__/fixtures/provider.fixtures.d.ts +0 -69
- package/src/__test-utils__/fixtures/provider.fixtures.js +0 -131
- package/src/__test-utils__/fixtures/provider.fixtures.js.map +0 -1
- package/src/__test-utils__/fixtures/scope.fixtures.d.ts +0 -14
- package/src/__test-utils__/fixtures/scope.fixtures.js +0 -59
- package/src/__test-utils__/fixtures/scope.fixtures.js.map +0 -1
- package/src/__test-utils__/fixtures/tool.fixtures.d.ts +0 -36
- package/src/__test-utils__/fixtures/tool.fixtures.js +0 -91
- package/src/__test-utils__/fixtures/tool.fixtures.js.map +0 -1
- package/src/__test-utils__/helpers/assertion.helpers.d.ts +0 -45
- package/src/__test-utils__/helpers/assertion.helpers.js +0 -153
- package/src/__test-utils__/helpers/assertion.helpers.js.map +0 -1
- package/src/__test-utils__/helpers/async.helpers.d.ts +0 -48
- package/src/__test-utils__/helpers/async.helpers.js +0 -112
- package/src/__test-utils__/helpers/async.helpers.js.map +0 -1
- package/src/__test-utils__/helpers/index.d.ts +0 -6
- package/src/__test-utils__/helpers/index.js +0 -10
- package/src/__test-utils__/helpers/index.js.map +0 -1
- package/src/__test-utils__/helpers/setup.helpers.d.ts +0 -54
- package/src/__test-utils__/helpers/setup.helpers.js +0 -106
- package/src/__test-utils__/helpers/setup.helpers.js.map +0 -1
- package/src/__test-utils__/index.d.ts +0 -9
- package/src/__test-utils__/index.js +0 -14
- package/src/__test-utils__/index.js.map +0 -1
- package/src/__test-utils__/mocks/flow-instance.mock.d.ts +0 -50
- package/src/__test-utils__/mocks/flow-instance.mock.js +0 -72
- package/src/__test-utils__/mocks/flow-instance.mock.js.map +0 -1
- package/src/__test-utils__/mocks/hook-registry.mock.d.ts +0 -25
- package/src/__test-utils__/mocks/hook-registry.mock.js +0 -65
- package/src/__test-utils__/mocks/hook-registry.mock.js.map +0 -1
- package/src/__test-utils__/mocks/index.d.ts +0 -8
- package/src/__test-utils__/mocks/index.js +0 -12
- package/src/__test-utils__/mocks/index.js.map +0 -1
- package/src/__test-utils__/mocks/plugin-registry.mock.d.ts +0 -43
- package/src/__test-utils__/mocks/plugin-registry.mock.js +0 -70
- package/src/__test-utils__/mocks/plugin-registry.mock.js.map +0 -1
- package/src/__test-utils__/mocks/provider-registry.mock.d.ts +0 -39
- package/src/__test-utils__/mocks/provider-registry.mock.js +0 -72
- package/src/__test-utils__/mocks/provider-registry.mock.js.map +0 -1
- package/src/__test-utils__/mocks/tool-registry.mock.d.ts +0 -43
- package/src/__test-utils__/mocks/tool-registry.mock.js +0 -79
- package/src/__test-utils__/mocks/tool-registry.mock.js.map +0 -1
- package/src/auth/path.utils.d.ts +0 -20
- package/src/auth/path.utils.js +0 -71
- package/src/auth/path.utils.js.map +0 -1
- package/src/common/decorators-old/async-with.decorator.d.ts +0 -10
- package/src/common/decorators-old/async-with.decorator.js +0 -24
- package/src/common/decorators-old/async-with.decorator.js.map +0 -1
- package/src/common/decorators-old/auth-hook.decorator.d.ts +0 -14
- package/src/common/decorators-old/auth-hook.decorator.js +0 -27
- package/src/common/decorators-old/auth-hook.decorator.js.map +0 -1
- package/src/common/decorators-old/session-hook.decorator.d.ts +0 -14
- package/src/common/decorators-old/session-hook.decorator.js +0 -27
- package/src/common/decorators-old/session-hook.decorator.js.map +0 -1
|
@@ -1,37 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function createMcpHandlers(options: McpHandlerOptions): (McpHandler<{
|
|
1
|
+
import { McpHandlerOptions } from './mcp-handlers.types';
|
|
2
|
+
export declare function createMcpHandlers(options: McpHandlerOptions): (import("./mcp-handlers.types").McpHandler<{
|
|
3
|
+
method: "initialize";
|
|
3
4
|
params: {
|
|
5
|
+
[x: string]: unknown;
|
|
4
6
|
protocolVersion: string;
|
|
5
7
|
capabilities: {
|
|
6
8
|
experimental?: {
|
|
7
9
|
[x: string]: object;
|
|
8
10
|
} | undefined;
|
|
9
|
-
sampling?:
|
|
11
|
+
sampling?: {
|
|
12
|
+
context?: object | undefined;
|
|
13
|
+
tools?: object | undefined;
|
|
14
|
+
} | undefined;
|
|
10
15
|
elicitation?: {
|
|
11
16
|
[x: string]: unknown;
|
|
12
|
-
|
|
17
|
+
form?: {
|
|
18
|
+
[x: string]: unknown;
|
|
19
|
+
applyDefaults?: boolean | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
url?: object | undefined;
|
|
13
22
|
} | undefined;
|
|
14
23
|
roots?: {
|
|
15
|
-
listChanged?: boolean | undefined
|
|
24
|
+
listChanged?: boolean | undefined;
|
|
16
25
|
} | undefined;
|
|
17
26
|
};
|
|
18
27
|
clientInfo: {
|
|
19
|
-
name: string;
|
|
20
28
|
version: string;
|
|
29
|
+
name: string;
|
|
30
|
+
websiteUrl?: string | undefined;
|
|
21
31
|
icons?: {
|
|
22
32
|
src: string;
|
|
23
|
-
mimeType?: string | undefined
|
|
33
|
+
mimeType?: string | undefined;
|
|
24
34
|
sizes?: string[] | undefined;
|
|
25
35
|
}[] | undefined;
|
|
26
|
-
title?: string | undefined
|
|
27
|
-
websiteUrl?: string | undefined | undefined;
|
|
36
|
+
title?: string | undefined;
|
|
28
37
|
};
|
|
29
38
|
_meta?: {
|
|
30
39
|
[x: string]: unknown;
|
|
31
40
|
progressToken?: string | number | undefined;
|
|
32
41
|
} | undefined;
|
|
33
42
|
};
|
|
34
|
-
method: "initialize";
|
|
35
43
|
}, {
|
|
36
44
|
[x: string]: unknown;
|
|
37
45
|
protocolVersion: string;
|
|
@@ -39,45 +47,35 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (McpHandl
|
|
|
39
47
|
experimental?: {
|
|
40
48
|
[x: string]: object;
|
|
41
49
|
} | undefined;
|
|
42
|
-
logging?: object | undefined
|
|
43
|
-
completions?: object | undefined
|
|
50
|
+
logging?: object | undefined;
|
|
51
|
+
completions?: object | undefined;
|
|
44
52
|
prompts?: {
|
|
45
|
-
listChanged?: boolean | undefined
|
|
53
|
+
listChanged?: boolean | undefined;
|
|
46
54
|
} | undefined;
|
|
47
55
|
resources?: {
|
|
48
|
-
|
|
49
|
-
|
|
56
|
+
subscribe?: boolean | undefined;
|
|
57
|
+
listChanged?: boolean | undefined;
|
|
50
58
|
} | undefined;
|
|
51
59
|
tools?: {
|
|
52
|
-
listChanged?: boolean | undefined
|
|
60
|
+
listChanged?: boolean | undefined;
|
|
53
61
|
} | undefined;
|
|
54
62
|
};
|
|
55
63
|
serverInfo: {
|
|
56
|
-
name: string;
|
|
57
64
|
version: string;
|
|
65
|
+
name: string;
|
|
66
|
+
websiteUrl?: string | undefined;
|
|
58
67
|
icons?: {
|
|
59
68
|
src: string;
|
|
60
|
-
mimeType?: string | undefined
|
|
69
|
+
mimeType?: string | undefined;
|
|
61
70
|
sizes?: string[] | undefined;
|
|
62
71
|
}[] | undefined;
|
|
63
|
-
title?: string | undefined
|
|
64
|
-
websiteUrl?: string | undefined | undefined;
|
|
72
|
+
title?: string | undefined;
|
|
65
73
|
};
|
|
66
74
|
_meta?: {
|
|
67
75
|
[x: string]: unknown;
|
|
68
76
|
} | undefined;
|
|
69
77
|
instructions?: string | undefined;
|
|
70
|
-
}, import("zod").ZodObject<{
|
|
71
|
-
method: import("zod").ZodLiteral<string>;
|
|
72
|
-
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
73
|
-
method: string;
|
|
74
|
-
}, {
|
|
75
|
-
method: string;
|
|
76
|
-
}>, import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
77
|
-
[x: string]: any;
|
|
78
|
-
}, {
|
|
79
|
-
[x: string]: any;
|
|
80
|
-
}>, {
|
|
78
|
+
}, import("zod").ZodObject<any, import("zod/v4/core").$strip>, import("zod").ZodObject<any, import("zod/v4/core").$strip>, {
|
|
81
79
|
method: string;
|
|
82
80
|
params?: {
|
|
83
81
|
[x: string]: unknown;
|
|
@@ -85,7 +83,7 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (McpHandl
|
|
|
85
83
|
[x: string]: unknown;
|
|
86
84
|
} | undefined;
|
|
87
85
|
} | undefined;
|
|
88
|
-
}> | McpHandler<{
|
|
86
|
+
}> | import("./mcp-handlers.types").McpHandler<{
|
|
89
87
|
method: "notifications/initialized";
|
|
90
88
|
params?: {
|
|
91
89
|
[x: string]: unknown;
|
|
@@ -98,17 +96,7 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (McpHandl
|
|
|
98
96
|
_meta?: {
|
|
99
97
|
[x: string]: unknown;
|
|
100
98
|
} | undefined;
|
|
101
|
-
}, import("zod").ZodObject<{
|
|
102
|
-
method: import("zod").ZodLiteral<string>;
|
|
103
|
-
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
104
|
-
method: string;
|
|
105
|
-
}, {
|
|
106
|
-
method: string;
|
|
107
|
-
}>, import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
108
|
-
[x: string]: any;
|
|
109
|
-
}, {
|
|
110
|
-
[x: string]: any;
|
|
111
|
-
}>, {
|
|
99
|
+
}, import("zod").ZodObject<any, import("zod/v4/core").$strip>, import("zod").ZodObject<any, import("zod/v4/core").$strip>, {
|
|
112
100
|
method: string;
|
|
113
101
|
params?: {
|
|
114
102
|
[x: string]: unknown;
|
|
@@ -118,54 +106,23 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (McpHandl
|
|
|
118
106
|
} | undefined;
|
|
119
107
|
}> | {
|
|
120
108
|
requestSchema: import("zod").ZodObject<{
|
|
121
|
-
params: import("zod").ZodOptional<import("zod").ZodObject<
|
|
109
|
+
params: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
122
110
|
_meta: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
123
|
-
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
124
|
-
},
|
|
125
|
-
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
126
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
127
|
-
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
128
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
129
|
-
}, {
|
|
111
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
112
|
+
}, import("zod/v4/core").$loose>>;
|
|
130
113
|
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
131
|
-
}
|
|
132
|
-
_meta?: import("zod").objectOutputType<{
|
|
133
|
-
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
134
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
135
|
-
cursor?: string | undefined;
|
|
136
|
-
}, {
|
|
137
|
-
_meta?: import("zod").objectInputType<{
|
|
138
|
-
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
139
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
140
|
-
cursor?: string | undefined;
|
|
141
|
-
}>>;
|
|
142
|
-
} & {
|
|
114
|
+
}, import("zod/v4/core").$loose>>;
|
|
143
115
|
method: import("zod").ZodLiteral<"tools/list">;
|
|
144
|
-
},
|
|
145
|
-
method: "tools/list";
|
|
146
|
-
params?: {
|
|
147
|
-
_meta?: import("zod").objectOutputType<{
|
|
148
|
-
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
149
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
150
|
-
cursor?: string | undefined;
|
|
151
|
-
} | undefined;
|
|
152
|
-
}, {
|
|
153
|
-
method: "tools/list";
|
|
154
|
-
params?: {
|
|
155
|
-
_meta?: import("zod").objectInputType<{
|
|
156
|
-
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
157
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
158
|
-
cursor?: string | undefined;
|
|
159
|
-
} | undefined;
|
|
160
|
-
}>;
|
|
116
|
+
}, import("zod/v4/core").$strip>;
|
|
161
117
|
handler: (request: import("@modelcontextprotocol/sdk/types.js").ListToolsRequest, ctx: import("./mcp-handlers.types").McpRequestHandler<{
|
|
162
118
|
method: "tools/list";
|
|
163
119
|
params?: {
|
|
120
|
+
[x: string]: unknown;
|
|
164
121
|
_meta?: {
|
|
165
122
|
[x: string]: unknown;
|
|
166
123
|
progressToken?: string | number | undefined;
|
|
167
124
|
} | undefined;
|
|
168
|
-
cursor?: string | undefined
|
|
125
|
+
cursor?: string | undefined;
|
|
169
126
|
} | undefined;
|
|
170
127
|
}, {
|
|
171
128
|
method: string;
|
|
@@ -175,99 +132,22 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (McpHandl
|
|
|
175
132
|
[x: string]: unknown;
|
|
176
133
|
} | undefined;
|
|
177
134
|
} | undefined;
|
|
178
|
-
}>) => Promise<
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
182
|
-
} & {
|
|
183
|
-
tools: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
184
|
-
name: import("zod").ZodString;
|
|
185
|
-
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
186
|
-
}, {
|
|
187
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
188
|
-
inputSchema: import("zod").ZodObject<{
|
|
189
|
-
type: import("zod").ZodLiteral<"object">;
|
|
190
|
-
properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<object, import("zod").ZodTypeDef, object>>>;
|
|
191
|
-
required: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
192
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
193
|
-
type: "object";
|
|
194
|
-
required?: string[] | undefined;
|
|
195
|
-
properties?: Record<string, object> | undefined;
|
|
196
|
-
}, {
|
|
197
|
-
type: "object";
|
|
198
|
-
required?: string[] | undefined;
|
|
199
|
-
properties?: Record<string, object> | undefined;
|
|
200
|
-
}>;
|
|
201
|
-
outputSchema: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
202
|
-
type: import("zod").ZodLiteral<"object">;
|
|
203
|
-
properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<object, import("zod").ZodTypeDef, object>>>;
|
|
204
|
-
required: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
205
|
-
additionalProperties: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
206
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
207
|
-
type: "object";
|
|
208
|
-
required?: string[] | undefined;
|
|
209
|
-
properties?: Record<string, object> | undefined;
|
|
210
|
-
additionalProperties?: boolean | undefined;
|
|
211
|
-
}, {
|
|
212
|
-
type: "object";
|
|
213
|
-
required?: string[] | undefined;
|
|
214
|
-
properties?: Record<string, object> | undefined;
|
|
215
|
-
additionalProperties?: boolean | undefined;
|
|
216
|
-
}>>;
|
|
217
|
-
annotations: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
218
|
-
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
219
|
-
readOnlyHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
220
|
-
destructiveHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
221
|
-
idempotentHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
222
|
-
openWorldHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
223
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
224
|
-
title?: string | undefined;
|
|
225
|
-
readOnlyHint?: boolean | undefined;
|
|
226
|
-
destructiveHint?: boolean | undefined;
|
|
227
|
-
idempotentHint?: boolean | undefined;
|
|
228
|
-
openWorldHint?: boolean | undefined;
|
|
229
|
-
}, {
|
|
230
|
-
title?: string | undefined;
|
|
231
|
-
readOnlyHint?: boolean | undefined;
|
|
232
|
-
destructiveHint?: boolean | undefined;
|
|
233
|
-
idempotentHint?: boolean | undefined;
|
|
234
|
-
openWorldHint?: boolean | undefined;
|
|
235
|
-
}>>;
|
|
236
|
-
_meta: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
237
|
-
}>, {
|
|
238
|
-
icons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
239
|
-
src: import("zod").ZodString;
|
|
240
|
-
mimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
241
|
-
sizes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
242
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
243
|
-
src: string;
|
|
244
|
-
mimeType?: string | undefined;
|
|
245
|
-
sizes?: string[] | undefined;
|
|
246
|
-
}, {
|
|
247
|
-
src: string;
|
|
248
|
-
mimeType?: string | undefined;
|
|
249
|
-
sizes?: string[] | undefined;
|
|
250
|
-
}>, "many">>;
|
|
251
|
-
}>, "strip", import("zod").ZodTypeAny, {
|
|
252
|
-
name: string;
|
|
135
|
+
}>) => Promise<{
|
|
136
|
+
[x: string]: unknown;
|
|
137
|
+
tools: {
|
|
253
138
|
inputSchema: {
|
|
139
|
+
[x: string]: unknown;
|
|
254
140
|
type: "object";
|
|
255
|
-
required?: string[] | undefined;
|
|
256
141
|
properties?: Record<string, object> | undefined;
|
|
142
|
+
required?: string[] | undefined;
|
|
257
143
|
};
|
|
258
|
-
|
|
259
|
-
icons?: {
|
|
260
|
-
src: string;
|
|
261
|
-
mimeType?: string | undefined;
|
|
262
|
-
sizes?: string[] | undefined;
|
|
263
|
-
}[] | undefined;
|
|
264
|
-
title?: string | undefined;
|
|
144
|
+
name: string;
|
|
265
145
|
description?: string | undefined;
|
|
266
146
|
outputSchema?: {
|
|
147
|
+
[x: string]: unknown;
|
|
267
148
|
type: "object";
|
|
268
|
-
required?: string[] | undefined;
|
|
269
149
|
properties?: Record<string, object> | undefined;
|
|
270
|
-
|
|
150
|
+
required?: string[] | undefined;
|
|
271
151
|
} | undefined;
|
|
272
152
|
annotations?: {
|
|
273
153
|
title?: string | undefined;
|
|
@@ -276,13 +156,6 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (McpHandl
|
|
|
276
156
|
idempotentHint?: boolean | undefined;
|
|
277
157
|
openWorldHint?: boolean | undefined;
|
|
278
158
|
} | undefined;
|
|
279
|
-
}, {
|
|
280
|
-
name: string;
|
|
281
|
-
inputSchema: {
|
|
282
|
-
type: "object";
|
|
283
|
-
required?: string[] | undefined;
|
|
284
|
-
properties?: Record<string, object> | undefined;
|
|
285
|
-
};
|
|
286
159
|
_meta?: Record<string, unknown> | undefined;
|
|
287
160
|
icons?: {
|
|
288
161
|
src: string;
|
|
@@ -290,24 +163,14 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (McpHandl
|
|
|
290
163
|
sizes?: string[] | undefined;
|
|
291
164
|
}[] | undefined;
|
|
292
165
|
title?: string | undefined;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
} | undefined;
|
|
300
|
-
annotations?: {
|
|
301
|
-
title?: string | undefined;
|
|
302
|
-
readOnlyHint?: boolean | undefined;
|
|
303
|
-
destructiveHint?: boolean | undefined;
|
|
304
|
-
idempotentHint?: boolean | undefined;
|
|
305
|
-
openWorldHint?: boolean | undefined;
|
|
306
|
-
} | undefined;
|
|
307
|
-
}>, "many">;
|
|
308
|
-
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
309
|
-
} | McpHandler<{
|
|
166
|
+
}[];
|
|
167
|
+
_meta?: Record<string, unknown> | undefined;
|
|
168
|
+
nextCursor?: string | undefined;
|
|
169
|
+
}>;
|
|
170
|
+
} | import("./mcp-handlers.types").McpHandler<{
|
|
171
|
+
method: "tools/call";
|
|
310
172
|
params: {
|
|
173
|
+
[x: string]: unknown;
|
|
311
174
|
name: string;
|
|
312
175
|
_meta?: {
|
|
313
176
|
[x: string]: unknown;
|
|
@@ -317,7 +180,6 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (McpHandl
|
|
|
317
180
|
[x: string]: unknown;
|
|
318
181
|
} | undefined;
|
|
319
182
|
};
|
|
320
|
-
method: "tools/call";
|
|
321
183
|
}, {
|
|
322
184
|
[x: string]: unknown;
|
|
323
185
|
content: ({
|
|
@@ -341,36 +203,36 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (McpHandl
|
|
|
341
203
|
[x: string]: unknown;
|
|
342
204
|
} | undefined;
|
|
343
205
|
} | {
|
|
344
|
-
type: "resource_link";
|
|
345
|
-
name: string;
|
|
346
206
|
uri: string;
|
|
207
|
+
name: string;
|
|
208
|
+
type: "resource_link";
|
|
209
|
+
description?: string | undefined;
|
|
210
|
+
mimeType?: string | undefined;
|
|
347
211
|
_meta?: {
|
|
348
212
|
[x: string]: unknown;
|
|
349
213
|
} | undefined;
|
|
350
|
-
mimeType?: string | undefined | undefined;
|
|
351
214
|
icons?: {
|
|
352
215
|
src: string;
|
|
353
|
-
mimeType?: string | undefined
|
|
216
|
+
mimeType?: string | undefined;
|
|
354
217
|
sizes?: string[] | undefined;
|
|
355
218
|
}[] | undefined;
|
|
356
|
-
title?: string | undefined
|
|
357
|
-
description?: string | undefined | undefined;
|
|
219
|
+
title?: string | undefined;
|
|
358
220
|
} | {
|
|
359
221
|
type: "resource";
|
|
360
222
|
resource: {
|
|
361
223
|
uri: string;
|
|
362
224
|
text: string;
|
|
225
|
+
mimeType?: string | undefined;
|
|
363
226
|
_meta?: {
|
|
364
227
|
[x: string]: unknown;
|
|
365
228
|
} | undefined;
|
|
366
|
-
mimeType?: string | undefined | undefined;
|
|
367
229
|
} | {
|
|
368
230
|
uri: string;
|
|
369
231
|
blob: string;
|
|
232
|
+
mimeType?: string | undefined;
|
|
370
233
|
_meta?: {
|
|
371
234
|
[x: string]: unknown;
|
|
372
235
|
} | undefined;
|
|
373
|
-
mimeType?: string | undefined | undefined;
|
|
374
236
|
};
|
|
375
237
|
_meta?: {
|
|
376
238
|
[x: string]: unknown;
|
|
@@ -383,17 +245,464 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (McpHandl
|
|
|
383
245
|
[x: string]: unknown;
|
|
384
246
|
} | undefined;
|
|
385
247
|
isError?: boolean | undefined;
|
|
386
|
-
}, import("zod").ZodObject<{
|
|
387
|
-
method: import("zod").ZodLiteral<string>;
|
|
388
|
-
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
389
|
-
method: string;
|
|
390
|
-
}, {
|
|
248
|
+
}, import("zod").ZodObject<any, import("zod/v4/core").$strip>, import("zod").ZodObject<any, import("zod/v4/core").$strip>, {
|
|
391
249
|
method: string;
|
|
392
|
-
|
|
393
|
-
|
|
250
|
+
params?: {
|
|
251
|
+
[x: string]: unknown;
|
|
252
|
+
_meta?: {
|
|
253
|
+
[x: string]: unknown;
|
|
254
|
+
} | undefined;
|
|
255
|
+
} | undefined;
|
|
256
|
+
}> | {
|
|
257
|
+
requestSchema: import("zod").ZodObject<{
|
|
258
|
+
params: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
259
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
260
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
261
|
+
}, import("zod/v4/core").$loose>>;
|
|
262
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
263
|
+
}, import("zod/v4/core").$loose>>;
|
|
264
|
+
method: import("zod").ZodLiteral<"resources/list">;
|
|
265
|
+
}, import("zod/v4/core").$strip>;
|
|
266
|
+
handler: (request: import("@modelcontextprotocol/sdk/types.js").ListResourcesRequest, ctx: import("./mcp-handlers.types").McpRequestHandler<{
|
|
267
|
+
method: "resources/list";
|
|
268
|
+
params?: {
|
|
269
|
+
[x: string]: unknown;
|
|
270
|
+
_meta?: {
|
|
271
|
+
[x: string]: unknown;
|
|
272
|
+
progressToken?: string | number | undefined;
|
|
273
|
+
} | undefined;
|
|
274
|
+
cursor?: string | undefined;
|
|
275
|
+
} | undefined;
|
|
276
|
+
}, {
|
|
277
|
+
method: string;
|
|
278
|
+
params?: {
|
|
279
|
+
[x: string]: unknown;
|
|
280
|
+
_meta?: {
|
|
281
|
+
[x: string]: unknown;
|
|
282
|
+
} | undefined;
|
|
283
|
+
} | undefined;
|
|
284
|
+
}>) => Promise<{
|
|
285
|
+
[x: string]: unknown;
|
|
286
|
+
resources: {
|
|
287
|
+
uri: string;
|
|
288
|
+
name: string;
|
|
289
|
+
description?: string | undefined;
|
|
290
|
+
mimeType?: string | undefined;
|
|
291
|
+
_meta?: {
|
|
292
|
+
[x: string]: unknown;
|
|
293
|
+
} | undefined;
|
|
294
|
+
icons?: {
|
|
295
|
+
src: string;
|
|
296
|
+
mimeType?: string | undefined;
|
|
297
|
+
sizes?: string[] | undefined;
|
|
298
|
+
}[] | undefined;
|
|
299
|
+
title?: string | undefined;
|
|
300
|
+
}[];
|
|
301
|
+
_meta?: Record<string, unknown> | undefined;
|
|
302
|
+
nextCursor?: string | undefined;
|
|
303
|
+
}>;
|
|
304
|
+
} | {
|
|
305
|
+
requestSchema: import("zod").ZodObject<{
|
|
306
|
+
params: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
307
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
308
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
309
|
+
}, import("zod/v4/core").$loose>>;
|
|
310
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
311
|
+
}, import("zod/v4/core").$loose>>;
|
|
312
|
+
method: import("zod").ZodLiteral<"resources/templates/list">;
|
|
313
|
+
}, import("zod/v4/core").$strip>;
|
|
314
|
+
handler: (request: import("@modelcontextprotocol/sdk/types.js").ListResourceTemplatesRequest, ctx: import("./mcp-handlers.types").McpRequestHandler<{
|
|
315
|
+
method: "resources/templates/list";
|
|
316
|
+
params?: {
|
|
317
|
+
[x: string]: unknown;
|
|
318
|
+
_meta?: {
|
|
319
|
+
[x: string]: unknown;
|
|
320
|
+
progressToken?: string | number | undefined;
|
|
321
|
+
} | undefined;
|
|
322
|
+
cursor?: string | undefined;
|
|
323
|
+
} | undefined;
|
|
324
|
+
}, {
|
|
325
|
+
method: string;
|
|
326
|
+
params?: {
|
|
327
|
+
[x: string]: unknown;
|
|
328
|
+
_meta?: {
|
|
329
|
+
[x: string]: unknown;
|
|
330
|
+
} | undefined;
|
|
331
|
+
} | undefined;
|
|
332
|
+
}>) => Promise<{
|
|
333
|
+
[x: string]: unknown;
|
|
334
|
+
resourceTemplates: {
|
|
335
|
+
uriTemplate: string;
|
|
336
|
+
name: string;
|
|
337
|
+
description?: string | undefined;
|
|
338
|
+
mimeType?: string | undefined;
|
|
339
|
+
_meta?: {
|
|
340
|
+
[x: string]: unknown;
|
|
341
|
+
} | undefined;
|
|
342
|
+
icons?: {
|
|
343
|
+
src: string;
|
|
344
|
+
mimeType?: string | undefined;
|
|
345
|
+
sizes?: string[] | undefined;
|
|
346
|
+
}[] | undefined;
|
|
347
|
+
title?: string | undefined;
|
|
348
|
+
}[];
|
|
349
|
+
_meta?: Record<string, unknown> | undefined;
|
|
350
|
+
nextCursor?: string | undefined;
|
|
351
|
+
}>;
|
|
352
|
+
} | {
|
|
353
|
+
requestSchema: import("zod").ZodObject<{
|
|
354
|
+
method: import("zod").ZodLiteral<"resources/read">;
|
|
355
|
+
params: import("zod").ZodObject<{
|
|
356
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
357
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
358
|
+
}, import("zod/v4/core").$loose>>;
|
|
359
|
+
uri: import("zod").ZodString;
|
|
360
|
+
}, import("zod/v4/core").$loose>;
|
|
361
|
+
}, import("zod/v4/core").$strip>;
|
|
362
|
+
handler: (request: import("@modelcontextprotocol/sdk/types.js").ReadResourceRequest, ctx: import("./mcp-handlers.types").McpRequestHandler<{
|
|
363
|
+
method: "resources/read";
|
|
364
|
+
params: {
|
|
365
|
+
[x: string]: unknown;
|
|
366
|
+
uri: string;
|
|
367
|
+
_meta?: {
|
|
368
|
+
[x: string]: unknown;
|
|
369
|
+
progressToken?: string | number | undefined;
|
|
370
|
+
} | undefined;
|
|
371
|
+
};
|
|
372
|
+
}, {
|
|
373
|
+
method: string;
|
|
374
|
+
params?: {
|
|
375
|
+
[x: string]: unknown;
|
|
376
|
+
_meta?: {
|
|
377
|
+
[x: string]: unknown;
|
|
378
|
+
} | undefined;
|
|
379
|
+
} | undefined;
|
|
380
|
+
}>) => Promise<{
|
|
381
|
+
[x: string]: unknown;
|
|
382
|
+
contents: ({
|
|
383
|
+
uri: string;
|
|
384
|
+
text: string;
|
|
385
|
+
mimeType?: string | undefined;
|
|
386
|
+
_meta?: Record<string, unknown> | undefined;
|
|
387
|
+
} | {
|
|
388
|
+
uri: string;
|
|
389
|
+
blob: string;
|
|
390
|
+
mimeType?: string | undefined;
|
|
391
|
+
_meta?: Record<string, unknown> | undefined;
|
|
392
|
+
})[];
|
|
393
|
+
_meta?: Record<string, unknown> | undefined;
|
|
394
|
+
}>;
|
|
395
|
+
} | {
|
|
396
|
+
requestSchema: import("zod").ZodObject<{
|
|
397
|
+
method: import("zod").ZodLiteral<"resources/subscribe">;
|
|
398
|
+
params: import("zod").ZodObject<{
|
|
399
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
400
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
401
|
+
}, import("zod/v4/core").$loose>>;
|
|
402
|
+
uri: import("zod").ZodString;
|
|
403
|
+
}, import("zod/v4/core").$loose>;
|
|
404
|
+
}, import("zod/v4/core").$strip>;
|
|
405
|
+
handler: (request: import("@modelcontextprotocol/sdk/types.js").SubscribeRequest, ctx: import("./mcp-handlers.types").McpRequestHandler<{
|
|
406
|
+
method: "resources/subscribe";
|
|
407
|
+
params: {
|
|
408
|
+
[x: string]: unknown;
|
|
409
|
+
uri: string;
|
|
410
|
+
_meta?: {
|
|
411
|
+
[x: string]: unknown;
|
|
412
|
+
progressToken?: string | number | undefined;
|
|
413
|
+
} | undefined;
|
|
414
|
+
};
|
|
415
|
+
}, {
|
|
416
|
+
method: string;
|
|
417
|
+
params?: {
|
|
418
|
+
[x: string]: unknown;
|
|
419
|
+
_meta?: {
|
|
420
|
+
[x: string]: unknown;
|
|
421
|
+
} | undefined;
|
|
422
|
+
} | undefined;
|
|
423
|
+
}>) => Promise<import("@modelcontextprotocol/sdk/types.js").EmptyResult>;
|
|
424
|
+
} | {
|
|
425
|
+
requestSchema: import("zod").ZodObject<{
|
|
426
|
+
method: import("zod").ZodLiteral<"resources/unsubscribe">;
|
|
427
|
+
params: import("zod").ZodObject<{
|
|
428
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
429
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
430
|
+
}, import("zod/v4/core").$loose>>;
|
|
431
|
+
uri: import("zod").ZodString;
|
|
432
|
+
}, import("zod/v4/core").$loose>;
|
|
433
|
+
}, import("zod/v4/core").$strip>;
|
|
434
|
+
handler: (request: import("@modelcontextprotocol/sdk/types.js").UnsubscribeRequest, ctx: import("./mcp-handlers.types").McpRequestHandler<{
|
|
435
|
+
method: "resources/unsubscribe";
|
|
436
|
+
params: {
|
|
437
|
+
[x: string]: unknown;
|
|
438
|
+
uri: string;
|
|
439
|
+
_meta?: {
|
|
440
|
+
[x: string]: unknown;
|
|
441
|
+
progressToken?: string | number | undefined;
|
|
442
|
+
} | undefined;
|
|
443
|
+
};
|
|
444
|
+
}, {
|
|
445
|
+
method: string;
|
|
446
|
+
params?: {
|
|
447
|
+
[x: string]: unknown;
|
|
448
|
+
_meta?: {
|
|
449
|
+
[x: string]: unknown;
|
|
450
|
+
} | undefined;
|
|
451
|
+
} | undefined;
|
|
452
|
+
}>) => Promise<import("@modelcontextprotocol/sdk/types.js").EmptyResult>;
|
|
453
|
+
} | {
|
|
454
|
+
requestSchema: import("zod").ZodObject<{
|
|
455
|
+
params: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
456
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
457
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
458
|
+
}, import("zod/v4/core").$loose>>;
|
|
459
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
460
|
+
}, import("zod/v4/core").$loose>>;
|
|
461
|
+
method: import("zod").ZodLiteral<"prompts/list">;
|
|
462
|
+
}, import("zod/v4/core").$strip>;
|
|
463
|
+
handler: (request: import("@modelcontextprotocol/sdk/types.js").ListPromptsRequest, ctx: import("./mcp-handlers.types").McpRequestHandler<{
|
|
464
|
+
method: "prompts/list";
|
|
465
|
+
params?: {
|
|
466
|
+
[x: string]: unknown;
|
|
467
|
+
_meta?: {
|
|
468
|
+
[x: string]: unknown;
|
|
469
|
+
progressToken?: string | number | undefined;
|
|
470
|
+
} | undefined;
|
|
471
|
+
cursor?: string | undefined;
|
|
472
|
+
} | undefined;
|
|
473
|
+
}, {
|
|
474
|
+
method: string;
|
|
475
|
+
params?: {
|
|
476
|
+
[x: string]: unknown;
|
|
477
|
+
_meta?: {
|
|
478
|
+
[x: string]: unknown;
|
|
479
|
+
} | undefined;
|
|
480
|
+
} | undefined;
|
|
481
|
+
}>) => Promise<{
|
|
482
|
+
[x: string]: unknown;
|
|
483
|
+
prompts: {
|
|
484
|
+
name: string;
|
|
485
|
+
description?: string | undefined;
|
|
486
|
+
arguments?: {
|
|
487
|
+
name: string;
|
|
488
|
+
description?: string | undefined;
|
|
489
|
+
required?: boolean | undefined;
|
|
490
|
+
}[] | undefined;
|
|
491
|
+
_meta?: {
|
|
492
|
+
[x: string]: unknown;
|
|
493
|
+
} | undefined;
|
|
494
|
+
icons?: {
|
|
495
|
+
src: string;
|
|
496
|
+
mimeType?: string | undefined;
|
|
497
|
+
sizes?: string[] | undefined;
|
|
498
|
+
}[] | undefined;
|
|
499
|
+
title?: string | undefined;
|
|
500
|
+
}[];
|
|
501
|
+
_meta?: Record<string, unknown> | undefined;
|
|
502
|
+
nextCursor?: string | undefined;
|
|
503
|
+
}>;
|
|
504
|
+
} | {
|
|
505
|
+
requestSchema: import("zod").ZodObject<{
|
|
506
|
+
method: import("zod").ZodLiteral<"prompts/get">;
|
|
507
|
+
params: import("zod").ZodObject<{
|
|
508
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
509
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
510
|
+
}, import("zod/v4/core").$loose>>;
|
|
511
|
+
name: import("zod").ZodString;
|
|
512
|
+
arguments: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
513
|
+
}, import("zod/v4/core").$loose>;
|
|
514
|
+
}, import("zod/v4/core").$strip>;
|
|
515
|
+
handler: (request: import("@modelcontextprotocol/sdk/types.js").GetPromptRequest, ctx: import("./mcp-handlers.types").McpRequestHandler<{
|
|
516
|
+
method: "prompts/get";
|
|
517
|
+
params: {
|
|
518
|
+
[x: string]: unknown;
|
|
519
|
+
name: string;
|
|
520
|
+
_meta?: {
|
|
521
|
+
[x: string]: unknown;
|
|
522
|
+
progressToken?: string | number | undefined;
|
|
523
|
+
} | undefined;
|
|
524
|
+
arguments?: {
|
|
525
|
+
[x: string]: string;
|
|
526
|
+
} | undefined;
|
|
527
|
+
};
|
|
528
|
+
}, {
|
|
529
|
+
method: string;
|
|
530
|
+
params?: {
|
|
531
|
+
[x: string]: unknown;
|
|
532
|
+
_meta?: {
|
|
533
|
+
[x: string]: unknown;
|
|
534
|
+
} | undefined;
|
|
535
|
+
} | undefined;
|
|
536
|
+
}>) => Promise<{
|
|
537
|
+
[x: string]: unknown;
|
|
538
|
+
messages: {
|
|
539
|
+
role: "user" | "assistant";
|
|
540
|
+
content: {
|
|
541
|
+
type: "text";
|
|
542
|
+
text: string;
|
|
543
|
+
_meta?: Record<string, unknown> | undefined;
|
|
544
|
+
} | {
|
|
545
|
+
type: "image";
|
|
546
|
+
data: string;
|
|
547
|
+
mimeType: string;
|
|
548
|
+
_meta?: Record<string, unknown> | undefined;
|
|
549
|
+
} | {
|
|
550
|
+
type: "audio";
|
|
551
|
+
data: string;
|
|
552
|
+
mimeType: string;
|
|
553
|
+
_meta?: Record<string, unknown> | undefined;
|
|
554
|
+
} | {
|
|
555
|
+
uri: string;
|
|
556
|
+
name: string;
|
|
557
|
+
type: "resource_link";
|
|
558
|
+
description?: string | undefined;
|
|
559
|
+
mimeType?: string | undefined;
|
|
560
|
+
_meta?: {
|
|
561
|
+
[x: string]: unknown;
|
|
562
|
+
} | undefined;
|
|
563
|
+
icons?: {
|
|
564
|
+
src: string;
|
|
565
|
+
mimeType?: string | undefined;
|
|
566
|
+
sizes?: string[] | undefined;
|
|
567
|
+
}[] | undefined;
|
|
568
|
+
title?: string | undefined;
|
|
569
|
+
} | {
|
|
570
|
+
type: "resource";
|
|
571
|
+
resource: {
|
|
572
|
+
uri: string;
|
|
573
|
+
text: string;
|
|
574
|
+
mimeType?: string | undefined;
|
|
575
|
+
_meta?: Record<string, unknown> | undefined;
|
|
576
|
+
} | {
|
|
577
|
+
uri: string;
|
|
578
|
+
blob: string;
|
|
579
|
+
mimeType?: string | undefined;
|
|
580
|
+
_meta?: Record<string, unknown> | undefined;
|
|
581
|
+
};
|
|
582
|
+
_meta?: Record<string, unknown> | undefined;
|
|
583
|
+
};
|
|
584
|
+
}[];
|
|
585
|
+
_meta?: Record<string, unknown> | undefined;
|
|
586
|
+
description?: string | undefined;
|
|
587
|
+
}>;
|
|
588
|
+
} | {
|
|
589
|
+
requestSchema: import("zod").ZodObject<{
|
|
590
|
+
method: import("zod").ZodLiteral<"completion/complete">;
|
|
591
|
+
params: import("zod").ZodObject<{
|
|
592
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
593
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
594
|
+
}, import("zod/v4/core").$loose>>;
|
|
595
|
+
ref: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
596
|
+
type: import("zod").ZodLiteral<"ref/prompt">;
|
|
597
|
+
name: import("zod").ZodString;
|
|
598
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
599
|
+
type: import("zod").ZodLiteral<"ref/resource">;
|
|
600
|
+
uri: import("zod").ZodString;
|
|
601
|
+
}, import("zod/v4/core").$strip>]>;
|
|
602
|
+
argument: import("zod").ZodObject<{
|
|
603
|
+
name: import("zod").ZodString;
|
|
604
|
+
value: import("zod").ZodString;
|
|
605
|
+
}, import("zod/v4/core").$strip>;
|
|
606
|
+
context: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
607
|
+
arguments: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
608
|
+
}, import("zod/v4/core").$strip>>;
|
|
609
|
+
}, import("zod/v4/core").$loose>;
|
|
610
|
+
}, import("zod/v4/core").$strip>;
|
|
611
|
+
handler: (request: import("@modelcontextprotocol/sdk/types.js").CompleteRequest, ctx: import("./mcp-handlers.types").McpRequestHandler<{
|
|
612
|
+
method: "completion/complete";
|
|
613
|
+
params: {
|
|
614
|
+
[x: string]: unknown;
|
|
615
|
+
ref: {
|
|
616
|
+
type: "ref/prompt";
|
|
617
|
+
name: string;
|
|
618
|
+
} | {
|
|
619
|
+
type: "ref/resource";
|
|
620
|
+
uri: string;
|
|
621
|
+
};
|
|
622
|
+
argument: {
|
|
623
|
+
name: string;
|
|
624
|
+
value: string;
|
|
625
|
+
};
|
|
626
|
+
_meta?: {
|
|
627
|
+
[x: string]: unknown;
|
|
628
|
+
progressToken?: string | number | undefined;
|
|
629
|
+
} | undefined;
|
|
630
|
+
context?: {
|
|
631
|
+
arguments?: {
|
|
632
|
+
[x: string]: string;
|
|
633
|
+
} | undefined;
|
|
634
|
+
} | undefined;
|
|
635
|
+
};
|
|
636
|
+
}, {
|
|
637
|
+
method: string;
|
|
638
|
+
params?: {
|
|
639
|
+
[x: string]: unknown;
|
|
640
|
+
_meta?: {
|
|
641
|
+
[x: string]: unknown;
|
|
642
|
+
} | undefined;
|
|
643
|
+
} | undefined;
|
|
644
|
+
}>) => Promise<{
|
|
645
|
+
[x: string]: unknown;
|
|
646
|
+
completion: {
|
|
647
|
+
[x: string]: unknown;
|
|
648
|
+
values: string[];
|
|
649
|
+
total?: number | undefined;
|
|
650
|
+
hasMore?: boolean | undefined;
|
|
651
|
+
};
|
|
652
|
+
_meta?: Record<string, unknown> | undefined;
|
|
653
|
+
}>;
|
|
654
|
+
} | {
|
|
655
|
+
requestSchema: import("zod").ZodObject<{
|
|
656
|
+
method: import("zod").ZodLiteral<"logging/setLevel">;
|
|
657
|
+
params: import("zod").ZodObject<{
|
|
658
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
659
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
660
|
+
}, import("zod/v4/core").$loose>>;
|
|
661
|
+
level: import("zod").ZodEnum<{
|
|
662
|
+
error: "error";
|
|
663
|
+
debug: "debug";
|
|
664
|
+
info: "info";
|
|
665
|
+
notice: "notice";
|
|
666
|
+
warning: "warning";
|
|
667
|
+
critical: "critical";
|
|
668
|
+
alert: "alert";
|
|
669
|
+
emergency: "emergency";
|
|
670
|
+
}>;
|
|
671
|
+
}, import("zod/v4/core").$loose>;
|
|
672
|
+
}, import("zod/v4/core").$strip>;
|
|
673
|
+
handler: (request: import("@modelcontextprotocol/sdk/types.js").SetLevelRequest, ctx: import("./mcp-handlers.types").McpRequestHandler<{
|
|
674
|
+
method: "logging/setLevel";
|
|
675
|
+
params: {
|
|
676
|
+
[x: string]: unknown;
|
|
677
|
+
level: "error" | "debug" | "info" | "warning" | "notice" | "critical" | "alert" | "emergency";
|
|
678
|
+
_meta?: {
|
|
679
|
+
[x: string]: unknown;
|
|
680
|
+
progressToken?: string | number | undefined;
|
|
681
|
+
} | undefined;
|
|
682
|
+
};
|
|
683
|
+
}, {
|
|
684
|
+
method: string;
|
|
685
|
+
params?: {
|
|
686
|
+
[x: string]: unknown;
|
|
687
|
+
_meta?: {
|
|
688
|
+
[x: string]: unknown;
|
|
689
|
+
} | undefined;
|
|
690
|
+
} | undefined;
|
|
691
|
+
}>) => Promise<import("@modelcontextprotocol/sdk/types.js").EmptyResult>;
|
|
692
|
+
} | import("./mcp-handlers.types").McpHandler<{
|
|
693
|
+
method: "notifications/roots/list_changed";
|
|
694
|
+
params?: {
|
|
695
|
+
[x: string]: unknown;
|
|
696
|
+
_meta?: {
|
|
697
|
+
[x: string]: unknown;
|
|
698
|
+
} | undefined;
|
|
699
|
+
} | undefined;
|
|
394
700
|
}, {
|
|
395
|
-
[x: string]:
|
|
396
|
-
|
|
701
|
+
[x: string]: unknown;
|
|
702
|
+
_meta?: {
|
|
703
|
+
[x: string]: unknown;
|
|
704
|
+
} | undefined;
|
|
705
|
+
}, import("zod").ZodObject<any, import("zod/v4/core").$strip>, import("zod").ZodObject<any, import("zod/v4/core").$strip>, {
|
|
397
706
|
method: string;
|
|
398
707
|
params?: {
|
|
399
708
|
[x: string]: unknown;
|