@frontmcp/sdk 0.6.3 → 0.7.2
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/adapter/adapter.instance.d.ts +3 -1
- package/adapter/adapter.instance.d.ts.map +1 -0
- package/adapter/adapter.regsitry.d.ts +1 -0
- package/adapter/adapter.regsitry.d.ts.map +1 -0
- package/adapter/adapter.utils.d.ts +3 -1
- package/adapter/adapter.utils.d.ts.map +1 -0
- package/agent/adapters/adapter.factory.d.ts +105 -0
- package/agent/adapters/adapter.factory.d.ts.map +1 -0
- package/agent/adapters/base.adapter.d.ts +116 -0
- package/agent/adapters/base.adapter.d.ts.map +1 -0
- package/agent/adapters/index.d.ts +47 -0
- package/agent/adapters/index.d.ts.map +1 -0
- package/agent/adapters/langchain.adapter.d.ts +178 -0
- package/agent/adapters/langchain.adapter.d.ts.map +1 -0
- package/agent/adapters/providers/index.d.ts +36 -0
- package/agent/adapters/providers/index.d.ts.map +1 -0
- package/agent/adapters/providers/types.d.ts +15 -0
- package/agent/adapters/providers/types.d.ts.map +1 -0
- package/agent/agent-execution-loop.d.ts +209 -0
- package/agent/agent-execution-loop.d.ts.map +1 -0
- package/agent/agent.events.d.ts +149 -0
- package/agent/agent.events.d.ts.map +1 -0
- package/agent/agent.instance.d.ts +201 -0
- package/agent/agent.instance.d.ts.map +1 -0
- package/agent/agent.registry.d.ts +137 -0
- package/agent/agent.registry.d.ts.map +1 -0
- package/agent/agent.scope.d.ts +333 -0
- package/agent/agent.scope.d.ts.map +1 -0
- package/agent/agent.utils.d.ts +72 -0
- package/agent/agent.utils.d.ts.map +1 -0
- package/agent/flows/call-agent.flow.d.ts +306 -0
- package/agent/flows/call-agent.flow.d.ts.map +1 -0
- package/agent/flows/index.d.ts +2 -0
- package/agent/flows/index.d.ts.map +1 -0
- package/agent/hooks/agent.hooks.d.ts +52 -0
- package/agent/hooks/agent.hooks.d.ts.map +1 -0
- package/agent/hooks/index.d.ts +2 -0
- package/agent/hooks/index.d.ts.map +1 -0
- package/agent/index.d.ts +51 -0
- package/agent/index.d.ts.map +1 -0
- package/app/app.registry.d.ts +1 -0
- package/app/app.registry.d.ts.map +1 -0
- package/app/app.utils.d.ts +3 -1
- package/app/app.utils.d.ts.map +1 -0
- package/app/instances/app.local.instance.d.ts +4 -0
- package/app/instances/app.local.instance.d.ts.map +1 -0
- package/app/instances/app.remote.instance.d.ts +98 -0
- package/app/instances/app.remote.instance.d.ts.map +1 -0
- package/app/instances/index.d.ts +1 -0
- package/app/instances/index.d.ts.map +1 -0
- package/auth/auth.registry.d.ts +1 -0
- package/auth/auth.registry.d.ts.map +1 -0
- package/auth/auth.utils.d.ts +3 -1
- package/auth/auth.utils.d.ts.map +1 -0
- package/auth/authorization/authorization.class.d.ts +1 -0
- package/auth/authorization/authorization.class.d.ts.map +1 -0
- package/auth/authorization/authorization.types.d.ts +1 -0
- package/auth/authorization/authorization.types.d.ts.map +1 -0
- package/auth/authorization/index.d.ts +1 -0
- package/auth/authorization/index.d.ts.map +1 -0
- package/auth/authorization/orchestrated.authorization.d.ts +1 -0
- package/auth/authorization/orchestrated.authorization.d.ts.map +1 -0
- package/auth/authorization/public.authorization.d.ts +1 -0
- package/auth/authorization/public.authorization.d.ts.map +1 -0
- package/auth/authorization/transparent.authorization.d.ts +1 -0
- package/auth/authorization/transparent.authorization.d.ts.map +1 -0
- package/auth/consent/consent.types.d.ts +1 -0
- package/auth/consent/consent.types.d.ts.map +1 -0
- package/auth/consent/index.d.ts +1 -0
- package/auth/consent/index.d.ts.map +1 -0
- package/auth/detection/auth-provider-detection.d.ts +1 -0
- package/auth/detection/auth-provider-detection.d.ts.map +1 -0
- package/auth/detection/index.d.ts +1 -0
- package/auth/detection/index.d.ts.map +1 -0
- package/auth/flows/auth.verify.flow.d.ts +8 -2
- package/auth/flows/auth.verify.flow.d.ts.map +1 -0
- package/auth/flows/oauth.authorize.flow.d.ts +1 -0
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -0
- package/auth/flows/oauth.callback.flow.d.ts +1 -0
- package/auth/flows/oauth.callback.flow.d.ts.map +1 -0
- package/auth/flows/oauth.register.flow.d.ts +4 -3
- package/auth/flows/oauth.register.flow.d.ts.map +1 -0
- package/auth/flows/oauth.token.flow.d.ts +1 -0
- package/auth/flows/oauth.token.flow.d.ts.map +1 -0
- package/auth/flows/session.verify.flow.d.ts +12 -1
- package/auth/flows/session.verify.flow.d.ts.map +1 -0
- package/auth/flows/well-known.jwks.flow.d.ts +1 -0
- package/auth/flows/well-known.jwks.flow.d.ts.map +1 -0
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +1 -0
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -0
- package/auth/flows/well-known.prm.flow.d.ts +1 -0
- package/auth/flows/well-known.prm.flow.d.ts.map +1 -0
- package/auth/instances/instance.local-primary-auth.d.ts +1 -0
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -0
- package/auth/instances/instance.remote-primary-auth.d.ts +1 -0
- package/auth/instances/instance.remote-primary-auth.d.ts.map +1 -0
- package/auth/jwks/dev-key-persistence.d.ts +1 -0
- package/auth/jwks/dev-key-persistence.d.ts.map +1 -0
- package/auth/jwks/index.d.ts +1 -0
- package/auth/jwks/index.d.ts.map +1 -0
- package/auth/jwks/jwks.service.d.ts +16 -2
- package/auth/jwks/jwks.service.d.ts.map +1 -0
- package/auth/jwks/jwks.types.d.ts +1 -0
- package/auth/jwks/jwks.types.d.ts.map +1 -0
- package/auth/jwks/jwks.utils.d.ts +1 -0
- package/auth/jwks/jwks.utils.d.ts.map +1 -0
- package/auth/machine-id.d.ts +1 -0
- package/auth/machine-id.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.authorize.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.authorize.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.introspect.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.introspect.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.par.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.par.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.revoke.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.revoke.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.token.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.token.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oidc.logout.flow.d.ts +1 -0
- package/auth/oauth/flows/oidc.logout.flow.d.ts.map +1 -0
- package/auth/session/authorization-vault.d.ts +5 -4
- package/auth/session/authorization-vault.d.ts.map +1 -0
- package/auth/session/authorization.store.d.ts +1 -0
- package/auth/session/authorization.store.d.ts.map +1 -0
- package/auth/session/encrypted-authorization-vault.d.ts +1 -0
- package/auth/session/encrypted-authorization-vault.d.ts.map +1 -0
- package/auth/session/index.d.ts +1 -0
- package/auth/session/index.d.ts.map +1 -0
- package/auth/session/record/session.base.d.ts +1 -0
- package/auth/session/record/session.base.d.ts.map +1 -0
- package/auth/session/record/session.stateful.d.ts +1 -0
- package/auth/session/record/session.stateful.d.ts.map +1 -0
- package/auth/session/record/session.stateless.d.ts +1 -0
- package/auth/session/record/session.stateless.d.ts.map +1 -0
- package/auth/session/record/session.transparent.d.ts +1 -0
- package/auth/session/record/session.transparent.d.ts.map +1 -0
- package/auth/session/redis-session.store.d.ts +1 -0
- package/auth/session/redis-session.store.d.ts.map +1 -0
- package/auth/session/session-crypto.d.ts +1 -0
- package/auth/session/session-crypto.d.ts.map +1 -0
- package/auth/session/session-rate-limiter.d.ts +1 -0
- package/auth/session/session-rate-limiter.d.ts.map +1 -0
- package/auth/session/session.crypto.d.ts +1 -0
- package/auth/session/session.crypto.d.ts.map +1 -0
- package/auth/session/session.schema.d.ts +1 -0
- package/auth/session/session.schema.d.ts.map +1 -0
- package/auth/session/session.service.d.ts +1 -0
- package/auth/session/session.service.d.ts.map +1 -0
- package/auth/session/session.transport.d.ts +1 -0
- package/auth/session/session.transport.d.ts.map +1 -0
- package/auth/session/session.types.d.ts +1 -0
- package/auth/session/session.types.d.ts.map +1 -0
- package/auth/session/token.refresh.d.ts +1 -0
- package/auth/session/token.refresh.d.ts.map +1 -0
- package/auth/session/token.store.d.ts +3 -2
- package/auth/session/token.store.d.ts.map +1 -0
- package/auth/session/token.vault.d.ts +1 -0
- package/auth/session/token.vault.d.ts.map +1 -0
- package/auth/session/transport-session.manager.d.ts +1 -0
- package/auth/session/transport-session.manager.d.ts.map +1 -0
- package/auth/session/transport-session.types.d.ts +9 -8
- package/auth/session/transport-session.types.d.ts.map +1 -0
- package/auth/session/utils/auth-token.utils.d.ts +1 -0
- package/auth/session/utils/auth-token.utils.d.ts.map +1 -0
- package/auth/session/utils/session-id.utils.d.ts +1 -0
- package/auth/session/utils/session-id.utils.d.ts.map +1 -0
- package/auth/session/utils/tiny-ttl-cache.d.ts +1 -0
- package/auth/session/utils/tiny-ttl-cache.d.ts.map +1 -0
- package/auth/session/vault-encryption.d.ts +1 -0
- package/auth/session/vault-encryption.d.ts.map +1 -0
- package/auth/session/vercel-kv-session.store.d.ts +1 -0
- package/auth/session/vercel-kv-session.store.d.ts.map +1 -0
- package/auth/ui/base-layout.d.ts +1 -0
- package/auth/ui/base-layout.d.ts.map +1 -0
- package/auth/ui/index.d.ts +1 -0
- package/auth/ui/index.d.ts.map +1 -0
- package/auth/ui/templates.d.ts +1 -0
- package/auth/ui/templates.d.ts.map +1 -0
- package/auth/utils/audience.validator.d.ts +1 -0
- package/auth/utils/audience.validator.d.ts.map +1 -0
- package/auth/utils/index.d.ts +1 -0
- package/auth/utils/index.d.ts.map +1 -0
- package/auth/utils/www-authenticate.utils.d.ts +1 -0
- package/auth/utils/www-authenticate.utils.d.ts.map +1 -0
- package/common/common.schema.d.ts +1 -0
- package/common/common.schema.d.ts.map +1 -0
- package/common/decorators/adapter.decorator.d.ts +1 -0
- package/common/decorators/adapter.decorator.d.ts.map +1 -0
- package/common/decorators/agent.decorator.d.ts +116 -0
- package/common/decorators/agent.decorator.d.ts.map +1 -0
- package/common/decorators/app.decorator.d.ts +1 -0
- package/common/decorators/app.decorator.d.ts.map +1 -0
- package/common/decorators/auth-provider.decorator.d.ts +1 -0
- package/common/decorators/auth-provider.decorator.d.ts.map +1 -0
- package/common/decorators/decorator-utils.d.ts +1 -0
- package/common/decorators/decorator-utils.d.ts.map +1 -0
- package/common/decorators/flow.decorator.d.ts +1 -0
- package/common/decorators/flow.decorator.d.ts.map +1 -0
- package/common/decorators/front-mcp.decorator.d.ts +1 -0
- package/common/decorators/front-mcp.decorator.d.ts.map +1 -0
- package/common/decorators/hook.decorator.d.ts +1 -0
- package/common/decorators/hook.decorator.d.ts.map +1 -0
- package/common/decorators/index.d.ts +2 -0
- package/common/decorators/index.d.ts.map +1 -0
- package/common/decorators/logger.decorator.d.ts +1 -0
- package/common/decorators/logger.decorator.d.ts.map +1 -0
- package/common/decorators/plugin.decorator.d.ts +1 -0
- package/common/decorators/plugin.decorator.d.ts.map +1 -0
- package/common/decorators/prompt.decorator.d.ts +8 -3
- package/common/decorators/prompt.decorator.d.ts.map +1 -0
- package/common/decorators/provider.decorator.d.ts +1 -0
- package/common/decorators/provider.decorator.d.ts.map +1 -0
- package/common/decorators/resource.decorator.d.ts +1 -0
- package/common/decorators/resource.decorator.d.ts.map +1 -0
- package/common/decorators/tool.decorator.d.ts +1 -0
- package/common/decorators/tool.decorator.d.ts.map +1 -0
- package/common/dynamic/dynamic.adapter.d.ts +1 -0
- package/common/dynamic/dynamic.adapter.d.ts.map +1 -0
- package/common/dynamic/dynamic.plugin.d.ts +3 -1
- package/common/dynamic/dynamic.plugin.d.ts.map +1 -0
- package/common/dynamic/dynamic.utils.d.ts +1 -0
- package/common/dynamic/dynamic.utils.d.ts.map +1 -0
- package/common/dynamic/index.d.ts +1 -0
- package/common/dynamic/index.d.ts.map +1 -0
- package/common/entries/adapter.entry.d.ts +1 -0
- package/common/entries/adapter.entry.d.ts.map +1 -0
- package/common/entries/agent.entry.d.ts +143 -0
- package/common/entries/agent.entry.d.ts.map +1 -0
- package/common/entries/app.entry.d.ts +8 -0
- package/common/entries/app.entry.d.ts.map +1 -0
- package/common/entries/auth-provider.entry.d.ts +2 -1
- package/common/entries/auth-provider.entry.d.ts.map +1 -0
- package/common/entries/base.entry.d.ts +3 -2
- package/common/entries/base.entry.d.ts.map +1 -0
- package/common/entries/flow.entry.d.ts +3 -1
- package/common/entries/flow.entry.d.ts.map +1 -0
- package/common/entries/hook.entry.d.ts +7 -5
- package/common/entries/hook.entry.d.ts.map +1 -0
- package/common/entries/index.d.ts +2 -0
- package/common/entries/index.d.ts.map +1 -0
- package/common/entries/logger.entry.d.ts +1 -0
- package/common/entries/logger.entry.d.ts.map +1 -0
- package/common/entries/plugin.entry.d.ts +3 -1
- package/common/entries/plugin.entry.d.ts.map +1 -0
- package/common/entries/prompt.entry.d.ts +13 -0
- package/common/entries/prompt.entry.d.ts.map +1 -0
- package/common/entries/provider.entry.d.ts +5 -4
- package/common/entries/provider.entry.d.ts.map +1 -0
- package/common/entries/resource.entry.d.ts +7 -0
- package/common/entries/resource.entry.d.ts.map +1 -0
- package/common/entries/scope.entry.d.ts +3 -1
- package/common/entries/scope.entry.d.ts.map +1 -0
- package/common/entries/tool.entry.d.ts +17 -0
- package/common/entries/tool.entry.d.ts.map +1 -0
- package/common/flow/flow.utils.d.ts +1 -0
- package/common/flow/flow.utils.d.ts.map +1 -0
- package/common/index.d.ts +1 -1
- package/common/index.d.ts.map +1 -0
- package/common/interfaces/adapter.interface.d.ts +2 -1
- package/common/interfaces/adapter.interface.d.ts.map +1 -0
- package/common/interfaces/agent.interface.d.ts +255 -0
- package/common/interfaces/agent.interface.d.ts.map +1 -0
- package/common/interfaces/app.interface.d.ts +5 -3
- package/common/interfaces/app.interface.d.ts.map +1 -0
- package/common/interfaces/auth-hook.interface.d.ts +1 -0
- package/common/interfaces/auth-hook.interface.d.ts.map +1 -0
- package/common/interfaces/auth-provider.interface.d.ts +2 -1
- package/common/interfaces/auth-provider.interface.d.ts.map +1 -0
- package/common/interfaces/base.interface.d.ts +2 -77
- package/common/interfaces/base.interface.d.ts.map +1 -0
- package/common/interfaces/execution-context.interface.d.ts +2 -1
- package/common/interfaces/execution-context.interface.d.ts.map +1 -0
- package/common/interfaces/flow.interface.d.ts +2 -1
- package/common/interfaces/flow.interface.d.ts.map +1 -0
- package/common/interfaces/front-mcp.interface.d.ts +1 -0
- package/common/interfaces/front-mcp.interface.d.ts.map +1 -0
- package/common/interfaces/hook.interface.d.ts +2 -1
- package/common/interfaces/hook.interface.d.ts.map +1 -0
- package/common/interfaces/index.d.ts +4 -0
- package/common/interfaces/index.d.ts.map +1 -0
- package/common/interfaces/internal/flow.utils.d.ts +1 -0
- package/common/interfaces/internal/flow.utils.d.ts.map +1 -0
- package/common/interfaces/internal/index.d.ts +1 -0
- package/common/interfaces/internal/index.d.ts.map +1 -0
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts +1 -0
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts.map +1 -0
- package/common/interfaces/internal/registry.interface.d.ts +13 -3
- package/common/interfaces/internal/registry.interface.d.ts.map +1 -0
- package/common/interfaces/llm-adapter.interface.d.ts +221 -0
- package/common/interfaces/llm-adapter.interface.d.ts.map +1 -0
- package/common/interfaces/logger.interface.d.ts +7 -6
- package/common/interfaces/logger.interface.d.ts.map +1 -0
- package/common/interfaces/plugin.interface.d.ts +2 -1
- package/common/interfaces/plugin.interface.d.ts.map +1 -0
- package/common/interfaces/prompt.interface.d.ts +10 -2
- package/common/interfaces/prompt.interface.d.ts.map +1 -0
- package/common/interfaces/provider.interface.d.ts +2 -1
- package/common/interfaces/provider.interface.d.ts.map +1 -0
- package/common/interfaces/resource.interface.d.ts +12 -2
- package/common/interfaces/resource.interface.d.ts.map +1 -0
- package/common/interfaces/scope.interface.d.ts +3 -2
- package/common/interfaces/scope.interface.d.ts.map +1 -0
- package/common/interfaces/server.interface.d.ts +1 -0
- package/common/interfaces/server.interface.d.ts.map +1 -0
- package/common/interfaces/session-hook.interface.d.ts +1 -0
- package/common/interfaces/session-hook.interface.d.ts.map +1 -0
- package/common/interfaces/tool-hook.interface.d.ts +1 -0
- package/common/interfaces/tool-hook.interface.d.ts.map +1 -0
- package/common/interfaces/tool.interface.d.ts +52 -2
- package/common/interfaces/tool.interface.d.ts.map +1 -0
- package/common/metadata/adapter.metadata.d.ts +1 -0
- package/common/metadata/adapter.metadata.d.ts.map +1 -0
- package/common/metadata/agent.metadata.d.ts +398 -0
- package/common/metadata/agent.metadata.d.ts.map +1 -0
- package/common/metadata/app.metadata.d.ts +162 -16
- package/common/metadata/app.metadata.d.ts.map +1 -0
- package/common/metadata/auth-provider.metadata.d.ts +1 -0
- package/common/metadata/auth-provider.metadata.d.ts.map +1 -0
- package/common/metadata/flow.metadata.d.ts +5 -3
- package/common/metadata/flow.metadata.d.ts.map +1 -0
- package/common/metadata/front-mcp.metadata.d.ts +138 -46
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -0
- package/common/metadata/hook.metadata.d.ts +2 -1
- package/common/metadata/hook.metadata.d.ts.map +1 -0
- package/common/metadata/index.d.ts +4 -0
- package/common/metadata/index.d.ts.map +1 -0
- package/common/metadata/logger.metadata.d.ts +1 -0
- package/common/metadata/logger.metadata.d.ts.map +1 -0
- package/common/metadata/plugin.metadata.d.ts +74 -7
- package/common/metadata/plugin.metadata.d.ts.map +1 -0
- package/common/metadata/prompt.metadata.d.ts +1 -0
- package/common/metadata/prompt.metadata.d.ts.map +1 -0
- package/common/metadata/provider.metadata.d.ts +5 -30
- package/common/metadata/provider.metadata.d.ts.map +1 -0
- package/common/metadata/resource.metadata.d.ts +1 -0
- package/common/metadata/resource.metadata.d.ts.map +1 -0
- package/common/metadata/tool-ui.metadata.d.ts +1 -0
- package/common/metadata/tool-ui.metadata.d.ts.map +1 -0
- package/common/metadata/tool.metadata.d.ts +1 -0
- package/common/metadata/tool.metadata.d.ts.map +1 -0
- package/common/migrate/auth-transport.migrate.d.ts +1 -0
- package/common/migrate/auth-transport.migrate.d.ts.map +1 -0
- package/common/migrate/index.d.ts +1 -0
- package/common/migrate/index.d.ts.map +1 -0
- package/common/providers/base-config.provider.d.ts +1 -0
- package/common/providers/base-config.provider.d.ts.map +1 -0
- package/common/records/adapter.record.d.ts +2 -1
- package/common/records/adapter.record.d.ts.map +1 -0
- package/common/records/agent.record.d.ts +89 -0
- package/common/records/agent.record.d.ts.map +1 -0
- package/common/records/app.record.d.ts +2 -1
- package/common/records/app.record.d.ts.map +1 -0
- package/common/records/auth-provider.record.d.ts +3 -1
- package/common/records/auth-provider.record.d.ts.map +1 -0
- package/common/records/flow.record.d.ts +1 -0
- package/common/records/flow.record.d.ts.map +1 -0
- package/common/records/hook.record.d.ts +1 -0
- package/common/records/hook.record.d.ts.map +1 -0
- package/common/records/index.d.ts +4 -0
- package/common/records/index.d.ts.map +1 -0
- package/common/records/logger.record.d.ts +4 -2
- package/common/records/logger.record.d.ts.map +1 -0
- package/common/records/plugin.record.d.ts +3 -1
- package/common/records/plugin.record.d.ts.map +1 -0
- package/common/records/prompt.record.d.ts +2 -1
- package/common/records/prompt.record.d.ts.map +1 -0
- package/common/records/provider.record.d.ts +2 -36
- package/common/records/provider.record.d.ts.map +1 -0
- package/common/records/resource.record.d.ts +2 -1
- package/common/records/resource.record.d.ts.map +1 -0
- package/common/records/scope.record.d.ts +2 -1
- package/common/records/scope.record.d.ts.map +1 -0
- package/common/records/tool.record.d.ts +3 -1
- package/common/records/tool.record.d.ts.map +1 -0
- package/common/schemas/annotated-class.schema.d.ts +4 -1
- package/common/schemas/annotated-class.schema.d.ts.map +1 -0
- package/common/schemas/http-input.schema.d.ts +1 -0
- package/common/schemas/http-input.schema.d.ts.map +1 -0
- package/common/schemas/http-output.schema.d.ts +1 -0
- package/common/schemas/http-output.schema.d.ts.map +1 -0
- package/common/schemas/index.d.ts +1 -0
- package/common/schemas/index.d.ts.map +1 -0
- package/common/schemas/session-header.schema.d.ts +1 -0
- package/common/schemas/session-header.schema.d.ts.map +1 -0
- package/common/tokens/adapter.tokens.d.ts +1 -0
- package/common/tokens/adapter.tokens.d.ts.map +1 -0
- package/common/tokens/agent.tokens.d.ts +33 -0
- package/common/tokens/agent.tokens.d.ts.map +1 -0
- package/common/tokens/app.tokens.d.ts +1 -0
- package/common/tokens/app.tokens.d.ts.map +1 -0
- package/common/tokens/auth-provider.tokens.d.ts +1 -0
- package/common/tokens/auth-provider.tokens.d.ts.map +1 -0
- package/common/tokens/base.tokens.d.ts +6 -4
- package/common/tokens/base.tokens.d.ts.map +1 -0
- package/common/tokens/flow-hook.tokens.d.ts +1 -0
- package/common/tokens/flow-hook.tokens.d.ts.map +1 -0
- package/common/tokens/flow.tokens.d.ts +1 -0
- package/common/tokens/flow.tokens.d.ts.map +1 -0
- package/common/tokens/front-mcp.tokens.d.ts +1 -0
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -0
- package/common/tokens/index.d.ts +2 -0
- package/common/tokens/index.d.ts.map +1 -0
- package/common/tokens/logger.tokens.d.ts +1 -0
- package/common/tokens/logger.tokens.d.ts.map +1 -0
- package/common/tokens/plugin.tokens.d.ts +3 -0
- package/common/tokens/plugin.tokens.d.ts.map +1 -0
- package/common/tokens/prompt.tokens.d.ts +1 -0
- package/common/tokens/prompt.tokens.d.ts.map +1 -0
- package/common/tokens/provider.tokens.d.ts +1 -0
- package/common/tokens/provider.tokens.d.ts.map +1 -0
- package/common/tokens/resource.tokens.d.ts +1 -0
- package/common/tokens/resource.tokens.d.ts.map +1 -0
- package/common/tokens/server.tokens.d.ts +1 -0
- package/common/tokens/server.tokens.d.ts.map +1 -0
- package/common/tokens/tool.tokens.d.ts +1 -0
- package/common/tokens/tool.tokens.d.ts.map +1 -0
- package/common/types/auth/index.d.ts +1 -0
- package/common/types/auth/index.d.ts.map +1 -0
- package/common/types/auth/jwt.types.d.ts +1 -0
- package/common/types/auth/jwt.types.d.ts.map +1 -0
- package/common/types/auth/session.types.d.ts +1 -0
- package/common/types/auth/session.types.d.ts.map +1 -0
- package/common/types/common.types.d.ts +1 -0
- package/common/types/common.types.d.ts.map +1 -0
- package/common/types/index.d.ts +1 -0
- package/common/types/index.d.ts.map +1 -0
- package/common/types/options/auth/app-auth.schema.d.ts +1 -0
- package/common/types/options/auth/app-auth.schema.d.ts.map +1 -0
- package/common/types/options/auth/auth.interfaces.d.ts +1 -0
- package/common/types/options/auth/auth.interfaces.d.ts.map +1 -0
- package/common/types/options/auth/auth.schema.d.ts +1 -0
- package/common/types/options/auth/auth.schema.d.ts.map +1 -0
- package/common/types/options/auth/auth.typecheck.d.ts +1 -0
- package/common/types/options/auth/auth.typecheck.d.ts.map +1 -0
- package/common/types/options/auth/auth.utils.d.ts +1 -0
- package/common/types/options/auth/auth.utils.d.ts.map +1 -0
- package/common/types/options/auth/index.d.ts +1 -0
- package/common/types/options/auth/index.d.ts.map +1 -0
- package/common/types/options/auth/orchestrated.schema.d.ts +1 -0
- package/common/types/options/auth/orchestrated.schema.d.ts.map +1 -0
- package/common/types/options/auth/public.schema.d.ts +1 -0
- package/common/types/options/auth/public.schema.d.ts.map +1 -0
- package/common/types/options/auth/shared.schemas.d.ts +1 -0
- package/common/types/options/auth/shared.schemas.d.ts.map +1 -0
- package/common/types/options/auth/transparent.schema.d.ts +1 -0
- package/common/types/options/auth/transparent.schema.d.ts.map +1 -0
- package/common/types/options/auth/transport.deprecated.d.ts +1 -0
- package/common/types/options/auth/transport.deprecated.d.ts.map +1 -0
- package/common/types/options/http.options.d.ts +1 -0
- package/common/types/options/http.options.d.ts.map +1 -0
- package/common/types/options/index.d.ts +1 -0
- package/common/types/options/index.d.ts.map +1 -0
- package/common/types/options/logging.options.d.ts +2 -5
- package/common/types/options/logging.options.d.ts.map +1 -0
- package/common/types/options/redis.options.d.ts +1 -0
- package/common/types/options/redis.options.d.ts.map +1 -0
- package/common/types/options/server-info.options.d.ts +1 -0
- package/common/types/options/server-info.options.d.ts.map +1 -0
- package/common/types/options/session.options.d.ts +1 -0
- package/common/types/options/session.options.d.ts.map +1 -0
- package/common/types/options/transport.options.d.ts +25 -0
- package/common/types/options/transport.options.d.ts.map +1 -0
- package/common/utils/decide-request-intent.utils.d.ts +1 -0
- package/common/utils/decide-request-intent.utils.d.ts.map +1 -0
- package/common/utils/global-config.utils.d.ts +1 -0
- package/common/utils/global-config.utils.d.ts.map +1 -0
- package/common/utils/index.d.ts +1 -0
- package/common/utils/index.d.ts.map +1 -0
- package/common/utils/path.utils.d.ts +3 -4
- package/common/utils/path.utils.d.ts.map +1 -0
- package/completion/flows/complete.flow.d.ts +1 -0
- package/completion/flows/complete.flow.d.ts.map +1 -0
- package/context/context-extension.d.ts +52 -0
- package/context/context-extension.d.ts.map +1 -0
- package/context/frontmcp-context-storage.d.ts +1 -0
- package/context/frontmcp-context-storage.d.ts.map +1 -0
- package/context/frontmcp-context.d.ts +1 -0
- package/context/frontmcp-context.d.ts.map +1 -0
- package/context/frontmcp-context.provider.d.ts +3 -2
- package/context/frontmcp-context.provider.d.ts.map +1 -0
- package/context/index.d.ts +1 -0
- package/context/index.d.ts.map +1 -0
- package/context/request-context-storage.d.ts +1 -0
- package/context/request-context-storage.d.ts.map +1 -0
- package/context/request-context.d.ts +1 -0
- package/context/request-context.d.ts.map +1 -0
- package/context/request-context.provider.d.ts +1 -0
- package/context/request-context.provider.d.ts.map +1 -0
- package/context/session-key.provider.d.ts +1 -0
- package/context/session-key.provider.d.ts.map +1 -0
- package/context/trace-context.d.ts +1 -0
- package/context/trace-context.d.ts.map +1 -0
- package/errors/agent.errors.d.ts +80 -0
- package/errors/agent.errors.d.ts.map +1 -0
- package/errors/authorization-required.error.d.ts +1 -0
- package/errors/authorization-required.error.d.ts.map +1 -0
- package/errors/error-handler.d.ts +1 -0
- package/errors/error-handler.d.ts.map +1 -0
- package/errors/index.d.ts +4 -1
- package/errors/index.d.ts.map +1 -0
- package/errors/mcp.error.d.ts +31 -0
- package/errors/mcp.error.d.ts.map +1 -0
- package/errors/remote.errors.d.ts +156 -0
- package/errors/remote.errors.d.ts.map +1 -0
- package/esm/index.mjs +13968 -7053
- package/esm/package.json +12 -12
- package/flows/flow.instance.d.ts +1 -0
- package/flows/flow.instance.d.ts.map +1 -0
- package/flows/flow.registry.d.ts +3 -1
- package/flows/flow.registry.d.ts.map +1 -0
- package/flows/flow.stages.d.ts +1 -0
- package/flows/flow.stages.d.ts.map +1 -0
- package/flows/flow.utils.d.ts +3 -1
- package/flows/flow.utils.d.ts.map +1 -0
- package/front-mcp/front-mcp.d.ts +21 -1
- package/front-mcp/front-mcp.d.ts.map +1 -0
- package/front-mcp/front-mcp.providers.d.ts +42 -21
- package/front-mcp/front-mcp.providers.d.ts.map +1 -0
- package/front-mcp/front-mcp.tokens.d.ts +3 -1
- package/front-mcp/front-mcp.tokens.d.ts.map +1 -0
- package/front-mcp/index.d.ts +1 -0
- package/front-mcp/index.d.ts.map +1 -0
- package/front-mcp/serverless-handler.d.ts +1 -0
- package/front-mcp/serverless-handler.d.ts.map +1 -0
- package/hooks/hook.instance.d.ts +1 -0
- package/hooks/hook.instance.d.ts.map +1 -0
- package/hooks/hook.registry.d.ts +1 -0
- package/hooks/hook.registry.d.ts.map +1 -0
- package/hooks/hooks.utils.d.ts +3 -1
- package/hooks/hooks.utils.d.ts.map +1 -0
- package/index.d.ts +29 -20
- package/index.d.ts.map +1 -0
- package/index.js +14208 -7223
- package/logger/instances/instance.console-logger.d.ts +1 -0
- package/logger/instances/instance.console-logger.d.ts.map +1 -0
- package/logger/instances/instance.logger.d.ts +1 -0
- package/logger/instances/instance.logger.d.ts.map +1 -0
- package/logger/logger.registry.d.ts +1 -0
- package/logger/logger.registry.d.ts.map +1 -0
- package/logger/logger.tokens.d.ts +1 -0
- package/logger/logger.tokens.d.ts.map +1 -0
- package/logger/logger.types.d.ts +1 -0
- package/logger/logger.types.d.ts.map +1 -0
- package/logger/logger.utils.d.ts +3 -1
- package/logger/logger.utils.d.ts.map +1 -0
- package/logging/flows/set-level.flow.d.ts +1 -0
- package/logging/flows/set-level.flow.d.ts.map +1 -0
- package/notification/index.d.ts +1 -0
- package/notification/index.d.ts.map +1 -0
- package/notification/notification.service.d.ts +17 -4
- package/notification/notification.service.d.ts.map +1 -0
- package/package.json +12 -12
- package/plugin/plugin.registry.d.ts +25 -6
- package/plugin/plugin.registry.d.ts.map +1 -0
- package/plugin/plugin.utils.d.ts +3 -1
- package/plugin/plugin.utils.d.ts.map +1 -0
- package/prompt/flows/get-prompt.flow.d.ts +8 -1
- package/prompt/flows/get-prompt.flow.d.ts.map +1 -0
- package/prompt/flows/prompts-list.flow.d.ts +8 -1
- package/prompt/flows/prompts-list.flow.d.ts.map +1 -0
- package/prompt/index.d.ts +1 -0
- package/prompt/index.d.ts.map +1 -0
- package/prompt/prompt.events.d.ts +3 -2
- package/prompt/prompt.events.d.ts.map +1 -0
- package/prompt/prompt.instance.d.ts +7 -1
- package/prompt/prompt.instance.d.ts.map +1 -0
- package/prompt/prompt.registry.d.ts +32 -7
- package/prompt/prompt.registry.d.ts.map +1 -0
- package/prompt/prompt.types.d.ts +5 -4
- package/prompt/prompt.types.d.ts.map +1 -0
- package/prompt/prompt.utils.d.ts +3 -3
- package/prompt/prompt.utils.d.ts.map +1 -0
- package/provider/flow-context-providers.d.ts +24 -0
- package/provider/flow-context-providers.d.ts.map +1 -0
- package/provider/provider.registry.d.ts +26 -4
- package/provider/provider.registry.d.ts.map +1 -0
- package/provider/provider.types.d.ts +2 -1
- package/provider/provider.types.d.ts.map +1 -0
- package/provider/provider.utils.d.ts +21 -2
- package/provider/provider.utils.d.ts.map +1 -0
- package/regsitry/index.d.ts +1 -0
- package/regsitry/index.d.ts.map +1 -0
- package/regsitry/registry.base.d.ts +3 -1
- package/regsitry/registry.base.d.ts.map +1 -0
- package/remote-mcp/cache/capability-cache.d.ts +87 -0
- package/remote-mcp/cache/capability-cache.d.ts.map +1 -0
- package/remote-mcp/cache/index.d.ts +6 -0
- package/remote-mcp/cache/index.d.ts.map +1 -0
- package/remote-mcp/factories/context-factories.d.ts +43 -0
- package/remote-mcp/factories/context-factories.d.ts.map +1 -0
- package/remote-mcp/factories/index.d.ts +12 -0
- package/remote-mcp/factories/index.d.ts.map +1 -0
- package/remote-mcp/factories/instance-factories.d.ts +81 -0
- package/remote-mcp/factories/instance-factories.d.ts.map +1 -0
- package/remote-mcp/factories/record-builders.d.ts +50 -0
- package/remote-mcp/factories/record-builders.d.ts.map +1 -0
- package/remote-mcp/index.d.ts +14 -0
- package/remote-mcp/index.d.ts.map +1 -0
- package/remote-mcp/mcp-client.service.d.ts +169 -0
- package/remote-mcp/mcp-client.service.d.ts.map +1 -0
- package/remote-mcp/mcp-client.types.d.ts +298 -0
- package/remote-mcp/mcp-client.types.d.ts.map +1 -0
- package/remote-mcp/resilience/circuit-breaker.d.ts +100 -0
- package/remote-mcp/resilience/circuit-breaker.d.ts.map +1 -0
- package/remote-mcp/resilience/health-check.d.ts +107 -0
- package/remote-mcp/resilience/health-check.d.ts.map +1 -0
- package/remote-mcp/resilience/index.d.ts +8 -0
- package/remote-mcp/resilience/index.d.ts.map +1 -0
- package/remote-mcp/resilience/retry.d.ts +37 -0
- package/remote-mcp/resilience/retry.d.ts.map +1 -0
- package/resource/flows/read-resource.flow.d.ts +8 -1
- package/resource/flows/read-resource.flow.d.ts.map +1 -0
- package/resource/flows/resource-templates-list.flow.d.ts +8 -1
- package/resource/flows/resource-templates-list.flow.d.ts.map +1 -0
- package/resource/flows/resources-list.flow.d.ts +8 -1
- package/resource/flows/resources-list.flow.d.ts.map +1 -0
- package/resource/flows/subscribe-resource.flow.d.ts +1 -0
- package/resource/flows/subscribe-resource.flow.d.ts.map +1 -0
- package/resource/flows/unsubscribe-resource.flow.d.ts +1 -0
- package/resource/flows/unsubscribe-resource.flow.d.ts.map +1 -0
- package/resource/index.d.ts +1 -0
- package/resource/index.d.ts.map +1 -0
- package/resource/resource.events.d.ts +3 -2
- package/resource/resource.events.d.ts.map +1 -0
- package/resource/resource.instance.d.ts +1 -0
- package/resource/resource.instance.d.ts.map +1 -0
- package/resource/resource.registry.d.ts +33 -8
- package/resource/resource.registry.d.ts.map +1 -0
- package/resource/resource.types.d.ts +5 -4
- package/resource/resource.types.d.ts.map +1 -0
- package/resource/resource.utils.d.ts +3 -5
- package/resource/resource.utils.d.ts.map +1 -0
- package/scope/flows/http.request.flow.d.ts +1 -0
- package/scope/flows/http.request.flow.d.ts.map +1 -0
- package/scope/index.d.ts +1 -0
- package/scope/index.d.ts.map +1 -0
- package/scope/scope.instance.d.ts +7 -0
- package/scope/scope.instance.d.ts.map +1 -0
- package/scope/scope.registry.d.ts +6 -0
- package/scope/scope.registry.d.ts.map +1 -0
- package/scope/scope.utils.d.ts +3 -1
- package/scope/scope.utils.d.ts.map +1 -0
- package/server/adapters/base.host.adapter.d.ts +1 -0
- package/server/adapters/base.host.adapter.d.ts.map +1 -0
- package/server/adapters/express.host.adapter.d.ts +1 -0
- package/server/adapters/express.host.adapter.d.ts.map +1 -0
- package/server/server.instance.d.ts +1 -0
- package/server/server.instance.d.ts.map +1 -0
- package/server/server.types.d.ts +1 -0
- package/server/server.types.d.ts.map +1 -0
- package/server/server.validation.d.ts +1 -0
- package/server/server.validation.d.ts.map +1 -0
- package/store/adapters/store.base.adapter.d.ts +1 -0
- package/store/adapters/store.base.adapter.d.ts.map +1 -0
- package/store/adapters/store.memory.adapter.d.ts +1 -0
- package/store/adapters/store.memory.adapter.d.ts.map +1 -0
- package/store/adapters/store.redis.adapter.d.ts +1 -0
- package/store/adapters/store.redis.adapter.d.ts.map +1 -0
- package/store/adapters/store.vercel-kv.adapter.d.ts +1 -0
- package/store/adapters/store.vercel-kv.adapter.d.ts.map +1 -0
- package/store/index.d.ts +1 -0
- package/store/index.d.ts.map +1 -0
- package/store/store.factory.d.ts +1 -0
- package/store/store.factory.d.ts.map +1 -0
- package/store/store.helpers.d.ts +1 -0
- package/store/store.helpers.d.ts.map +1 -0
- package/store/store.registry.d.ts +1 -0
- package/store/store.registry.d.ts.map +1 -0
- package/store/store.tokens.d.ts +1 -0
- package/store/store.tokens.d.ts.map +1 -0
- package/store/store.types.d.ts +1 -0
- package/store/store.types.d.ts.map +1 -0
- package/store/store.utils.d.ts +1 -0
- package/store/store.utils.d.ts.map +1 -0
- package/tool/flows/call-tool.flow.d.ts +9 -1
- package/tool/flows/call-tool.flow.d.ts.map +1 -0
- package/tool/flows/tools-list.flow.d.ts +8 -1
- package/tool/flows/tools-list.flow.d.ts.map +1 -0
- package/tool/tool.events.d.ts +3 -2
- package/tool/tool.events.d.ts.map +1 -0
- package/tool/tool.instance.d.ts +18 -1
- package/tool/tool.instance.d.ts.map +1 -0
- package/tool/tool.registry.d.ts +57 -5
- package/tool/tool.registry.d.ts.map +1 -0
- package/tool/tool.types.d.ts +5 -4
- package/tool/tool.types.d.ts.map +1 -0
- package/tool/tool.utils.d.ts +20 -3
- package/tool/tool.utils.d.ts.map +1 -0
- package/tool/ui/index.d.ts +1 -0
- package/tool/ui/index.d.ts.map +1 -0
- package/tool/ui/platform-adapters.d.ts +1 -0
- package/tool/ui/platform-adapters.d.ts.map +1 -0
- package/tool/ui/template-helpers.d.ts +1 -0
- package/tool/ui/template-helpers.d.ts.map +1 -0
- package/tool/ui/ui-resource-template.d.ts +1 -0
- package/tool/ui/ui-resource-template.d.ts.map +1 -0
- package/tool/ui/ui-resource.handler.d.ts +1 -0
- package/tool/ui/ui-resource.handler.d.ts.map +1 -0
- package/transport/adapters/sse-transport.d.ts +1 -0
- package/transport/adapters/sse-transport.d.ts.map +1 -0
- package/transport/adapters/streamable-http-transport.d.ts +27 -0
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -0
- package/transport/adapters/transport.local.adapter.d.ts +12 -0
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -0
- package/transport/adapters/transport.sse.adapter.d.ts +1 -0
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -0
- package/transport/adapters/transport.streamable-http.adapter.d.ts +1 -0
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -0
- package/transport/flows/handle.sse.flow.d.ts +1 -0
- package/transport/flows/handle.sse.flow.d.ts.map +1 -0
- package/transport/flows/handle.stateless-http.flow.d.ts +1 -0
- package/transport/flows/handle.stateless-http.flow.d.ts.map +1 -0
- package/transport/flows/handle.streamable-http.flow.d.ts +1 -0
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -0
- package/transport/index.d.ts +1 -0
- package/transport/index.d.ts.map +1 -0
- package/transport/legacy/legacy.sse.tranporter.d.ts +1 -0
- package/transport/legacy/legacy.sse.tranporter.d.ts.map +1 -0
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts +1 -0
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts.map +1 -0
- package/transport/mcp-handlers/call-tool-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/call-tool-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/complete-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/complete-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/index.d.ts +2 -1
- package/transport/mcp-handlers/index.d.ts.map +1 -0
- package/transport/mcp-handlers/initialize-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-resources-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-resources-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-tools-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-tools-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts +2 -1
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/mcp-handlers.types.d.ts +1 -0
- package/transport/mcp-handlers/mcp-handlers.types.d.ts.map +1 -0
- package/transport/mcp-handlers/read-resource-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/read-resource-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts +1 -0
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/subscribe-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/subscribe-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts.map +1 -0
- package/transport/transport.error.d.ts +1 -0
- package/transport/transport.error.d.ts.map +1 -0
- package/transport/transport.event-store.d.ts +1 -0
- package/transport/transport.event-store.d.ts.map +1 -0
- package/transport/transport.local.d.ts +1 -0
- package/transport/transport.local.d.ts.map +1 -0
- package/transport/transport.registry.d.ts +1 -0
- package/transport/transport.registry.d.ts.map +1 -0
- package/transport/transport.remote.d.ts +1 -0
- package/transport/transport.remote.d.ts.map +1 -0
- package/transport/transport.types.d.ts +2 -1
- package/transport/transport.types.d.ts.map +1 -0
- package/types/drinen-hooks.types.d.ts +1 -0
- package/types/drinen-hooks.types.d.ts.map +1 -0
- package/types/invoke.type.d.ts +1 -0
- package/types/invoke.type.d.ts.map +1 -0
- package/types/token.types.d.ts +1 -0
- package/types/token.types.d.ts.map +1 -0
- package/{utils/types.utils.d.ts → types/zod.types.d.ts} +1 -0
- package/types/zod.types.d.ts.map +1 -0
- package/utils/content.utils.d.ts +1 -19
- package/utils/content.utils.d.ts.map +1 -0
- package/utils/index.d.ts +3 -7
- package/utils/index.d.ts.map +1 -0
- package/utils/lineage.utils.d.ts +1 -0
- package/utils/lineage.utils.d.ts.map +1 -0
- package/utils/naming.utils.d.ts +2 -34
- package/utils/naming.utils.d.ts.map +1 -0
- package/common/constants.d.ts +0 -5
- package/esm/mcp-apps/index.mjs +0 -723
- package/exceptions/mcp-exceptions/session-missing.exception.d.ts +0 -3
- package/exceptions/mcp-exceptions/unsupported-client-version.exception.d.ts +0 -5
- package/mcp-apps/csp.d.ts +0 -111
- package/mcp-apps/index.d.ts +0 -23
- package/mcp-apps/index.js +0 -799
- package/mcp-apps/schemas.d.ts +0 -403
- package/mcp-apps/template.d.ts +0 -94
- package/mcp-apps/types.d.ts +0 -323
- package/utils/metadata.utils.d.ts +0 -5
- package/utils/server.utils.d.ts +0 -19
- package/utils/string.utils.d.ts +0 -1
- package/utils/token.utils.d.ts +0 -11
- package/utils/uri-template.utils.d.ts +0 -57
- package/utils/uri-validation.utils.d.ts +0 -40
package/mcp-apps/types.d.ts
DELETED
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file types.ts
|
|
3
|
-
* @description MCP Apps specification types.
|
|
4
|
-
*
|
|
5
|
-
* Implements types from the MCP Apps extension specification:
|
|
6
|
-
* https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx
|
|
7
|
-
*
|
|
8
|
-
* @module @frontmcp/sdk/mcp-apps/types
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* MCP Apps content MIME type.
|
|
12
|
-
* MVP specification supports only HTML5 documents.
|
|
13
|
-
*/
|
|
14
|
-
export declare const MCP_APPS_MIME_TYPE: "text/html+mcp";
|
|
15
|
-
/**
|
|
16
|
-
* Supported MIME types for MCP Apps resources.
|
|
17
|
-
*/
|
|
18
|
-
export type McpAppsMimeType = typeof MCP_APPS_MIME_TYPE;
|
|
19
|
-
/**
|
|
20
|
-
* Content Security Policy configuration for UI resources.
|
|
21
|
-
* Hosts construct CSP headers from these declared domains.
|
|
22
|
-
*/
|
|
23
|
-
export interface McpAppsCSP {
|
|
24
|
-
/** Domains allowed for network requests (fetch, XHR, WebSocket) */
|
|
25
|
-
connectDomains?: string[];
|
|
26
|
-
/** Domains allowed for static assets (images, scripts, fonts) */
|
|
27
|
-
resourceDomains?: string[];
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* UI Resource metadata as defined in MCP Apps spec.
|
|
31
|
-
* Included in `_meta.ui` field of resource declarations.
|
|
32
|
-
*/
|
|
33
|
-
export interface UIResourceMeta {
|
|
34
|
-
/** Content Security Policy configuration */
|
|
35
|
-
csp?: McpAppsCSP;
|
|
36
|
-
/** Dedicated sandbox origin for this resource */
|
|
37
|
-
domain?: string;
|
|
38
|
-
/** Whether host should render visual boundary around UI */
|
|
39
|
-
prefersBorder?: boolean;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Complete UI Resource declaration for MCP Apps.
|
|
43
|
-
*/
|
|
44
|
-
export interface UIResource {
|
|
45
|
-
/** Resource URI (must start with "ui://") */
|
|
46
|
-
uri: string;
|
|
47
|
-
/** Human-readable display name */
|
|
48
|
-
name: string;
|
|
49
|
-
/** Optional description */
|
|
50
|
-
description?: string;
|
|
51
|
-
/** MIME type - must be "text/html+mcp" for MVP */
|
|
52
|
-
mimeType: McpAppsMimeType;
|
|
53
|
-
/** UI-specific metadata */
|
|
54
|
-
_meta?: {
|
|
55
|
-
ui?: UIResourceMeta;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Display modes for UI rendering.
|
|
60
|
-
*/
|
|
61
|
-
export type McpAppsDisplayMode = 'inline' | 'fullscreen' | 'pip';
|
|
62
|
-
/**
|
|
63
|
-
* Platform types for host environment.
|
|
64
|
-
*/
|
|
65
|
-
export type McpAppsPlatform = 'web' | 'desktop' | 'mobile';
|
|
66
|
-
/**
|
|
67
|
-
* Device capability flags.
|
|
68
|
-
*/
|
|
69
|
-
export interface DeviceCapabilities {
|
|
70
|
-
/** Touch input available */
|
|
71
|
-
touch?: boolean;
|
|
72
|
-
/** Hover interactions available */
|
|
73
|
-
hover?: boolean;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Safe area insets for device screens.
|
|
77
|
-
*/
|
|
78
|
-
export interface SafeAreaInsets {
|
|
79
|
-
top: number;
|
|
80
|
-
right: number;
|
|
81
|
-
bottom: number;
|
|
82
|
-
left: number;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Viewport dimensions.
|
|
86
|
-
*/
|
|
87
|
-
export interface ViewportInfo {
|
|
88
|
-
width: number;
|
|
89
|
-
height: number;
|
|
90
|
-
maxHeight?: number;
|
|
91
|
-
maxWidth?: number;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Tool information passed to UI.
|
|
95
|
-
*/
|
|
96
|
-
export interface ToolInfo {
|
|
97
|
-
/** Request ID for this tool invocation */
|
|
98
|
-
id?: string | number;
|
|
99
|
-
/** Tool definition */
|
|
100
|
-
tool: {
|
|
101
|
-
name: string;
|
|
102
|
-
description?: string;
|
|
103
|
-
inputSchema?: Record<string, unknown>;
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Host context provided to UI on initialization.
|
|
108
|
-
* Contains environment information from the host.
|
|
109
|
-
*/
|
|
110
|
-
export interface McpAppsHostContext {
|
|
111
|
-
/** Tool information for this UI context */
|
|
112
|
-
toolInfo?: ToolInfo;
|
|
113
|
-
/** Current theme */
|
|
114
|
-
theme?: 'light' | 'dark';
|
|
115
|
-
/** Current display mode */
|
|
116
|
-
displayMode?: McpAppsDisplayMode;
|
|
117
|
-
/** Viewport dimensions */
|
|
118
|
-
viewport?: ViewportInfo;
|
|
119
|
-
/** User's locale (BCP 47 tag) */
|
|
120
|
-
locale?: string;
|
|
121
|
-
/** User's timezone (IANA name) */
|
|
122
|
-
timeZone?: string;
|
|
123
|
-
/** Host platform type */
|
|
124
|
-
platform?: McpAppsPlatform;
|
|
125
|
-
/** Device capabilities */
|
|
126
|
-
deviceCapabilities?: DeviceCapabilities;
|
|
127
|
-
/** Safe area insets */
|
|
128
|
-
safeAreaInsets?: SafeAreaInsets;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Base JSON-RPC 2.0 message.
|
|
132
|
-
*/
|
|
133
|
-
export interface JsonRpcMessage {
|
|
134
|
-
jsonrpc: '2.0';
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* JSON-RPC request message.
|
|
138
|
-
*/
|
|
139
|
-
export interface JsonRpcRequest extends JsonRpcMessage {
|
|
140
|
-
id: string | number;
|
|
141
|
-
method: string;
|
|
142
|
-
params?: unknown;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* JSON-RPC response message.
|
|
146
|
-
*/
|
|
147
|
-
export interface JsonRpcResponse extends JsonRpcMessage {
|
|
148
|
-
id: string | number;
|
|
149
|
-
result?: unknown;
|
|
150
|
-
error?: JsonRpcError;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* JSON-RPC notification (no response expected).
|
|
154
|
-
*/
|
|
155
|
-
export interface JsonRpcNotification extends JsonRpcMessage {
|
|
156
|
-
method: string;
|
|
157
|
-
params?: unknown;
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* JSON-RPC error object.
|
|
161
|
-
*/
|
|
162
|
-
export interface JsonRpcError {
|
|
163
|
-
code: number;
|
|
164
|
-
message: string;
|
|
165
|
-
data?: unknown;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* UI Initialize request parameters.
|
|
169
|
-
* Sent by UI to host on startup.
|
|
170
|
-
*/
|
|
171
|
-
export interface McpUiInitializeParams {
|
|
172
|
-
/** Protocol version */
|
|
173
|
-
protocolVersion: string;
|
|
174
|
-
/** UI capabilities */
|
|
175
|
-
capabilities?: {
|
|
176
|
-
/** Supported message types */
|
|
177
|
-
messages?: string[];
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* UI Initialize response from host.
|
|
182
|
-
*/
|
|
183
|
-
export interface McpUiInitializeResult {
|
|
184
|
-
/** Protocol version (should match request) */
|
|
185
|
-
protocolVersion: string;
|
|
186
|
-
/** Host capabilities */
|
|
187
|
-
capabilities: {
|
|
188
|
-
/** Host-provided extensions */
|
|
189
|
-
extensions?: Record<string, unknown>;
|
|
190
|
-
};
|
|
191
|
-
/** Host context information */
|
|
192
|
-
hostContext: McpAppsHostContext;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Tool input notification parameters.
|
|
196
|
-
* Sent by host to UI with complete tool arguments.
|
|
197
|
-
*/
|
|
198
|
-
export interface McpUiToolInputParams {
|
|
199
|
-
/** Tool arguments */
|
|
200
|
-
arguments: Record<string, unknown>;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Tool input partial notification parameters.
|
|
204
|
-
* Sent by host to UI during streaming.
|
|
205
|
-
*/
|
|
206
|
-
export interface McpUiToolInputPartialParams {
|
|
207
|
-
/** Partial tool arguments (incremental) */
|
|
208
|
-
argumentsDelta: string;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Tool result notification parameters.
|
|
212
|
-
* Sent by host to UI after tool execution.
|
|
213
|
-
*/
|
|
214
|
-
export interface McpUiToolResultParams {
|
|
215
|
-
/** Tool execution result */
|
|
216
|
-
content: Array<{
|
|
217
|
-
type: 'text' | 'image' | 'resource';
|
|
218
|
-
text?: string;
|
|
219
|
-
data?: string;
|
|
220
|
-
mimeType?: string;
|
|
221
|
-
uri?: string;
|
|
222
|
-
}>;
|
|
223
|
-
/** Structured content for UI rendering only */
|
|
224
|
-
structuredContent?: Record<string, unknown>;
|
|
225
|
-
/** Additional metadata */
|
|
226
|
-
_meta?: Record<string, unknown>;
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Tool cancelled notification parameters.
|
|
230
|
-
*/
|
|
231
|
-
export interface McpUiToolCancelledParams {
|
|
232
|
-
/** Reason for cancellation */
|
|
233
|
-
reason?: string;
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* Size change notification parameters.
|
|
237
|
-
* Sent by host when UI viewport changes.
|
|
238
|
-
*/
|
|
239
|
-
export interface McpUiSizeChangeParams {
|
|
240
|
-
/** New viewport dimensions */
|
|
241
|
-
viewport: ViewportInfo;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Host context change notification parameters.
|
|
245
|
-
*/
|
|
246
|
-
export interface McpUiHostContextChangeParams {
|
|
247
|
-
/** Changed context fields */
|
|
248
|
-
changes: Partial<McpAppsHostContext>;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Open link request parameters.
|
|
252
|
-
* Sent by UI to request host open a URL.
|
|
253
|
-
*/
|
|
254
|
-
export interface McpUiOpenLinkParams {
|
|
255
|
-
/** URL to open */
|
|
256
|
-
url: string;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* Send message request parameters.
|
|
260
|
-
* Sent by UI to send content to host's chat.
|
|
261
|
-
*/
|
|
262
|
-
export interface McpUiMessageParams {
|
|
263
|
-
/** Message content */
|
|
264
|
-
content: string;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* MCP Apps protocol method names.
|
|
268
|
-
*/
|
|
269
|
-
export declare const MCP_APPS_METHODS: {
|
|
270
|
-
readonly INITIALIZE: "ui/initialize";
|
|
271
|
-
readonly INITIALIZED: "ui/notifications/initialized";
|
|
272
|
-
readonly TOOL_INPUT: "ui/notifications/tool-input";
|
|
273
|
-
readonly TOOL_INPUT_PARTIAL: "ui/notifications/tool-input-partial";
|
|
274
|
-
readonly TOOL_RESULT: "ui/notifications/tool-result";
|
|
275
|
-
readonly TOOL_CANCELLED: "ui/notifications/tool-cancelled";
|
|
276
|
-
readonly SIZE_CHANGE: "ui/notifications/size-change";
|
|
277
|
-
readonly HOST_CONTEXT_CHANGE: "ui/host-context-change";
|
|
278
|
-
readonly RESOURCE_TEARDOWN: "ui/resource-teardown";
|
|
279
|
-
readonly OPEN_LINK: "ui/open-link";
|
|
280
|
-
readonly MESSAGE: "ui/message";
|
|
281
|
-
readonly TOOLS_CALL: "tools/call";
|
|
282
|
-
readonly RESOURCES_READ: "resources/read";
|
|
283
|
-
readonly NOTIFICATIONS_MESSAGE: "notifications/message";
|
|
284
|
-
readonly PING: "ping";
|
|
285
|
-
readonly SANDBOX_READY: "ui/notifications/sandbox-ready";
|
|
286
|
-
readonly SANDBOX_RESOURCE_READY: "ui/notifications/sandbox-resource-ready";
|
|
287
|
-
};
|
|
288
|
-
/**
|
|
289
|
-
* MCP Apps extension capability declaration.
|
|
290
|
-
* Advertised by clients during connection.
|
|
291
|
-
*/
|
|
292
|
-
export interface McpAppsExtensionCapability {
|
|
293
|
-
/** Supported MIME types */
|
|
294
|
-
mimeTypes: McpAppsMimeType[];
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* Client extensions object including MCP Apps.
|
|
298
|
-
*/
|
|
299
|
-
export interface McpClientExtensions {
|
|
300
|
-
'io.modelcontextprotocol/ui'?: McpAppsExtensionCapability;
|
|
301
|
-
[key: string]: unknown;
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Tool metadata extension for MCP Apps.
|
|
305
|
-
* Added to tool's `_meta` field to link to UI resource.
|
|
306
|
-
*/
|
|
307
|
-
export interface ToolUIMeta {
|
|
308
|
-
/** URI of the UI resource template */
|
|
309
|
-
'ui/resourceUri'?: string;
|
|
310
|
-
/** MIME type of the UI resource */
|
|
311
|
-
'ui/mimeType'?: McpAppsMimeType;
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Extended tool result metadata including MCP Apps fields.
|
|
315
|
-
*/
|
|
316
|
-
export interface McpAppsToolResultMeta extends ToolUIMeta {
|
|
317
|
-
/** Additional platform-specific metadata */
|
|
318
|
-
[key: string]: unknown;
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* Current MCP Apps protocol version.
|
|
322
|
-
*/
|
|
323
|
-
export declare const MCP_APPS_PROTOCOL_VERSION: "2025-01-01";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import 'reflect-metadata';
|
|
2
|
-
import { Type } from '../common';
|
|
3
|
-
export declare function getMetadata<T = any>(key: any, target: any, propertyKey?: string | symbol): T | undefined;
|
|
4
|
-
export declare function setMetadata(key: any, value: any, target: any, propertyKey?: string | symbol): void;
|
|
5
|
-
export declare function hasAsyncWith(klass: Type<any>): boolean;
|
package/utils/server.utils.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ServerRequest, ServerRequestHandler, ServerResponse } from '../common';
|
|
2
|
-
type Runner<T> = (req: ServerRequest) => Promise<T> | T;
|
|
3
|
-
type SuccessWriter<T> = (res: ServerResponse, result: T) => void | Promise<void>;
|
|
4
|
-
type ErrorWriter = (res: ServerResponse, err: any) => void | Promise<void>;
|
|
5
|
-
export declare function withResponseHandler<T>(runner: Runner<T>): {
|
|
6
|
-
/** Set the success writer; chainable. */
|
|
7
|
-
success(fn: SuccessWriter<T>): /*elided*/ any;
|
|
8
|
-
/**
|
|
9
|
-
* Set the error writer and finalize into a ServerHookHandler.
|
|
10
|
-
* Calling this returns the Express-like/host handler.
|
|
11
|
-
*/
|
|
12
|
-
fail(fn: ErrorWriter): ServerRequestHandler;
|
|
13
|
-
/**
|
|
14
|
-
* If you prefer not to end with .fail(), you can call .build() after setting .success().
|
|
15
|
-
* It will use the default error writer unless overridden via .fail() earlier.
|
|
16
|
-
*/
|
|
17
|
-
build(): ServerRequestHandler;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
package/utils/string.utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function idFromString(name: string): string;
|
package/utils/token.utils.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Token, Type } from '../common';
|
|
2
|
-
export declare const tokenName: (t: Token) => string;
|
|
3
|
-
export declare const isClass: (x: any) => x is Type;
|
|
4
|
-
export declare const isPromise: (v: any) => v is Promise<any>;
|
|
5
|
-
export declare function getAsyncWithTokens(klass: Type<any>): Type<any>[] | null;
|
|
6
|
-
/** Read param types for static with(...) only; TDZ-friendly. */
|
|
7
|
-
export declare function readWithParamTypes(klass: Type, forWhat: 'discovery' | 'invocation'): Type[];
|
|
8
|
-
/** Discover deps for a CLASS token or a concrete Type (ctor/with). */
|
|
9
|
-
export declare function depsOfClass(klass: Type, phase: 'discovery' | 'invocation'): Type[];
|
|
10
|
-
/** Discover deps for a Function token without the first N args. */
|
|
11
|
-
export declare function depsOfFunc(fn: (...args: any[]) => any | Promise<any>, phase: 'discovery' | 'invocation'): Type[];
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Parsed URI template information
|
|
3
|
-
*/
|
|
4
|
-
export interface ParsedUriTemplate {
|
|
5
|
-
pattern: RegExp;
|
|
6
|
-
paramNames: string[];
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Parse a URI template (RFC 6570 Level 1) into a regex pattern and parameter names.
|
|
10
|
-
* Supports simple string substitution: {param}
|
|
11
|
-
*
|
|
12
|
-
* Note: This implements RFC 6570 Level 1 only (simple string substitution).
|
|
13
|
-
* Advanced operators like {+path}, {#fragment}, or {?query} are not supported.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* parseUriTemplate("file:///{path}") => { pattern: /^file:\/\/\/([^/]+)$/, paramNames: ["path"] }
|
|
17
|
-
* parseUriTemplate("users/{userId}/posts/{postId}") => { pattern: /^users\/([^/]+)\/posts\/([^/]+)$/, paramNames: ["userId", "postId"] }
|
|
18
|
-
*
|
|
19
|
-
* @throws Error if template is too long (>1000 chars) or has too many parameters (>50)
|
|
20
|
-
*/
|
|
21
|
-
export declare function parseUriTemplate(template: string): ParsedUriTemplate;
|
|
22
|
-
/**
|
|
23
|
-
* Match a URI against a URI template and extract parameters.
|
|
24
|
-
* Returns null if no match, or an object with extracted parameters.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* matchUriTemplate("file:///{path}", "file:///documents/readme.txt")
|
|
28
|
-
* => { path: "documents" } // Note: only captures first segment
|
|
29
|
-
*
|
|
30
|
-
* matchUriTemplate("users/{userId}/posts/{postId}", "users/123/posts/456")
|
|
31
|
-
* => { userId: "123", postId: "456" }
|
|
32
|
-
*/
|
|
33
|
-
export declare function matchUriTemplate(template: string, uri: string): Record<string, string> | null;
|
|
34
|
-
/**
|
|
35
|
-
* Expand a URI template with the given parameters.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* expandUriTemplate("file:///{path}", { path: "documents/readme.txt" })
|
|
39
|
-
* => "file:///documents%2Freadme.txt"
|
|
40
|
-
*
|
|
41
|
-
* expandUriTemplate("users/{userId}/posts/{postId}", { userId: "123", postId: "456" })
|
|
42
|
-
* => "users/123/posts/456"
|
|
43
|
-
*
|
|
44
|
-
* @throws Error if a required parameter is missing
|
|
45
|
-
*/
|
|
46
|
-
export declare function expandUriTemplate(template: string, params: Record<string, string>): string;
|
|
47
|
-
/**
|
|
48
|
-
* Extract parameter names from a URI template.
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* extractTemplateParams("users/{userId}/posts/{postId}") => ["userId", "postId"]
|
|
52
|
-
*/
|
|
53
|
-
export declare function extractTemplateParams(template: string): string[];
|
|
54
|
-
/**
|
|
55
|
-
* Check if a string is a URI template (contains {param} placeholders).
|
|
56
|
-
*/
|
|
57
|
-
export declare function isUriTemplate(uri: string): boolean;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Validate that a URI has a valid scheme per RFC 3986.
|
|
3
|
-
*
|
|
4
|
-
* @param uri - The URI to validate
|
|
5
|
-
* @returns true if the URI has a valid scheme, false otherwise
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* isValidMcpUri('file:///path/to/file') // true
|
|
9
|
-
* isValidMcpUri('https://example.com/resource') // true
|
|
10
|
-
* isValidMcpUri('custom://my-resource') // true
|
|
11
|
-
* isValidMcpUri('/path/to/file') // false (no scheme)
|
|
12
|
-
* isValidMcpUri('123://invalid') // false (scheme must start with letter)
|
|
13
|
-
*/
|
|
14
|
-
export declare function isValidMcpUri(uri: string): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Extract the scheme from a URI.
|
|
17
|
-
*
|
|
18
|
-
* @param uri - The URI to extract the scheme from
|
|
19
|
-
* @returns The scheme in lowercase, or null if no valid scheme found
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* extractUriScheme('file:///path') // 'file'
|
|
23
|
-
* extractUriScheme('HTTPS://example.com') // 'https'
|
|
24
|
-
* extractUriScheme('/no/scheme') // null
|
|
25
|
-
*/
|
|
26
|
-
export declare function extractUriScheme(uri: string): string | null;
|
|
27
|
-
/**
|
|
28
|
-
* Validate that a URI template has a valid scheme per RFC 3986.
|
|
29
|
-
* URI templates follow RFC 6570 and can contain template expressions like {var}.
|
|
30
|
-
* The scheme portion should still be a valid static scheme.
|
|
31
|
-
*
|
|
32
|
-
* @param uriTemplate - The URI template to validate
|
|
33
|
-
* @returns true if the URI template has a valid scheme, false otherwise
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* isValidMcpUriTemplate('users://{userId}/profile') // true
|
|
37
|
-
* isValidMcpUriTemplate('file:///{path}') // true
|
|
38
|
-
* isValidMcpUriTemplate('{scheme}://dynamic') // false (scheme must be static)
|
|
39
|
-
*/
|
|
40
|
-
export declare function isValidMcpUriTemplate(uriTemplate: string): boolean;
|