@frontmcp/sdk 0.7.1 → 0.8.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/agent/adapters/adapter.factory.d.ts +27 -18
- package/agent/adapters/adapter.factory.d.ts.map +1 -1
- package/agent/agent.instance.d.ts +5 -0
- package/agent/agent.instance.d.ts.map +1 -1
- package/agent/agent.scope.d.ts +54 -72
- package/agent/agent.scope.d.ts.map +1 -1
- package/agent/flows/call-agent.flow.d.ts +1 -0
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- package/app/instances/app.local.instance.d.ts +3 -0
- package/app/instances/app.local.instance.d.ts.map +1 -1
- package/app/instances/app.remote.instance.d.ts +3 -0
- package/app/instances/app.remote.instance.d.ts.map +1 -1
- package/auth/auth.registry.d.ts.map +1 -1
- package/auth/authorization/authorization.types.d.ts +7 -180
- package/auth/authorization/authorization.types.d.ts.map +1 -1
- package/auth/authorization/index.d.ts +2 -0
- package/auth/authorization/index.d.ts.map +1 -1
- package/auth/authorization/orchestrated.accessor.d.ts +161 -0
- package/auth/authorization/orchestrated.accessor.d.ts.map +1 -0
- package/auth/authorization/orchestrated.authorization.d.ts +19 -4
- package/auth/authorization/orchestrated.authorization.d.ts.map +1 -1
- package/auth/authorization/orchestrated.context-extension.d.ts +108 -0
- package/auth/authorization/orchestrated.context-extension.d.ts.map +1 -0
- package/auth/cimd/index.d.ts +14 -0
- package/auth/cimd/index.d.ts.map +1 -0
- package/auth/flows/auth.verify.flow.d.ts.map +1 -1
- package/auth/flows/oauth.authorize.flow.d.ts +30 -3
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -1
- package/auth/flows/oauth.callback.flow.d.ts +11 -3
- package/auth/flows/oauth.callback.flow.d.ts.map +1 -1
- package/auth/flows/oauth.provider-callback.flow.d.ts +118 -0
- package/auth/flows/oauth.provider-callback.flow.d.ts.map +1 -0
- package/auth/flows/oauth.register.flow.d.ts +1 -1
- package/auth/flows/oauth.token.flow.d.ts +1 -1
- package/auth/flows/session.verify.flow.d.ts +8 -0
- package/auth/flows/session.verify.flow.d.ts.map +1 -1
- package/auth/flows/well-known.jwks.flow.d.ts +3 -3
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +3 -2
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -1
- package/auth/flows/well-known.prm.flow.d.ts +1 -1
- package/auth/instances/instance.local-primary-auth.d.ts +88 -1
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
- package/auth/machine-id.d.ts +14 -0
- package/auth/machine-id.d.ts.map +1 -1
- package/auth/session/encrypted-authorization-vault.d.ts +2 -3
- package/auth/session/encrypted-authorization-vault.d.ts.map +1 -1
- package/auth/session/federated-auth.session.d.ts +252 -0
- package/auth/session/federated-auth.session.d.ts.map +1 -0
- package/auth/session/index.d.ts +6 -2
- package/auth/session/index.d.ts.map +1 -1
- package/auth/session/orchestrated-token.store.d.ts +155 -0
- package/auth/session/orchestrated-token.store.d.ts.map +1 -0
- package/auth/session/record/session.base.d.ts +7 -7
- package/auth/session/record/session.base.d.ts.map +1 -1
- package/auth/session/record/session.mcp.d.ts +11 -0
- package/auth/session/record/session.mcp.d.ts.map +1 -0
- package/auth/session/redis-session.store.d.ts +10 -5
- package/auth/session/redis-session.store.d.ts.map +1 -1
- package/auth/session/session-crypto.d.ts +6 -9
- package/auth/session/session-crypto.d.ts.map +1 -1
- package/{store/store.factory.d.ts → auth/session/session-store.factory.d.ts} +10 -36
- package/auth/session/session-store.factory.d.ts.map +1 -0
- package/auth/session/session.service.d.ts +4 -8
- package/auth/session/session.service.d.ts.map +1 -1
- package/auth/session/session.transport.d.ts +8 -2
- package/auth/session/session.transport.d.ts.map +1 -1
- package/auth/session/session.types.d.ts +5 -5
- package/auth/session/session.types.d.ts.map +1 -1
- package/auth/session/token.refresh.d.ts +1 -2
- package/auth/session/token.refresh.d.ts.map +1 -1
- package/auth/session/transport-session.manager.d.ts +7 -6
- package/auth/session/transport-session.manager.d.ts.map +1 -1
- package/auth/session/utils/session-id.utils.d.ts +18 -1
- package/auth/session/utils/session-id.utils.d.ts.map +1 -1
- package/auth/session/vercel-kv-session.store.d.ts +16 -16
- package/auth/session/vercel-kv-session.store.d.ts.map +1 -1
- package/auth/utils/authorization-id.utils.d.ts +12 -0
- package/auth/utils/authorization-id.utils.d.ts.map +1 -0
- package/auth/utils/index.d.ts +1 -2
- package/auth/utils/index.d.ts.map +1 -1
- package/auth/vault/auth-providers.accessor.d.ts +153 -0
- package/auth/vault/auth-providers.accessor.d.ts.map +1 -0
- package/auth/vault/auth-providers.accessor.impl.d.ts +52 -0
- package/auth/vault/auth-providers.accessor.impl.d.ts.map +1 -0
- package/auth/vault/auth-providers.context-extension.d.ts +68 -0
- package/auth/vault/auth-providers.context-extension.d.ts.map +1 -0
- package/auth/vault/auth-providers.providers.d.ts +40 -0
- package/auth/vault/auth-providers.providers.d.ts.map +1 -0
- package/auth/vault/auth-providers.registry.d.ts +110 -0
- package/auth/vault/auth-providers.registry.d.ts.map +1 -0
- package/auth/vault/auth-providers.vault.d.ts +93 -0
- package/auth/vault/auth-providers.vault.d.ts.map +1 -0
- package/auth/vault/credential-cache.d.ts +13 -0
- package/auth/vault/credential-cache.d.ts.map +1 -0
- package/auth/vault/credential-loaders/eager-loader.d.ts +46 -0
- package/auth/vault/credential-loaders/eager-loader.d.ts.map +1 -0
- package/auth/vault/credential-loaders/index.d.ts +7 -0
- package/auth/vault/credential-loaders/index.d.ts.map +1 -0
- package/auth/vault/credential-loaders/lazy-loader.d.ts +53 -0
- package/auth/vault/credential-loaders/lazy-loader.d.ts.map +1 -0
- package/auth/vault/index.d.ts +56 -0
- package/auth/vault/index.d.ts.map +1 -0
- package/builtin/config/config-resolver.d.ts +162 -0
- package/builtin/config/config-resolver.d.ts.map +1 -0
- package/builtin/config/config.plugin.d.ts +63 -0
- package/builtin/config/config.plugin.d.ts.map +1 -0
- package/builtin/config/config.symbols.d.ts +7 -0
- package/builtin/config/config.symbols.d.ts.map +1 -0
- package/builtin/config/config.types.d.ts +71 -0
- package/builtin/config/config.types.d.ts.map +1 -0
- package/builtin/config/index.d.ts +68 -0
- package/builtin/config/index.d.ts.map +1 -0
- package/builtin/config/providers/config-loader.d.ts +36 -0
- package/builtin/config/providers/config-loader.d.ts.map +1 -0
- package/builtin/config/providers/config.service.d.ts +108 -0
- package/builtin/config/providers/config.service.d.ts.map +1 -0
- package/builtin/config/providers/env-loader.d.ts +76 -0
- package/builtin/config/providers/env-loader.d.ts.map +1 -0
- package/builtin/index.d.ts +7 -0
- package/builtin/index.d.ts.map +1 -0
- package/common/decorators/front-mcp.decorator.d.ts.map +1 -1
- package/common/decorators/hook.decorator.d.ts +0 -10
- package/common/decorators/hook.decorator.d.ts.map +1 -1
- package/common/decorators/index.d.ts +1 -0
- package/common/decorators/index.d.ts.map +1 -1
- package/common/decorators/skill.decorator.d.ts +105 -0
- package/common/decorators/skill.decorator.d.ts.map +1 -0
- package/common/dynamic/dynamic.adapter.d.ts +14 -4
- package/common/dynamic/dynamic.adapter.d.ts.map +1 -1
- package/common/entries/app.entry.d.ts +2 -0
- package/common/entries/app.entry.d.ts.map +1 -1
- package/common/entries/auth-provider.entry.d.ts +1 -1
- package/common/entries/auth-provider.entry.d.ts.map +1 -1
- package/common/entries/index.d.ts +1 -0
- package/common/entries/index.d.ts.map +1 -1
- package/common/entries/prompt.entry.d.ts +0 -6
- package/common/entries/prompt.entry.d.ts.map +1 -1
- package/common/entries/provider.entry.d.ts +4 -4
- package/common/entries/provider.entry.d.ts.map +1 -1
- package/common/entries/resource.entry.d.ts +0 -6
- package/common/entries/resource.entry.d.ts.map +1 -1
- package/common/entries/scope.entry.d.ts +2 -0
- package/common/entries/scope.entry.d.ts.map +1 -1
- package/common/entries/skill.entry.d.ts +95 -0
- package/common/entries/skill.entry.d.ts.map +1 -0
- package/common/entries/tool.entry.d.ts +17 -9
- package/common/entries/tool.entry.d.ts.map +1 -1
- package/common/interfaces/agent.interface.d.ts +35 -6
- package/common/interfaces/agent.interface.d.ts.map +1 -1
- package/common/interfaces/execution-context.interface.d.ts +14 -0
- package/common/interfaces/execution-context.interface.d.ts.map +1 -1
- package/common/interfaces/index.d.ts +2 -1
- package/common/interfaces/index.d.ts.map +1 -1
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts +1 -7
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts.map +1 -1
- package/common/interfaces/internal/registry.interface.d.ts +4 -1
- package/common/interfaces/internal/registry.interface.d.ts.map +1 -1
- package/common/interfaces/skill.interface.d.ts +91 -0
- package/common/interfaces/skill.interface.d.ts.map +1 -0
- package/common/interfaces/tool.interface.d.ts +39 -0
- package/common/interfaces/tool.interface.d.ts.map +1 -1
- package/common/metadata/agent.metadata.d.ts +62 -2
- package/common/metadata/agent.metadata.d.ts.map +1 -1
- package/common/metadata/app.metadata.d.ts +168 -169
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp.metadata.d.ts +2182 -721
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/index.d.ts +3 -1
- package/common/metadata/index.d.ts.map +1 -1
- package/common/metadata/plugin.metadata.d.ts +8 -1
- package/common/metadata/plugin.metadata.d.ts.map +1 -1
- package/common/metadata/skill.metadata.d.ts +366 -0
- package/common/metadata/skill.metadata.d.ts.map +1 -0
- package/common/metadata/tool.metadata.d.ts +71 -0
- package/common/metadata/tool.metadata.d.ts.map +1 -1
- package/common/records/index.d.ts +3 -1
- package/common/records/index.d.ts.map +1 -1
- package/common/records/skill.record.d.ts +55 -0
- package/common/records/skill.record.d.ts.map +1 -0
- package/common/schemas/annotated-class.schema.d.ts +1 -0
- package/common/schemas/annotated-class.schema.d.ts.map +1 -1
- package/common/schemas/http-output.schema.d.ts +24 -24
- package/common/tokens/app.tokens.d.ts.map +1 -1
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
- package/common/tokens/index.d.ts +1 -0
- package/common/tokens/index.d.ts.map +1 -1
- package/common/tokens/plugin.tokens.d.ts +1 -0
- package/common/tokens/plugin.tokens.d.ts.map +1 -1
- package/common/tokens/skill.tokens.d.ts +18 -0
- package/common/tokens/skill.tokens.d.ts.map +1 -0
- package/common/tokens/tool.tokens.d.ts +2 -0
- package/common/tokens/tool.tokens.d.ts.map +1 -1
- package/common/types/auth/session.types.d.ts +21 -0
- package/common/types/auth/session.types.d.ts.map +1 -1
- package/common/types/options/auth/app-auth.schema.d.ts +80 -84
- package/common/types/options/auth/app-auth.schema.d.ts.map +1 -1
- package/common/types/options/auth/index.d.ts +6 -8
- package/common/types/options/auth/index.d.ts.map +1 -1
- package/common/types/options/auth/{auth.interfaces.d.ts → interfaces.d.ts} +17 -48
- package/common/types/options/auth/interfaces.d.ts.map +1 -0
- package/common/types/options/auth/orchestrated.schema.d.ts +160 -84
- package/common/types/options/auth/orchestrated.schema.d.ts.map +1 -1
- package/common/types/options/auth/public.schema.d.ts +0 -21
- package/common/types/options/auth/public.schema.d.ts.map +1 -1
- package/common/types/options/auth/{auth.schema.d.ts → schema.d.ts} +81 -85
- package/common/types/options/auth/schema.d.ts.map +1 -0
- package/common/types/options/auth/shared.schemas.d.ts +12 -0
- package/common/types/options/auth/shared.schemas.d.ts.map +1 -1
- package/common/types/options/auth/transparent.schema.d.ts +0 -21
- package/common/types/options/auth/transparent.schema.d.ts.map +1 -1
- package/common/types/options/auth/typecheck.d.ts +2 -0
- package/common/types/options/auth/typecheck.d.ts.map +1 -0
- package/common/types/options/auth/{auth.utils.d.ts → utils.d.ts} +2 -2
- package/common/types/options/auth/utils.d.ts.map +1 -0
- package/common/types/options/elicitation/index.d.ts +4 -0
- package/common/types/options/elicitation/index.d.ts.map +1 -0
- package/common/types/options/elicitation/interfaces.d.ts +80 -0
- package/common/types/options/elicitation/interfaces.d.ts.map +1 -0
- package/common/types/options/elicitation/schema.d.ts +75 -0
- package/common/types/options/elicitation/schema.d.ts.map +1 -0
- package/common/types/options/ext-apps/index.d.ts +3 -0
- package/common/types/options/ext-apps/index.d.ts.map +1 -0
- package/common/types/options/ext-apps/interfaces.d.ts +2 -0
- package/common/types/options/ext-apps/interfaces.d.ts.map +1 -0
- package/common/types/options/ext-apps/schema.d.ts +80 -0
- package/common/types/options/ext-apps/schema.d.ts.map +1 -0
- package/common/types/options/http/index.d.ts +4 -0
- package/common/types/options/http/index.d.ts.map +1 -0
- package/common/types/options/http/interfaces.d.ts +23 -0
- package/common/types/options/http/interfaces.d.ts.map +1 -0
- package/common/types/options/http/schema.d.ts +18 -0
- package/common/types/options/http/schema.d.ts.map +1 -0
- package/common/types/options/index.d.ts +10 -6
- package/common/types/options/index.d.ts.map +1 -1
- package/common/types/options/logging/index.d.ts +5 -0
- package/common/types/options/logging/index.d.ts.map +1 -0
- package/common/types/options/logging/interfaces.d.ts +41 -0
- package/common/types/options/logging/interfaces.d.ts.map +1 -0
- package/common/types/options/logging/schema.d.ts +24 -0
- package/common/types/options/logging/schema.d.ts.map +1 -0
- package/common/types/options/pagination/index.d.ts +4 -0
- package/common/types/options/pagination/index.d.ts.map +1 -0
- package/common/types/options/pagination/interfaces.d.ts +43 -0
- package/common/types/options/pagination/interfaces.d.ts.map +1 -0
- package/common/types/options/pagination/schema.d.ts +41 -0
- package/common/types/options/pagination/schema.d.ts.map +1 -0
- package/common/types/options/redis/index.d.ts +4 -0
- package/common/types/options/redis/index.d.ts.map +1 -0
- package/common/types/options/redis/interfaces.d.ts +81 -0
- package/common/types/options/redis/interfaces.d.ts.map +1 -0
- package/common/types/options/{redis.options.d.ts → redis/schema.d.ts} +2 -2
- package/common/types/options/redis/schema.d.ts.map +1 -0
- package/common/types/options/server-info/index.d.ts +4 -0
- package/common/types/options/server-info/index.d.ts.map +1 -0
- package/common/types/options/server-info/interfaces.d.ts +27 -0
- package/common/types/options/server-info/interfaces.d.ts.map +1 -0
- package/common/types/options/{server-info.options.d.ts → server-info/schema.d.ts} +13 -10
- package/common/types/options/server-info/schema.d.ts.map +1 -0
- package/common/types/options/session/index.d.ts +4 -0
- package/common/types/options/session/index.d.ts.map +1 -0
- package/common/types/options/session/interfaces.d.ts +66 -0
- package/common/types/options/session/interfaces.d.ts.map +1 -0
- package/common/types/options/session/schema.d.ts +79 -0
- package/common/types/options/session/schema.d.ts.map +1 -0
- package/common/types/options/skills-http/index.d.ts +4 -0
- package/common/types/options/skills-http/index.d.ts.map +1 -0
- package/common/types/options/skills-http/interfaces.d.ts +321 -0
- package/common/types/options/skills-http/interfaces.d.ts.map +1 -0
- package/common/types/options/skills-http/schema.d.ts +139 -0
- package/common/types/options/skills-http/schema.d.ts.map +1 -0
- package/common/types/options/transport/index.d.ts +4 -0
- package/common/types/options/transport/index.d.ts.map +1 -0
- package/common/types/options/transport/interfaces.d.ts +354 -0
- package/common/types/options/transport/interfaces.d.ts.map +1 -0
- package/common/types/options/transport/schema.d.ts +309 -0
- package/common/types/options/transport/schema.d.ts.map +1 -0
- package/common/types/options/transport/typecheck.d.ts +2 -0
- package/common/types/options/transport/typecheck.d.ts.map +1 -0
- package/common/utils/decide-request-intent.utils.d.ts +3 -3
- package/common/utils/decide-request-intent.utils.d.ts.map +1 -1
- package/context/context-extension.d.ts +1 -28
- package/context/context-extension.d.ts.map +1 -1
- package/context/frontmcp-context-storage.d.ts.map +1 -1
- package/context/frontmcp-context.d.ts +36 -39
- package/context/frontmcp-context.d.ts.map +1 -1
- package/context/frontmcp-context.provider.d.ts +3 -9
- package/context/frontmcp-context.provider.d.ts.map +1 -1
- package/context/index.d.ts +5 -20
- package/context/index.d.ts.map +1 -1
- package/context/metadata.utils.d.ts +24 -0
- package/context/metadata.utils.d.ts.map +1 -0
- package/direct/client.types.d.ts +447 -0
- package/direct/client.types.d.ts.map +1 -0
- package/direct/connect.d.ts +188 -0
- package/direct/connect.d.ts.map +1 -0
- package/direct/direct-client.d.ts +7 -0
- package/direct/direct-client.d.ts.map +1 -0
- package/direct/direct-server.d.ts +38 -0
- package/direct/direct-server.d.ts.map +1 -0
- package/direct/direct.types.d.ts +134 -0
- package/direct/direct.types.d.ts.map +1 -0
- package/direct/index.d.ts +15 -0
- package/direct/index.d.ts.map +1 -0
- package/direct/llm-platform.d.ts +94 -0
- package/direct/llm-platform.d.ts.map +1 -0
- package/elicitation/elicitation-fallback.schema.d.ts +32 -0
- package/elicitation/elicitation-fallback.schema.d.ts.map +1 -0
- package/elicitation/elicitation.types.d.ts +160 -0
- package/elicitation/elicitation.types.d.ts.map +1 -0
- package/elicitation/flows/elicitation-request.flow.d.ts +98 -0
- package/elicitation/flows/elicitation-request.flow.d.ts.map +1 -0
- package/elicitation/flows/elicitation-result.flow.d.ts +79 -0
- package/elicitation/flows/elicitation-result.flow.d.ts.map +1 -0
- package/elicitation/flows/index.d.ts +10 -0
- package/elicitation/flows/index.d.ts.map +1 -0
- package/elicitation/helpers/elicit.helper.d.ts +65 -0
- package/elicitation/helpers/elicit.helper.d.ts.map +1 -0
- package/elicitation/helpers/extend-output-schema.d.ts +31 -0
- package/elicitation/helpers/extend-output-schema.d.ts.map +1 -0
- package/elicitation/helpers/fallback.helper.d.ts +60 -0
- package/elicitation/helpers/fallback.helper.d.ts.map +1 -0
- package/elicitation/helpers/index.d.ts +12 -0
- package/elicitation/helpers/index.d.ts.map +1 -0
- package/elicitation/helpers/validate-elicitation-content.d.ts +52 -0
- package/elicitation/helpers/validate-elicitation-content.d.ts.map +1 -0
- package/elicitation/hooks/elicitation.hooks.d.ts +66 -0
- package/elicitation/hooks/elicitation.hooks.d.ts.map +1 -0
- package/elicitation/hooks/index.d.ts +9 -0
- package/elicitation/hooks/index.d.ts.map +1 -0
- package/elicitation/index.d.ts +18 -0
- package/elicitation/index.d.ts.map +1 -0
- package/elicitation/send-elicitation-result.tool.d.ts +18 -0
- package/elicitation/send-elicitation-result.tool.d.ts.map +1 -0
- package/elicitation/store/elicitation-encryption.d.ts +134 -0
- package/elicitation/store/elicitation-encryption.d.ts.map +1 -0
- package/elicitation/store/elicitation-store.factory.d.ts +197 -0
- package/elicitation/store/elicitation-store.factory.d.ts.map +1 -0
- package/elicitation/store/elicitation.store.d.ts +191 -0
- package/elicitation/store/elicitation.store.d.ts.map +1 -0
- package/elicitation/store/encrypted-elicitation.store.d.ts +121 -0
- package/elicitation/store/encrypted-elicitation.store.d.ts.map +1 -0
- package/elicitation/store/index.d.ts +14 -0
- package/elicitation/store/index.d.ts.map +1 -0
- package/elicitation/store/storage-elicitation.store.d.ts +118 -0
- package/elicitation/store/storage-elicitation.store.d.ts.map +1 -0
- package/errors/elicitation.error.d.ts +115 -0
- package/errors/elicitation.error.d.ts.map +1 -0
- package/errors/index.d.ts +1 -0
- package/errors/index.d.ts.map +1 -1
- package/esm/index.mjs +30803 -19559
- package/esm/package.json +13 -7
- package/ext-apps/ext-apps.handler.d.ts +177 -0
- package/ext-apps/ext-apps.handler.d.ts.map +1 -0
- package/ext-apps/ext-apps.types.d.ts +273 -0
- package/ext-apps/ext-apps.types.d.ts.map +1 -0
- package/ext-apps/index.d.ts +13 -0
- package/ext-apps/index.d.ts.map +1 -0
- package/flows/flow.instance.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts +64 -2
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/front-mcp/front-mcp.providers.d.ts +604 -236
- package/front-mcp/front-mcp.providers.d.ts.map +1 -1
- package/index.d.ts +17 -0
- package/index.d.ts.map +1 -1
- package/index.js +31065 -19748
- package/notification/index.d.ts +1 -1
- package/notification/index.d.ts.map +1 -1
- package/notification/notification.service.d.ts +18 -0
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +13 -7
- package/plugin/plugin.registry.d.ts +2 -0
- package/plugin/plugin.registry.d.ts.map +1 -1
- package/provider/provider.registry.d.ts +8 -3
- package/provider/provider.registry.d.ts.map +1 -1
- package/provider/provider.utils.d.ts +1 -1
- package/provider/provider.utils.d.ts.map +1 -1
- package/scope/flows/http.request.flow.d.ts +4 -0
- package/scope/flows/http.request.flow.d.ts.map +1 -1
- package/scope/scope.instance.d.ts +74 -0
- package/scope/scope.instance.d.ts.map +1 -1
- package/server/server.instance.d.ts +3 -3
- package/server/server.instance.d.ts.map +1 -1
- package/skill/auth/index.d.ts +10 -0
- package/skill/auth/index.d.ts.map +1 -0
- package/skill/auth/skill-http-auth.d.ts +112 -0
- package/skill/auth/skill-http-auth.d.ts.map +1 -0
- package/skill/cache/index.d.ts +13 -0
- package/skill/cache/index.d.ts.map +1 -0
- package/skill/cache/skill-http-cache.d.ts +144 -0
- package/skill/cache/skill-http-cache.d.ts.map +1 -0
- package/skill/cache/skill-http-cache.factory.d.ts +83 -0
- package/skill/cache/skill-http-cache.factory.d.ts.map +1 -0
- package/skill/cache/skill-http-cache.holder.d.ts +35 -0
- package/skill/cache/skill-http-cache.holder.d.ts.map +1 -0
- package/skill/errors/index.d.ts +3 -0
- package/skill/errors/index.d.ts.map +1 -0
- package/skill/errors/skill-validation.error.d.ts +110 -0
- package/skill/errors/skill-validation.error.d.ts.map +1 -0
- package/skill/errors/tool-not-allowed.error.d.ts +66 -0
- package/skill/errors/tool-not-allowed.error.d.ts.map +1 -0
- package/skill/flows/http/index.d.ts +12 -0
- package/skill/flows/http/index.d.ts.map +1 -0
- package/skill/flows/http/llm-full-txt.flow.d.ts +70 -0
- package/skill/flows/http/llm-full-txt.flow.d.ts.map +1 -0
- package/skill/flows/http/llm-txt.flow.d.ts +77 -0
- package/skill/flows/http/llm-txt.flow.d.ts.map +1 -0
- package/skill/flows/http/skills-api.flow.d.ts +81 -0
- package/skill/flows/http/skills-api.flow.d.ts.map +1 -0
- package/skill/flows/index.d.ts +13 -0
- package/skill/flows/index.d.ts.map +1 -0
- package/skill/flows/load-skill.flow.d.ts +169 -0
- package/skill/flows/load-skill.flow.d.ts.map +1 -0
- package/skill/flows/search-skills.flow.d.ts +101 -0
- package/skill/flows/search-skills.flow.d.ts.map +1 -0
- package/skill/guards/index.d.ts +2 -0
- package/skill/guards/index.d.ts.map +1 -0
- package/skill/guards/tool-authorization.guard.d.ts +87 -0
- package/skill/guards/tool-authorization.guard.d.ts.map +1 -0
- package/skill/hooks/index.d.ts +2 -0
- package/skill/hooks/index.d.ts.map +1 -0
- package/skill/hooks/skill-tool.hook.d.ts +52 -0
- package/skill/hooks/skill-tool.hook.d.ts.map +1 -0
- package/skill/index.d.ts +74 -0
- package/skill/index.d.ts.map +1 -0
- package/skill/providers/external-skill.provider.d.ts +240 -0
- package/skill/providers/external-skill.provider.d.ts.map +1 -0
- package/skill/providers/index.d.ts +12 -0
- package/skill/providers/index.d.ts.map +1 -0
- package/skill/providers/memory-skill.provider.d.ts +97 -0
- package/skill/providers/memory-skill.provider.d.ts.map +1 -0
- package/skill/session/index.d.ts +4 -0
- package/skill/session/index.d.ts.map +1 -0
- package/skill/session/skill-session-store.interface.d.ts +79 -0
- package/skill/session/skill-session-store.interface.d.ts.map +1 -0
- package/skill/session/skill-session.manager.d.ts +137 -0
- package/skill/session/skill-session.manager.d.ts.map +1 -0
- package/skill/session/skill-session.types.d.ts +303 -0
- package/skill/session/skill-session.types.d.ts.map +1 -0
- package/skill/skill-http.utils.d.ts +107 -0
- package/skill/skill-http.utils.d.ts.map +1 -0
- package/skill/skill-mode.utils.d.ts +53 -0
- package/skill/skill-mode.utils.d.ts.map +1 -0
- package/skill/skill-scope.helper.d.ts +55 -0
- package/skill/skill-scope.helper.d.ts.map +1 -0
- package/skill/skill-storage.factory.d.ts +194 -0
- package/skill/skill-storage.factory.d.ts.map +1 -0
- package/skill/skill-storage.interface.d.ts +230 -0
- package/skill/skill-storage.interface.d.ts.map +1 -0
- package/skill/skill-validator.d.ts +63 -0
- package/skill/skill-validator.d.ts.map +1 -0
- package/skill/skill.events.d.ts +88 -0
- package/skill/skill.events.d.ts.map +1 -0
- package/skill/skill.instance.d.ts +92 -0
- package/skill/skill.instance.d.ts.map +1 -0
- package/skill/skill.registry.d.ts +309 -0
- package/skill/skill.registry.d.ts.map +1 -0
- package/skill/skill.utils.d.ts +90 -0
- package/skill/skill.utils.d.ts.map +1 -0
- package/skill/sync/index.d.ts +16 -0
- package/skill/sync/index.d.ts.map +1 -0
- package/skill/sync/memory-sync-state.store.d.ts +49 -0
- package/skill/sync/memory-sync-state.store.d.ts.map +1 -0
- package/skill/sync/skill-hash.d.ts +65 -0
- package/skill/sync/skill-hash.d.ts.map +1 -0
- package/skill/sync/sync-state.interface.d.ts +125 -0
- package/skill/sync/sync-state.interface.d.ts.map +1 -0
- package/skill/tools/index.d.ts +21 -0
- package/skill/tools/index.d.ts.map +1 -0
- package/skill/tools/load-skills.tool.d.ts +76 -0
- package/skill/tools/load-skills.tool.d.ts.map +1 -0
- package/skill/tools/search-skills.tool.d.ts +61 -0
- package/skill/tools/search-skills.tool.d.ts.map +1 -0
- package/tool/flows/call-tool.flow.d.ts +1 -0
- package/tool/flows/call-tool.flow.d.ts.map +1 -1
- package/tool/flows/tools-list.flow.d.ts +15 -0
- package/tool/flows/tools-list.flow.d.ts.map +1 -1
- package/tool/tool.instance.d.ts +8 -0
- package/tool/tool.instance.d.ts.map +1 -1
- package/tool/tool.registry.d.ts +11 -0
- package/tool/tool.registry.d.ts.map +1 -1
- package/tool/tool.utils.d.ts.map +1 -1
- package/tool/ui/template-helpers.d.ts +0 -5
- package/tool/ui/template-helpers.d.ts.map +1 -1
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -1
- package/transport/adapters/transport.local.adapter.d.ts +54 -9
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.sse.adapter.d.ts +11 -2
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.streamable-http.adapter.d.ts +21 -2
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -1
- package/transport/event-stores/event-store.factory.d.ts +96 -0
- package/transport/event-stores/event-store.factory.d.ts.map +1 -0
- package/transport/event-stores/index.d.ts +47 -0
- package/transport/event-stores/index.d.ts.map +1 -0
- package/transport/event-stores/memory.event-store.d.ts +51 -0
- package/transport/event-stores/memory.event-store.d.ts.map +1 -0
- package/transport/event-stores/redis.event-store.d.ts +79 -0
- package/transport/event-stores/redis.event-store.d.ts.map +1 -0
- package/transport/flows/handle.sse.flow.d.ts.map +1 -1
- package/transport/flows/handle.streamable-http.flow.d.ts +3 -1
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -1
- package/transport/in-memory-server.d.ts +85 -0
- package/transport/in-memory-server.d.ts.map +1 -0
- package/transport/index.d.ts +47 -0
- package/transport/index.d.ts.map +1 -1
- package/transport/mcp-handlers/complete-request.handler.d.ts +3 -84
- package/transport/mcp-handlers/complete-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts +3 -128
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/index.d.ts +463 -490
- package/transport/mcp-handlers/index.d.ts.map +1 -1
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts +3 -70
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +3 -72
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-resources-request.handler.d.ts +3 -72
- package/transport/mcp-handlers/list-resources-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-tools-request.handler.d.ts +3 -85
- package/transport/mcp-handlers/list-tools-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/read-resource-request.handler.d.ts +3 -61
- package/transport/mcp-handlers/read-resource-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/skills-list-request.handler.d.ts +9 -0
- package/transport/mcp-handlers/skills-list-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/skills-load-request.handler.d.ts +9 -0
- package/transport/mcp-handlers/skills-load-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/skills-mcp.types.d.ts +157 -0
- package/transport/mcp-handlers/skills-mcp.types.d.ts.map +1 -0
- package/transport/mcp-handlers/skills-search-request.handler.d.ts +9 -0
- package/transport/mcp-handlers/skills-search-request.handler.d.ts.map +1 -0
- package/transport/transport.registry.d.ts +9 -1
- package/transport/transport.registry.d.ts.map +1 -1
- package/transport/transport.types.d.ts +1 -8
- package/transport/transport.types.d.ts.map +1 -1
- package/auth/jwks/dev-key-persistence.d.ts +0 -64
- package/auth/jwks/dev-key-persistence.d.ts.map +0 -1
- package/auth/jwks/index.d.ts +0 -4
- package/auth/jwks/index.d.ts.map +0 -1
- package/auth/jwks/jwks.service.d.ts +0 -58
- package/auth/jwks/jwks.service.d.ts.map +0 -1
- package/auth/jwks/jwks.types.d.ts +0 -33
- package/auth/jwks/jwks.types.d.ts.map +0 -1
- package/auth/jwks/jwks.utils.d.ts +0 -5
- package/auth/jwks/jwks.utils.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.authorize.flow.d.ts +0 -32
- package/auth/oauth/flows/oauth.authorize.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts +0 -47
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.introspect.flow.d.ts +0 -27
- package/auth/oauth/flows/oauth.introspect.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.par.flow.d.ts +0 -28
- package/auth/oauth/flows/oauth.par.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.revoke.flow.d.ts +0 -26
- package/auth/oauth/flows/oauth.revoke.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.token.flow.d.ts +0 -58
- package/auth/oauth/flows/oauth.token.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts +0 -23
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oidc.logout.flow.d.ts +0 -19
- package/auth/oauth/flows/oidc.logout.flow.d.ts.map +0 -1
- package/auth/session/authorization-vault.d.ts +0 -612
- package/auth/session/authorization-vault.d.ts.map +0 -1
- package/auth/session/authorization.store.d.ts +0 -302
- package/auth/session/authorization.store.d.ts.map +0 -1
- package/auth/session/record/session.stateful.d.ts +0 -21
- package/auth/session/record/session.stateful.d.ts.map +0 -1
- package/auth/session/record/session.stateless.d.ts +0 -18
- package/auth/session/record/session.stateless.d.ts.map +0 -1
- package/auth/session/record/session.transparent.d.ts +0 -18
- package/auth/session/record/session.transparent.d.ts.map +0 -1
- package/auth/session/session.crypto.d.ts +0 -8
- package/auth/session/session.crypto.d.ts.map +0 -1
- package/auth/session/session.schema.d.ts +0 -6
- package/auth/session/session.schema.d.ts.map +0 -1
- package/auth/session/token.store.d.ts +0 -36
- package/auth/session/token.store.d.ts.map +0 -1
- package/auth/session/token.vault.d.ts +0 -27
- package/auth/session/token.vault.d.ts.map +0 -1
- package/auth/session/vault-encryption.d.ts +0 -190
- package/auth/session/vault-encryption.d.ts.map +0 -1
- package/auth/utils/audience.validator.d.ts +0 -130
- package/auth/utils/audience.validator.d.ts.map +0 -1
- package/auth/utils/www-authenticate.utils.d.ts +0 -98
- package/auth/utils/www-authenticate.utils.d.ts.map +0 -1
- package/common/migrate/auth-transport.migrate.d.ts +0 -63
- package/common/migrate/auth-transport.migrate.d.ts.map +0 -1
- package/common/migrate/index.d.ts +0 -2
- package/common/migrate/index.d.ts.map +0 -1
- package/common/types/options/auth/auth.interfaces.d.ts.map +0 -1
- package/common/types/options/auth/auth.schema.d.ts.map +0 -1
- package/common/types/options/auth/auth.typecheck.d.ts +0 -2
- package/common/types/options/auth/auth.typecheck.d.ts.map +0 -1
- package/common/types/options/auth/auth.utils.d.ts.map +0 -1
- package/common/types/options/auth/transport.deprecated.d.ts +0 -64
- package/common/types/options/auth/transport.deprecated.d.ts.map +0 -1
- package/common/types/options/http.options.d.ts +0 -15
- package/common/types/options/http.options.d.ts.map +0 -1
- package/common/types/options/logging.options.d.ts +0 -29
- package/common/types/options/logging.options.d.ts.map +0 -1
- package/common/types/options/redis.options.d.ts.map +0 -1
- package/common/types/options/server-info.options.d.ts.map +0 -1
- package/common/types/options/session.options.d.ts +0 -148
- package/common/types/options/session.options.d.ts.map +0 -1
- package/common/types/options/transport.options.d.ts +0 -178
- package/common/types/options/transport.options.d.ts.map +0 -1
- package/context/request-context-storage.d.ts +0 -90
- package/context/request-context-storage.d.ts.map +0 -1
- package/context/request-context.d.ts +0 -185
- package/context/request-context.d.ts.map +0 -1
- package/context/request-context.provider.d.ts +0 -38
- package/context/request-context.provider.d.ts.map +0 -1
- package/context/session-key.provider.d.ts +0 -46
- package/context/session-key.provider.d.ts.map +0 -1
- package/store/adapters/store.base.adapter.d.ts +0 -22
- package/store/adapters/store.base.adapter.d.ts.map +0 -1
- package/store/adapters/store.memory.adapter.d.ts +0 -27
- package/store/adapters/store.memory.adapter.d.ts.map +0 -1
- package/store/adapters/store.redis.adapter.d.ts +0 -34
- package/store/adapters/store.redis.adapter.d.ts.map +0 -1
- package/store/adapters/store.vercel-kv.adapter.d.ts +0 -87
- package/store/adapters/store.vercel-kv.adapter.d.ts.map +0 -1
- package/store/index.d.ts +0 -11
- package/store/index.d.ts.map +0 -1
- package/store/store.factory.d.ts.map +0 -1
- package/store/store.helpers.d.ts +0 -10
- package/store/store.helpers.d.ts.map +0 -1
- package/store/store.registry.d.ts +0 -14
- package/store/store.registry.d.ts.map +0 -1
- package/store/store.tokens.d.ts +0 -4
- package/store/store.tokens.d.ts.map +0 -1
- package/store/store.types.d.ts +0 -65
- package/store/store.types.d.ts.map +0 -1
- package/store/store.utils.d.ts +0 -9
- package/store/store.utils.d.ts.map +0 -1
- package/transport/transport.event-store.d.ts +0 -11
- package/transport/transport.event-store.d.ts.map +0 -1
package/notification/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { NotificationService, type McpNotificationMethod, type RegisteredServer, type McpLoggingLevel, MCP_LOGGING_LEVEL_PRIORITY, type Root, type ClientCapabilities, type ClientInfo, type AIPlatformType, detectAIPlatform, detectPlatformFromUserAgent, detectPlatformFromCapabilities, hasMcpAppsExtension, MCP_APPS_EXTENSION_KEY, } from './notification.service';
|
|
1
|
+
export { NotificationService, type McpNotificationMethod, type RegisteredServer, type McpLoggingLevel, MCP_LOGGING_LEVEL_PRIORITY, type Root, type ClientCapabilities, type ClientInfo, type AIPlatformType, detectAIPlatform, detectPlatformFromUserAgent, detectPlatformFromCapabilities, hasMcpAppsExtension, MCP_APPS_EXTENSION_KEY, supportsElicitation, } from './notification.service';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notification/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,0BAA0B,EAC1B,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,gBAAgB,EAChB,2BAA2B,EAC3B,8BAA8B,EAC9B,mBAAmB,EACnB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notification/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,0BAA0B,EAC1B,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,gBAAgB,EAChB,2BAA2B,EAC3B,8BAA8B,EAC9B,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC"}
|
|
@@ -36,6 +36,16 @@ export interface ClientCapabilities {
|
|
|
36
36
|
};
|
|
37
37
|
[key: string]: unknown;
|
|
38
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Elicitation capability - indicates the client supports interactive user input.
|
|
41
|
+
* Per MCP 2025-11-25 specification.
|
|
42
|
+
*/
|
|
43
|
+
elicitation?: {
|
|
44
|
+
/** Whether the client supports form-based elicitation */
|
|
45
|
+
form?: Record<string, unknown>;
|
|
46
|
+
/** Whether the client supports URL-based elicitation */
|
|
47
|
+
url?: Record<string, unknown>;
|
|
48
|
+
};
|
|
39
49
|
}
|
|
40
50
|
/**
|
|
41
51
|
* Client info from the MCP initialize request.
|
|
@@ -64,6 +74,14 @@ export declare function hasMcpAppsExtension(capabilities?: ClientCapabilities):
|
|
|
64
74
|
* @returns Platform type if detected from capabilities, undefined otherwise
|
|
65
75
|
*/
|
|
66
76
|
export declare function detectPlatformFromCapabilities(capabilities?: ClientCapabilities): AIPlatformType | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Check if client supports elicitation.
|
|
79
|
+
*
|
|
80
|
+
* @param capabilities - Client capabilities from initialize request
|
|
81
|
+
* @param mode - Optional mode to check ('form' or 'url'). If not provided, checks for any elicitation support.
|
|
82
|
+
* @returns true if elicitation is supported for the given mode
|
|
83
|
+
*/
|
|
84
|
+
export declare function supportsElicitation(capabilities?: ClientCapabilities, mode?: 'form' | 'url'): boolean;
|
|
67
85
|
/**
|
|
68
86
|
* Detect platform from user-agent header.
|
|
69
87
|
* Called during session creation before MCP initialize.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.service.d.ts","sourceRoot":"","sources":["../../src/notification/notification.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,aAAa,EAClB,KAAK,IAAI,EACV,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAE7B,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;;GAGG;AACH,YAAY,EAAE,IAAI,EAAE,CAAC;AAErB;;GAEG;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SAAS;IAIrD;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAkB9B,OAAO,CAAC,wBAAwB;CAqBjC"}
|
|
1
|
+
{"version":3,"file":"notification.service.d.ts","sourceRoot":"","sources":["../../src/notification/notification.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,aAAa,EAClB,KAAK,IAAI,EACV,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAE7B,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;;GAGG;AACH,YAAY,EAAE,IAAI,EAAE,CAAC;AAErB;;GAEG;AACH,YAAY,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAE3C;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,KAAK,CAAC,EAAE;QACN,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,CAAC;IACF,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,6DAA6D;IAC7D,YAAY,CAAC,EAAE;QACb,+CAA+C;QAC/C,4BAA4B,CAAC,EAAE;YAC7B,qDAAqD;YACrD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;SACtB,CAAC;QACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;IACF;;;OAGG;IACH,WAAW,CAAC,EAAE;QACZ,yDAAyD;QACzD,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC/B,wDAAwD;QACxD,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,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d,OAAO,CAAC,EAAE,MAAM,GACf,OAAO;IAwBV;;;;;;;OAOG;IACH,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,kBAAkB,GAAG,OAAO;IAgBnF;;;;;OAKG;IACH,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAIxE;;;;;;;;OAQG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,cAAc,GAAG,SAAS;IAmBpF;;;;;OAKG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;IAIxD;;;;;;OAMG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc;IAKlD;;;;;OAKG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAKzC;;;;;;;;;;;;OAYG;IACG,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAgD3G;;;;;;OAMG;IACH,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAgBhD;;;;;OAKG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,SAAS;IAIrD;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAkB9B,OAAO,CAAC,wBAAwB;CAqBjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "FrontMCP SDK",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"homepage": "https://docs.agentfront.dev",
|
|
@@ -52,13 +52,18 @@
|
|
|
52
52
|
},
|
|
53
53
|
"./esm": null
|
|
54
54
|
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=22.0.0"
|
|
57
|
+
},
|
|
55
58
|
"peerDependencies": {
|
|
56
59
|
"zod": "^4.0.0",
|
|
60
|
+
"zod-from-json-schema": "^0.5.2",
|
|
57
61
|
"express": "^4.18.0 || ^5.0.0",
|
|
58
62
|
"cors": "^2.8.5",
|
|
59
63
|
"raw-body": "^3.0.0",
|
|
60
64
|
"content-type": "^1.0.5",
|
|
61
|
-
"
|
|
65
|
+
"vectoriadb": "^2.0.2",
|
|
66
|
+
"@vercel/kv": "^3.0.0"
|
|
62
67
|
},
|
|
63
68
|
"peerDependenciesMeta": {
|
|
64
69
|
"@vercel/kv": {
|
|
@@ -66,14 +71,16 @@
|
|
|
66
71
|
}
|
|
67
72
|
},
|
|
68
73
|
"dependencies": {
|
|
69
|
-
"@frontmcp/utils": "0.
|
|
70
|
-
"@frontmcp/di": "0.
|
|
71
|
-
"@frontmcp/uipack": "0.
|
|
72
|
-
"@
|
|
74
|
+
"@frontmcp/utils": "0.8.0",
|
|
75
|
+
"@frontmcp/di": "0.8.0",
|
|
76
|
+
"@frontmcp/uipack": "0.8.0",
|
|
77
|
+
"@frontmcp/auth": "0.8.0",
|
|
78
|
+
"@modelcontextprotocol/sdk": "1.25.3",
|
|
73
79
|
"@langchain/core": "^1.1.8",
|
|
74
80
|
"@langchain/openai": "^1.2.0",
|
|
75
81
|
"@langchain/anthropic": "^1.3.3",
|
|
76
82
|
"ioredis": "^5.8.0",
|
|
83
|
+
"js-yaml": "^4.1.1",
|
|
77
84
|
"jose": "^6.1.3",
|
|
78
85
|
"reflect-metadata": "^0.2.2"
|
|
79
86
|
},
|
|
@@ -83,7 +90,6 @@
|
|
|
83
90
|
"@langchain/groq": "^1.0.2"
|
|
84
91
|
},
|
|
85
92
|
"devDependencies": {
|
|
86
|
-
"@vercel/kv": "^3.0.0",
|
|
87
93
|
"typescript": "^5.9.3"
|
|
88
94
|
}
|
|
89
95
|
}
|
|
@@ -29,6 +29,8 @@ export default class PluginRegistry extends RegistryAbstract<PluginEntry, Plugin
|
|
|
29
29
|
private readonly pResources;
|
|
30
30
|
/** prompts by token */
|
|
31
31
|
private readonly pPrompts;
|
|
32
|
+
/** skills by token */
|
|
33
|
+
private readonly pSkills;
|
|
32
34
|
private readonly scope;
|
|
33
35
|
private readonly scopeInfo?;
|
|
34
36
|
private readonly owner?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.registry.d.ts","sourceRoot":"","sources":["../../src/plugin/plugin.registry.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EACL,aAAa,EACb,WAAW,EAEX,YAAY,EACZ,uBAAuB,EACvB,UAAU,EAEX,MAAM,WAAW,CAAC;AAEnB,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.registry.d.ts","sourceRoot":"","sources":["../../src/plugin/plugin.registry.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EACL,aAAa,EACb,WAAW,EAEX,YAAY,EACZ,uBAAuB,EACvB,UAAU,EAEX,MAAM,WAAW,CAAC;AAEnB,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAO7D,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAKjC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,8DAA8D;IAC9D,QAAQ,EAAE,KAAK,CAAC;IAChB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,uDAAuD;IACvD,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,OAAO,cACnB,SAAQ,gBAAgB,CAAC,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,CAChE,YAAW,uBAAuB;IAElC,yBAAyB;IACzB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA2C;IACtE,yBAAyB;IACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyC;IAClE,wBAAwB;IACxB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA0C;IACpE,qBAAqB;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuC;IAC9D,yBAAyB;IACzB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA2C;IACtE,uBAAuB;IACvB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyC;IAClE,sBAAsB;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwC;IAEhE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAkB;IAC7C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAgB;gBAGrC,SAAS,EAAE,gBAAgB,EAC3B,IAAI,EAAE,UAAU,EAAE,EAClB,KAAK,CAAC,EAAE,aAAa;IACrB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,eAAe;IAQ7B,UAAU,IAAI,WAAW,EAAE;cAIR,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,sBAAsB,CAAC,YAAY,CAAC;IAgBrF,SAAS,CAAC,UAAU;cAcJ,UAAU;CA6K3B"}
|
|
@@ -5,16 +5,21 @@ import { RegistryAbstract, RegistryBuildMapResult } from '../regsitry';
|
|
|
5
5
|
import { ProviderViews } from './provider.types';
|
|
6
6
|
import { Scope } from '../scope';
|
|
7
7
|
import HookRegistry from '../hooks/hook.registry';
|
|
8
|
-
import { type
|
|
8
|
+
import { type DistributedEnabled } from '../common/types/options/transport';
|
|
9
9
|
/**
|
|
10
10
|
* Configuration options for ProviderRegistry.
|
|
11
11
|
*/
|
|
12
12
|
export interface ProviderRegistryOptions {
|
|
13
13
|
/**
|
|
14
|
-
* Distributed mode
|
|
14
|
+
* Distributed mode setting.
|
|
15
15
|
* Controls provider caching behavior for serverless/distributed deployments.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
distributedMode?: DistributedEnabled;
|
|
18
|
+
/**
|
|
19
|
+
* Override for provider session caching.
|
|
20
|
+
* When undefined, defaults based on distributedMode setting.
|
|
21
|
+
*/
|
|
22
|
+
providerCaching?: boolean;
|
|
18
23
|
}
|
|
19
24
|
export default class ProviderRegistry extends RegistryAbstract<ProviderEntry, ProviderRecord, ProviderType[], ProviderRegistry | undefined> implements ProviderRegistryInterface {
|
|
20
25
|
private readonly parentProviders?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.registry.d.ts","sourceRoot":"","sources":["../../src/provider/provider.registry.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAEL,aAAa,EACb,KAAK,EACL,cAAc,EAEd,sBAAsB,EAMvB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,yBAAyB,EACzB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,cAAc,EACf,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"provider.registry.d.ts","sourceRoot":"","sources":["../../src/provider/provider.registry.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAEL,aAAa,EACb,KAAK,EACL,cAAc,EAEd,sBAAsB,EAMvB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,yBAAyB,EACzB,UAAU,E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AO,CAAC,aAAa,CAAC;IA4EpG;;OAEG;YACW,uBAAuB;IA8DrC;;OAEG;YACW,gBAAgB;IAsC9B;;;;;;;OAOG;IACH,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,GAAG,CAAC;CAUvD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type, Token } from '@frontmcp/di';
|
|
2
|
-
import { ProviderMetadata, ProviderRecord, ProviderScope } from '../common';
|
|
2
|
+
import type { ProviderMetadata, ProviderRecord, ProviderScope } from '../common';
|
|
3
3
|
/**
|
|
4
4
|
* Shape for provider input items (used during normalization).
|
|
5
5
|
* Supports both class-based providers and configuration objects.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.utils.d.ts","sourceRoot":"","sources":["../../src/provider/provider.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAiD,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.utils.d.ts","sourceRoot":"","sources":["../../src/provider/provider.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAiD,MAAM,cAAc,CAAC;AAE1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAEjF;;;GAGG;AACH,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;IAC7C,MAAM,CAAC,EAAE,MAAM,SAAS,KAAK,EAAE,CAAC;IAEhC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAkCD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,CAwD3E;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,EAClB,WAAW,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,GAAG,YAAY,KAAK,KAAK,EAAE,GACtE,KAAK,EAAE,CAmBT;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,cAAc,EACnB,WAAW,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,YAAY,GAAG,WAAW,KAAK,KAAK,EAAE,GACtE,KAAK,EAAE,CAaT"}
|
|
@@ -54,6 +54,10 @@ export declare const httpRequestStateSchema: z.ZodObject<{
|
|
|
54
54
|
"generic-mcp": "generic-mcp";
|
|
55
55
|
"ext-apps": "ext-apps";
|
|
56
56
|
}>>;
|
|
57
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
58
|
+
clientVersion: z.ZodOptional<z.ZodString>;
|
|
59
|
+
supportsElicitation: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
skillsOnlyMode: z.ZodOptional<z.ZodBoolean>;
|
|
57
61
|
}, z.core.$strip>>;
|
|
58
62
|
}, z.core.$strip>>;
|
|
59
63
|
user: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.request.flow.d.ts","sourceRoot":"","sources":["../../../src/scope/flows/http.request.flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,cAAc,EACd,gBAAgB,EAEhB,QAAQ,EACR,UAAU,EAEV,aAAa,
|
|
1
|
+
{"version":3,"file":"http.request.flow.d.ts","sourceRoot":"","sources":["../../../src/scope/flows/http.request.flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,cAAc,EACd,gBAAgB,EAEhB,QAAQ,EACR,UAAU,EAEV,aAAa,EAUd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,QAAA,MAAM,IAAI;;;;;CA8B2B,CAAC;AAEtC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIjC,CAAC;AAEH,QAAA,MAAM,IAAI,EAAG,cAAuB,CAAC;AAGrC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,cAAc,EAAE,cAAc,CAC5B,eAAe,EACf,OAAO,IAAI,EACX,OAAO,eAAe,EACtB,OAAO,gBAAgB,EACvB,OAAO,sBAAsB,CAC9B,CAAC;KACH;CACF;AAYD,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAChE,MAAM,wCAA8C;IACpD,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,SAAS,CAAM;IAEvB,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU;IActD,YAAY;IAkDZ,kBAAkB;IA+ClB,MAAM;IAmIN,eAAe;IAuBf,SAAS;IAuBT,oBAAoB;IAuBpB,kBAAkB;IAuBlB,mBAAmB;IAuBnB,mBAAmB;IAsCnB,QAAQ;IAcd;;;OAGG;IACH,OAAO,CAAC,QAAQ;CA8CjB"}
|
|
@@ -8,9 +8,13 @@ import ToolRegistry from '../tool/tool.registry';
|
|
|
8
8
|
import ResourceRegistry from '../resource/resource.registry';
|
|
9
9
|
import PromptRegistry from '../prompt/prompt.registry';
|
|
10
10
|
import AgentRegistry from '../agent/agent.registry';
|
|
11
|
+
import SkillRegistry from '../skill/skill.registry';
|
|
12
|
+
import { SkillSessionManager } from '../skill/session';
|
|
11
13
|
import { NotificationService } from '../notification';
|
|
12
14
|
import { ToolUIRegistry } from '../tool/ui';
|
|
13
15
|
import PluginRegistry from '../plugin/plugin.registry';
|
|
16
|
+
import { ElicitationStore } from '../elicitation';
|
|
17
|
+
import type { EventStore } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
14
18
|
export declare class Scope extends ScopeEntry {
|
|
15
19
|
readonly id: string;
|
|
16
20
|
private readonly globalProviders;
|
|
@@ -24,6 +28,7 @@ export declare class Scope extends ScopeEntry {
|
|
|
24
28
|
private scopeResources;
|
|
25
29
|
private scopePrompts;
|
|
26
30
|
private scopeAgents;
|
|
31
|
+
private scopeSkills;
|
|
27
32
|
private scopePlugins?;
|
|
28
33
|
transportService: TransportService;
|
|
29
34
|
notificationService: NotificationService;
|
|
@@ -32,6 +37,12 @@ export declare class Scope extends ScopeEntry {
|
|
|
32
37
|
readonly routeBase: string;
|
|
33
38
|
readonly orchestrated: boolean;
|
|
34
39
|
readonly server: FrontMcpServer;
|
|
40
|
+
/** Lazy-initialized elicitation store for distributed elicitation support */
|
|
41
|
+
private _elicitationStore?;
|
|
42
|
+
/** Optional skill session manager for tool authorization enforcement */
|
|
43
|
+
private _skillSession?;
|
|
44
|
+
/** EventStore for SSE resumability support (optional) */
|
|
45
|
+
private _eventStore?;
|
|
35
46
|
constructor(rec: ScopeRecord, globalProviders: ProviderRegistry);
|
|
36
47
|
protected initialize(): Promise<void>;
|
|
37
48
|
private get defaultScopeProviders();
|
|
@@ -45,8 +56,71 @@ export declare class Scope extends ScopeEntry {
|
|
|
45
56
|
get resources(): ResourceRegistry;
|
|
46
57
|
get prompts(): PromptRegistry;
|
|
47
58
|
get agents(): AgentRegistry;
|
|
59
|
+
get skills(): SkillRegistry;
|
|
60
|
+
/**
|
|
61
|
+
* Get the skill session manager for tool authorization enforcement.
|
|
62
|
+
* Returns undefined if skill sessions are not enabled.
|
|
63
|
+
*
|
|
64
|
+
* Skill sessions provide:
|
|
65
|
+
* - Tool allowlists: Only tools declared in the active skill can be called
|
|
66
|
+
* - Policy modes: strict (block), approval (prompt), or permissive (warn)
|
|
67
|
+
* - Rate limiting: Optional per-session tool call limits
|
|
68
|
+
*
|
|
69
|
+
* Enable via @FrontMcp metadata: `skills: { sessions: { enabled: true, defaultPolicyMode: 'strict' } }`
|
|
70
|
+
*/
|
|
71
|
+
get skillSession(): SkillSessionManager | undefined;
|
|
48
72
|
get plugins(): PluginRegistry | undefined;
|
|
49
73
|
get notifications(): NotificationService;
|
|
74
|
+
/**
|
|
75
|
+
* Get the elicitation store for distributed elicitation support.
|
|
76
|
+
*
|
|
77
|
+
* Lazily initializes the store using the elicitation store factory:
|
|
78
|
+
* - Redis: Uses RedisElicitationStore for distributed deployments
|
|
79
|
+
* - In-memory: Uses InMemoryElicitationStore for single-node/dev
|
|
80
|
+
* - Edge runtime without Redis: Throws error (Edge functions are stateless)
|
|
81
|
+
*
|
|
82
|
+
* @see createElicitationStore for factory implementation details
|
|
83
|
+
*/
|
|
84
|
+
get elicitationStore(): ElicitationStore;
|
|
85
|
+
/**
|
|
86
|
+
* Get the EventStore for SSE resumability support.
|
|
87
|
+
*
|
|
88
|
+
* Returns undefined if EventStore is not enabled.
|
|
89
|
+
* When enabled, clients can reconnect and resume missed SSE messages
|
|
90
|
+
* using the Last-Event-ID header per the MCP protocol.
|
|
91
|
+
*
|
|
92
|
+
* Enable via @FrontMcp metadata:
|
|
93
|
+
* ```typescript
|
|
94
|
+
* transport: {
|
|
95
|
+
* eventStore: {
|
|
96
|
+
* enabled: true,
|
|
97
|
+
* provider: 'memory', // or 'redis'
|
|
98
|
+
* }
|
|
99
|
+
* }
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
get eventStore(): EventStore | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Register the sendElicitationResult system tool.
|
|
105
|
+
* This tool is hidden by default and only shown to clients that don't support elicitation.
|
|
106
|
+
*/
|
|
107
|
+
private registerSendElicitationResultTool;
|
|
108
|
+
/**
|
|
109
|
+
* Detect if running on Edge runtime (Vercel Edge, Cloudflare Workers).
|
|
110
|
+
* Edge functions are stateless and require external storage for elicitation.
|
|
111
|
+
*/
|
|
112
|
+
private isEdgeRuntime;
|
|
113
|
+
/**
|
|
114
|
+
* Get pagination configuration for list operations.
|
|
115
|
+
* Returns the parsed pagination config from @FrontMcp metadata.
|
|
116
|
+
*/
|
|
117
|
+
get pagination(): {
|
|
118
|
+
tools?: {
|
|
119
|
+
mode: boolean | "auto";
|
|
120
|
+
pageSize: number;
|
|
121
|
+
autoThreshold: number;
|
|
122
|
+
} | undefined;
|
|
123
|
+
} | undefined;
|
|
50
124
|
registryFlows(...flows: FlowType[]): Promise<void>;
|
|
51
125
|
runFlow<Name extends FlowName>(name: Name, input: FlowInputOf<Name>, deps?: Map<Token, Type>): Promise<FlowOutputOf<Name> | undefined>;
|
|
52
126
|
runFlowForOutput<Name extends FlowName>(name: Name, input: FlowInputOf<Name>, deps?: Map<Token, Type>): Promise<FlowOutputOf<Name>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.instance.d.ts","sourceRoot":"","sources":["../../src/scope/scope.instance.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAEL,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,cAAc,EACd,qBAAqB,EAErB,UAAU,EACV,WAAW,EACX,KAAK,EACL,IAAI,EACL,MAAM,WAAW,CAAC;AAEnB,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,YAAY,MAAM,uBAAuB,CAAC;AACjD,OAAO,gBAAgB,MA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
+
import { FrontMcpServer, HttpOptions, HttpMethod, ServerRequestHandler } from '../common';
|
|
2
2
|
import { HostServerAdapter } from './adapters/base.host.adapter';
|
|
3
3
|
export declare class FrontMcpServerInstance extends FrontMcpServer {
|
|
4
|
-
config:
|
|
4
|
+
config: HttpOptions;
|
|
5
5
|
host: HostServerAdapter;
|
|
6
6
|
private healthRouteRegistered;
|
|
7
|
-
constructor(httpConfig:
|
|
7
|
+
constructor(httpConfig: HttpOptions);
|
|
8
8
|
private setupDefaults;
|
|
9
9
|
registerMiddleware(entryPath: string, handler: ServerRequestHandler): void | Promise<void>;
|
|
10
10
|
registerRoute(method: HttpMethod, path: string, handler: ServerRequestHandler): void | Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.instance.d.ts","sourceRoot":"","sources":["../../src/server/server.instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"server.instance.d.ts","sourceRoot":"","sources":["../../src/server/server.instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAE1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE,qBAAa,sBAAuB,SAAQ,cAAc;IACxD,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,iBAAiB,CAAC;IACxB,OAAO,CAAC,qBAAqB,CAAS;gBAE1B,UAAU,EAAE,WAAW;IAMnC,OAAO,CAAC,aAAa;IAWrB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB;IAInE,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB;IAIpE,eAAe,CAAC,OAAO,EAAE,oBAAoB,GAAG,oBAAoB;IAI7E,OAAO;IAUP,UAAU,IAAI,OAAO;IAIrB,KAAK;CAIN"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill HTTP Authentication
|
|
3
|
+
*
|
|
4
|
+
* Provides authentication validation for skills HTTP endpoints.
|
|
5
|
+
*
|
|
6
|
+
* @module skill/auth
|
|
7
|
+
*/
|
|
8
|
+
export { SkillHttpAuthValidator, createSkillHttpAuthValidator } from './skill-http-auth';
|
|
9
|
+
export type { SkillHttpAuthContext, SkillHttpAuthResult, SkillHttpAuthValidatorOptions } from './skill-http-auth';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/skill/auth/index.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,OAAO,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AACzF,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication validation for skills HTTP endpoints.
|
|
3
|
+
*
|
|
4
|
+
* Supports multiple authentication modes:
|
|
5
|
+
* - public: No authentication required
|
|
6
|
+
* - api-key: API key in X-API-Key header or Authorization: ApiKey <key>
|
|
7
|
+
* - bearer: JWT token validated against configured issuer using JWKS
|
|
8
|
+
*
|
|
9
|
+
* @module skill/auth/skill-http-auth
|
|
10
|
+
*/
|
|
11
|
+
import type { FrontMcpLogger } from '../../common';
|
|
12
|
+
import type { SkillsConfigOptions } from '../../common/types/options/skills-http';
|
|
13
|
+
/**
|
|
14
|
+
* Request context for auth validation.
|
|
15
|
+
*/
|
|
16
|
+
export interface SkillHttpAuthContext {
|
|
17
|
+
/** Request headers (lowercase keys) */
|
|
18
|
+
headers: Record<string, string | string[] | undefined>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Result of auth validation.
|
|
22
|
+
*/
|
|
23
|
+
export interface SkillHttpAuthResult {
|
|
24
|
+
/** Whether the request is authorized */
|
|
25
|
+
authorized: boolean;
|
|
26
|
+
/** Error message if not authorized */
|
|
27
|
+
error?: string;
|
|
28
|
+
/** HTTP status code for the error response */
|
|
29
|
+
statusCode?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Options for creating SkillHttpAuthValidator.
|
|
33
|
+
*/
|
|
34
|
+
export interface SkillHttpAuthValidatorOptions {
|
|
35
|
+
/** Skills configuration with auth settings */
|
|
36
|
+
skillsConfig: SkillsConfigOptions;
|
|
37
|
+
/** Optional logger for debugging */
|
|
38
|
+
logger?: FrontMcpLogger;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Validator for skills HTTP endpoint authentication.
|
|
42
|
+
*
|
|
43
|
+
* Implements authentication validation based on SkillsConfigAuthMode:
|
|
44
|
+
* - public: No validation, all requests pass
|
|
45
|
+
* - api-key: Validates API key from X-API-Key header or Authorization: ApiKey <key>
|
|
46
|
+
* - bearer: Validates JWT token using JWKS from configured issuer
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```typescript
|
|
50
|
+
* const validator = new SkillHttpAuthValidator({
|
|
51
|
+
* skillsConfig: { auth: 'api-key', apiKeys: ['sk-xxx'] },
|
|
52
|
+
* logger,
|
|
53
|
+
* });
|
|
54
|
+
*
|
|
55
|
+
* const result = await validator.validate({ headers: req.headers });
|
|
56
|
+
* if (!result.authorized) {
|
|
57
|
+
* res.status(result.statusCode ?? 401).json({ error: result.error });
|
|
58
|
+
* return;
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare class SkillHttpAuthValidator {
|
|
63
|
+
private readonly skillsConfig;
|
|
64
|
+
private readonly logger?;
|
|
65
|
+
constructor(options: SkillHttpAuthValidatorOptions);
|
|
66
|
+
/**
|
|
67
|
+
* Validate auth for a request.
|
|
68
|
+
*
|
|
69
|
+
* @param ctx - Request context with headers
|
|
70
|
+
* @returns Auth result with authorized flag and optional error
|
|
71
|
+
*/
|
|
72
|
+
validate(ctx: SkillHttpAuthContext): Promise<SkillHttpAuthResult>;
|
|
73
|
+
/**
|
|
74
|
+
* Validate API key authentication.
|
|
75
|
+
*
|
|
76
|
+
* Accepts API key in:
|
|
77
|
+
* - X-API-Key header
|
|
78
|
+
* - Authorization header as `ApiKey <key>`
|
|
79
|
+
*
|
|
80
|
+
* Uses timing-safe comparison to prevent timing attacks.
|
|
81
|
+
*/
|
|
82
|
+
private validateApiKey;
|
|
83
|
+
/**
|
|
84
|
+
* Check if any key in the list matches the candidate using timing-safe comparison.
|
|
85
|
+
* This prevents timing attacks that could reveal information about valid API keys.
|
|
86
|
+
*/
|
|
87
|
+
private timingSafeIncludes;
|
|
88
|
+
/**
|
|
89
|
+
* Validate Bearer token (JWT) authentication.
|
|
90
|
+
*
|
|
91
|
+
* Uses JWKS from the configured issuer to validate the JWT.
|
|
92
|
+
* Validates issuer and optionally audience claims.
|
|
93
|
+
*/
|
|
94
|
+
private validateBearer;
|
|
95
|
+
/**
|
|
96
|
+
* Get a header value from the headers object.
|
|
97
|
+
* Performs case-insensitive header name lookup per HTTP spec.
|
|
98
|
+
* Handles both string and string[] values.
|
|
99
|
+
*/
|
|
100
|
+
private getHeader;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Create a skill HTTP auth validator from config.
|
|
104
|
+
*
|
|
105
|
+
* Returns null if no validation is needed (public or inherit mode).
|
|
106
|
+
*
|
|
107
|
+
* @param skillsConfig - Skills configuration
|
|
108
|
+
* @param logger - Optional logger
|
|
109
|
+
* @returns Validator instance or null
|
|
110
|
+
*/
|
|
111
|
+
export declare function createSkillHttpAuthValidator(skillsConfig: SkillsConfigOptions | undefined, logger?: FrontMcpLogger): SkillHttpAuthValidator | null;
|
|
112
|
+
//# sourceMappingURL=skill-http-auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+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AAC,EAAE,cAAc,GACtB,sBAAsB,GAAG,IAAI,CAM/B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill HTTP Caching
|
|
3
|
+
*
|
|
4
|
+
* Provides caching for skills HTTP endpoints to reduce latency
|
|
5
|
+
* and resource usage for repeated requests.
|
|
6
|
+
*
|
|
7
|
+
* @module skill/cache
|
|
8
|
+
*/
|
|
9
|
+
export { SkillHttpCache, MemorySkillHttpCache, RedisSkillHttpCache } from './skill-http-cache.js';
|
|
10
|
+
export { createSkillHttpCache } from './skill-http-cache.factory.js';
|
|
11
|
+
export type { SkillHttpCacheOptions, SkillHttpCacheResult, SkillHttpCacheRedisOptions, } from './skill-http-cache.factory.js';
|
|
12
|
+
export { getSkillHttpCache, invalidateScopeCache, invalidateSkillInCache, disposeAllCaches, } from './skill-http-cache.holder.js';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/skill/cache/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAClG,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,8BAA8B,CAAC"}
|