@frontmcp/sdk 0.6.2 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +5 -2
- 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 +27 -3
- package/auth/session/redis-session.store.d.ts.map +1 -0
- package/auth/session/session-crypto.d.ts +87 -0
- package/auth/session/session-crypto.d.ts.map +1 -0
- package/auth/session/session-rate-limiter.d.ts +114 -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 +60 -42
- 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 +23 -2
- 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 +1 -0
- 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 +1 -0
- 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 +3 -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 +3 -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 +18399 -10886
- package/esm/package.json +26 -18
- 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 +18589 -11006
- 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 +17 -7
- 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 +66 -0
- package/transport/adapters/sse-transport.d.ts.map +1 -0
- package/transport/adapters/streamable-http-transport.d.ts +96 -0
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -0
- package/transport/adapters/transport.local.adapter.d.ts +27 -1
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -0
- package/transport/adapters/transport.sse.adapter.d.ts +17 -3
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -0
- package/transport/adapters/transport.streamable-http.adapter.d.ts +13 -3
- 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 +22 -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 +7 -0
- package/transport/transport.local.d.ts.map +1 -0
- package/transport/transport.registry.d.ts +8 -1
- package/transport/transport.registry.d.ts.map +1 -0
- package/transport/transport.remote.d.ts +2 -0
- package/transport/transport.remote.d.ts.map +1 -0
- package/transport/transport.types.d.ts +8 -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/index.js
DELETED
|
@@ -1,799 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// libs/sdk/src/mcp-apps/index.ts
|
|
21
|
-
var mcp_apps_exports = {};
|
|
22
|
-
__export(mcp_apps_exports, {
|
|
23
|
-
DEFAULT_CSP_DIRECTIVES: () => DEFAULT_CSP_DIRECTIVES,
|
|
24
|
-
DEFAULT_PROTOCOL_VERSION: () => DEFAULT_PROTOCOL_VERSION,
|
|
25
|
-
DeviceCapabilitiesSchema: () => DeviceCapabilitiesSchema,
|
|
26
|
-
EXTENDED_SANDBOX_PERMISSIONS: () => EXTENDED_SANDBOX_PERMISSIONS,
|
|
27
|
-
JsonRpcErrorSchema: () => JsonRpcErrorSchema,
|
|
28
|
-
JsonRpcNotificationSchema: () => JsonRpcNotificationSchema,
|
|
29
|
-
JsonRpcRequestSchema: () => JsonRpcRequestSchema,
|
|
30
|
-
JsonRpcResponseSchema: () => JsonRpcResponseSchema,
|
|
31
|
-
MCP_APPS_METHODS: () => MCP_APPS_METHODS,
|
|
32
|
-
MCP_APPS_MIME_TYPE: () => MCP_APPS_MIME_TYPE,
|
|
33
|
-
MCP_APPS_PROTOCOL_VERSION: () => MCP_APPS_PROTOCOL_VERSION,
|
|
34
|
-
McpAppsCSPSchema: () => McpAppsCSPSchema,
|
|
35
|
-
McpAppsDisplayModeSchema: () => McpAppsDisplayModeSchema,
|
|
36
|
-
McpAppsExtensionCapabilitySchema: () => McpAppsExtensionCapabilitySchema,
|
|
37
|
-
McpAppsHostContextSchema: () => McpAppsHostContextSchema,
|
|
38
|
-
McpAppsMimeTypeSchema: () => McpAppsMimeTypeSchema,
|
|
39
|
-
McpAppsPlatformSchema: () => McpAppsPlatformSchema,
|
|
40
|
-
McpUiHostContextChangeParamsSchema: () => McpUiHostContextChangeParamsSchema,
|
|
41
|
-
McpUiInitializeParamsSchema: () => McpUiInitializeParamsSchema,
|
|
42
|
-
McpUiInitializeResultSchema: () => McpUiInitializeResultSchema,
|
|
43
|
-
McpUiMessageParamsSchema: () => McpUiMessageParamsSchema,
|
|
44
|
-
McpUiOpenLinkParamsSchema: () => McpUiOpenLinkParamsSchema,
|
|
45
|
-
McpUiSizeChangeParamsSchema: () => McpUiSizeChangeParamsSchema,
|
|
46
|
-
McpUiToolCancelledParamsSchema: () => McpUiToolCancelledParamsSchema,
|
|
47
|
-
McpUiToolInputParamsSchema: () => McpUiToolInputParamsSchema,
|
|
48
|
-
McpUiToolInputPartialParamsSchema: () => McpUiToolInputPartialParamsSchema,
|
|
49
|
-
McpUiToolResultParamsSchema: () => McpUiToolResultParamsSchema,
|
|
50
|
-
SANDBOX_PERMISSIONS: () => SANDBOX_PERMISSIONS,
|
|
51
|
-
SafeAreaInsetsSchema: () => SafeAreaInsetsSchema,
|
|
52
|
-
ThemeSchema: () => ThemeSchema,
|
|
53
|
-
ToolInfoSchema: () => ToolInfoSchema,
|
|
54
|
-
ToolUIMetaSchema: () => ToolUIMetaSchema,
|
|
55
|
-
UIResourceMetaSchema: () => UIResourceMetaSchema,
|
|
56
|
-
UIResourceSchema: () => UIResourceSchema,
|
|
57
|
-
ViewportInfoSchema: () => ViewportInfoSchema,
|
|
58
|
-
buildCSPDirectives: () => buildCSPDirectives,
|
|
59
|
-
buildCSPHeader: () => buildCSPHeader,
|
|
60
|
-
buildCSPMetaTag: () => buildCSPMetaTag,
|
|
61
|
-
buildSandboxAttribute: () => buildSandboxAttribute,
|
|
62
|
-
createSimpleMcpAppsTemplate: () => createSimpleMcpAppsTemplate,
|
|
63
|
-
extractBodyContent: () => extractBodyContent,
|
|
64
|
-
generateMcpAppsTemplate: () => generateMcpAppsTemplate,
|
|
65
|
-
isDomainAllowed: () => isDomainAllowed,
|
|
66
|
-
isValidProtocolVersion: () => isValidProtocolVersion,
|
|
67
|
-
isValidUIResourceUri: () => isValidUIResourceUri,
|
|
68
|
-
mergeCSP: () => mergeCSP,
|
|
69
|
-
parseCSPHeader: () => parseCSPHeader,
|
|
70
|
-
parseHostContext: () => parseHostContext,
|
|
71
|
-
parseUIResource: () => parseUIResource,
|
|
72
|
-
wrapInMcpAppsTemplate: () => wrapInMcpAppsTemplate
|
|
73
|
-
});
|
|
74
|
-
module.exports = __toCommonJS(mcp_apps_exports);
|
|
75
|
-
|
|
76
|
-
// libs/sdk/src/mcp-apps/types.ts
|
|
77
|
-
var MCP_APPS_MIME_TYPE = "text/html+mcp";
|
|
78
|
-
var MCP_APPS_METHODS = {
|
|
79
|
-
// Lifecycle
|
|
80
|
-
INITIALIZE: "ui/initialize",
|
|
81
|
-
INITIALIZED: "ui/notifications/initialized",
|
|
82
|
-
// Tool lifecycle notifications (Host → UI)
|
|
83
|
-
TOOL_INPUT: "ui/notifications/tool-input",
|
|
84
|
-
TOOL_INPUT_PARTIAL: "ui/notifications/tool-input-partial",
|
|
85
|
-
TOOL_RESULT: "ui/notifications/tool-result",
|
|
86
|
-
TOOL_CANCELLED: "ui/notifications/tool-cancelled",
|
|
87
|
-
// Context notifications (Host → UI)
|
|
88
|
-
SIZE_CHANGE: "ui/notifications/size-change",
|
|
89
|
-
HOST_CONTEXT_CHANGE: "ui/host-context-change",
|
|
90
|
-
RESOURCE_TEARDOWN: "ui/resource-teardown",
|
|
91
|
-
// UI Requests (UI → Host)
|
|
92
|
-
OPEN_LINK: "ui/open-link",
|
|
93
|
-
MESSAGE: "ui/message",
|
|
94
|
-
// Standard MCP methods that UI can use
|
|
95
|
-
TOOLS_CALL: "tools/call",
|
|
96
|
-
RESOURCES_READ: "resources/read",
|
|
97
|
-
NOTIFICATIONS_MESSAGE: "notifications/message",
|
|
98
|
-
PING: "ping",
|
|
99
|
-
// Sandbox proxy (web hosts only)
|
|
100
|
-
SANDBOX_READY: "ui/notifications/sandbox-ready",
|
|
101
|
-
SANDBOX_RESOURCE_READY: "ui/notifications/sandbox-resource-ready"
|
|
102
|
-
};
|
|
103
|
-
var MCP_APPS_PROTOCOL_VERSION = "2025-01-01";
|
|
104
|
-
|
|
105
|
-
// libs/sdk/src/mcp-apps/schemas.ts
|
|
106
|
-
var import_zod = require("zod");
|
|
107
|
-
var McpAppsMimeTypeSchema = import_zod.z.literal(MCP_APPS_MIME_TYPE);
|
|
108
|
-
var McpAppsDisplayModeSchema = import_zod.z.enum(["inline", "fullscreen", "pip"]);
|
|
109
|
-
var McpAppsPlatformSchema = import_zod.z.enum(["web", "desktop", "mobile"]);
|
|
110
|
-
var ThemeSchema = import_zod.z.enum(["light", "dark"]);
|
|
111
|
-
var McpAppsCSPSchema = import_zod.z.object({
|
|
112
|
-
connectDomains: import_zod.z.array(import_zod.z.string().url()).optional(),
|
|
113
|
-
resourceDomains: import_zod.z.array(import_zod.z.string().url()).optional()
|
|
114
|
-
}).strict();
|
|
115
|
-
var UIResourceMetaSchema = import_zod.z.object({
|
|
116
|
-
csp: McpAppsCSPSchema.optional(),
|
|
117
|
-
domain: import_zod.z.string().optional(),
|
|
118
|
-
prefersBorder: import_zod.z.boolean().optional()
|
|
119
|
-
}).strict();
|
|
120
|
-
var UIResourceSchema = import_zod.z.object({
|
|
121
|
-
uri: import_zod.z.string().startsWith("ui://"),
|
|
122
|
-
name: import_zod.z.string().min(1),
|
|
123
|
-
description: import_zod.z.string().optional(),
|
|
124
|
-
mimeType: McpAppsMimeTypeSchema,
|
|
125
|
-
_meta: import_zod.z.object({
|
|
126
|
-
ui: UIResourceMetaSchema.optional()
|
|
127
|
-
}).optional()
|
|
128
|
-
}).strict();
|
|
129
|
-
var DeviceCapabilitiesSchema = import_zod.z.object({
|
|
130
|
-
touch: import_zod.z.boolean().optional(),
|
|
131
|
-
hover: import_zod.z.boolean().optional()
|
|
132
|
-
}).strict();
|
|
133
|
-
var SafeAreaInsetsSchema = import_zod.z.object({
|
|
134
|
-
top: import_zod.z.number(),
|
|
135
|
-
right: import_zod.z.number(),
|
|
136
|
-
bottom: import_zod.z.number(),
|
|
137
|
-
left: import_zod.z.number()
|
|
138
|
-
}).strict();
|
|
139
|
-
var ViewportInfoSchema = import_zod.z.object({
|
|
140
|
-
width: import_zod.z.number().positive(),
|
|
141
|
-
height: import_zod.z.number().positive(),
|
|
142
|
-
maxHeight: import_zod.z.number().positive().optional(),
|
|
143
|
-
maxWidth: import_zod.z.number().positive().optional()
|
|
144
|
-
}).strict();
|
|
145
|
-
var ToolInfoSchema = import_zod.z.object({
|
|
146
|
-
id: import_zod.z.union([import_zod.z.string(), import_zod.z.number()]).optional(),
|
|
147
|
-
tool: import_zod.z.object({
|
|
148
|
-
name: import_zod.z.string().min(1),
|
|
149
|
-
description: import_zod.z.string().optional(),
|
|
150
|
-
inputSchema: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional()
|
|
151
|
-
})
|
|
152
|
-
}).strict();
|
|
153
|
-
var McpAppsHostContextSchema = import_zod.z.object({
|
|
154
|
-
toolInfo: ToolInfoSchema.optional(),
|
|
155
|
-
theme: ThemeSchema.optional(),
|
|
156
|
-
displayMode: McpAppsDisplayModeSchema.optional(),
|
|
157
|
-
viewport: ViewportInfoSchema.optional(),
|
|
158
|
-
locale: import_zod.z.string().optional(),
|
|
159
|
-
timeZone: import_zod.z.string().optional(),
|
|
160
|
-
platform: McpAppsPlatformSchema.optional(),
|
|
161
|
-
deviceCapabilities: DeviceCapabilitiesSchema.optional(),
|
|
162
|
-
safeAreaInsets: SafeAreaInsetsSchema.optional()
|
|
163
|
-
}).strict();
|
|
164
|
-
var JsonRpcErrorSchema = import_zod.z.object({
|
|
165
|
-
code: import_zod.z.number().int(),
|
|
166
|
-
message: import_zod.z.string(),
|
|
167
|
-
data: import_zod.z.unknown().optional()
|
|
168
|
-
}).strict();
|
|
169
|
-
var JsonRpcRequestSchema = import_zod.z.object({
|
|
170
|
-
jsonrpc: import_zod.z.literal("2.0"),
|
|
171
|
-
id: import_zod.z.union([import_zod.z.string(), import_zod.z.number()]),
|
|
172
|
-
method: import_zod.z.string().min(1),
|
|
173
|
-
params: import_zod.z.unknown().optional()
|
|
174
|
-
}).strict();
|
|
175
|
-
var JsonRpcResponseSchema = import_zod.z.object({
|
|
176
|
-
jsonrpc: import_zod.z.literal("2.0"),
|
|
177
|
-
id: import_zod.z.union([import_zod.z.string(), import_zod.z.number()]),
|
|
178
|
-
result: import_zod.z.unknown().optional(),
|
|
179
|
-
error: JsonRpcErrorSchema.optional()
|
|
180
|
-
}).strict();
|
|
181
|
-
var JsonRpcNotificationSchema = import_zod.z.object({
|
|
182
|
-
jsonrpc: import_zod.z.literal("2.0"),
|
|
183
|
-
method: import_zod.z.string().min(1),
|
|
184
|
-
params: import_zod.z.unknown().optional()
|
|
185
|
-
}).strict();
|
|
186
|
-
var McpUiInitializeParamsSchema = import_zod.z.object({
|
|
187
|
-
protocolVersion: import_zod.z.string(),
|
|
188
|
-
capabilities: import_zod.z.object({
|
|
189
|
-
messages: import_zod.z.array(import_zod.z.string()).optional()
|
|
190
|
-
}).optional()
|
|
191
|
-
}).strict();
|
|
192
|
-
var McpUiInitializeResultSchema = import_zod.z.object({
|
|
193
|
-
protocolVersion: import_zod.z.string(),
|
|
194
|
-
capabilities: import_zod.z.object({
|
|
195
|
-
extensions: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional()
|
|
196
|
-
}),
|
|
197
|
-
hostContext: McpAppsHostContextSchema
|
|
198
|
-
}).strict();
|
|
199
|
-
var McpUiToolInputParamsSchema = import_zod.z.object({
|
|
200
|
-
arguments: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown())
|
|
201
|
-
}).strict();
|
|
202
|
-
var McpUiToolInputPartialParamsSchema = import_zod.z.object({
|
|
203
|
-
argumentsDelta: import_zod.z.string()
|
|
204
|
-
}).strict();
|
|
205
|
-
var ToolResultContentItemSchema = import_zod.z.object({
|
|
206
|
-
type: import_zod.z.enum(["text", "image", "resource"]),
|
|
207
|
-
text: import_zod.z.string().optional(),
|
|
208
|
-
data: import_zod.z.string().optional(),
|
|
209
|
-
mimeType: import_zod.z.string().optional(),
|
|
210
|
-
uri: import_zod.z.string().optional()
|
|
211
|
-
});
|
|
212
|
-
var McpUiToolResultParamsSchema = import_zod.z.object({
|
|
213
|
-
content: import_zod.z.array(ToolResultContentItemSchema),
|
|
214
|
-
structuredContent: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional(),
|
|
215
|
-
_meta: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional()
|
|
216
|
-
}).strict();
|
|
217
|
-
var McpUiToolCancelledParamsSchema = import_zod.z.object({
|
|
218
|
-
reason: import_zod.z.string().optional()
|
|
219
|
-
}).strict();
|
|
220
|
-
var McpUiSizeChangeParamsSchema = import_zod.z.object({
|
|
221
|
-
viewport: ViewportInfoSchema
|
|
222
|
-
}).strict();
|
|
223
|
-
var McpUiHostContextChangeParamsSchema = import_zod.z.object({
|
|
224
|
-
changes: McpAppsHostContextSchema.partial()
|
|
225
|
-
}).strict();
|
|
226
|
-
var McpUiOpenLinkParamsSchema = import_zod.z.object({
|
|
227
|
-
url: import_zod.z.string().url()
|
|
228
|
-
}).strict();
|
|
229
|
-
var McpUiMessageParamsSchema = import_zod.z.object({
|
|
230
|
-
content: import_zod.z.string().min(1)
|
|
231
|
-
}).strict();
|
|
232
|
-
var McpAppsExtensionCapabilitySchema = import_zod.z.object({
|
|
233
|
-
mimeTypes: import_zod.z.array(McpAppsMimeTypeSchema)
|
|
234
|
-
}).strict();
|
|
235
|
-
var ToolUIMetaSchema = import_zod.z.object({
|
|
236
|
-
"ui/resourceUri": import_zod.z.string().startsWith("ui://").optional(),
|
|
237
|
-
"ui/mimeType": McpAppsMimeTypeSchema.optional()
|
|
238
|
-
}).passthrough();
|
|
239
|
-
function isValidUIResourceUri(uri) {
|
|
240
|
-
return uri.startsWith("ui://") && uri.length > 5;
|
|
241
|
-
}
|
|
242
|
-
function isValidProtocolVersion(version) {
|
|
243
|
-
return /^\d{4}-\d{2}-\d{2}$/.test(version);
|
|
244
|
-
}
|
|
245
|
-
function parseUIResource(data) {
|
|
246
|
-
const result = UIResourceSchema.safeParse(data);
|
|
247
|
-
return result.success ? result.data : null;
|
|
248
|
-
}
|
|
249
|
-
function parseHostContext(data) {
|
|
250
|
-
const result = McpAppsHostContextSchema.safeParse(data);
|
|
251
|
-
return result.success ? result.data : null;
|
|
252
|
-
}
|
|
253
|
-
var DEFAULT_PROTOCOL_VERSION = MCP_APPS_PROTOCOL_VERSION;
|
|
254
|
-
|
|
255
|
-
// libs/sdk/src/mcp-apps/csp.ts
|
|
256
|
-
var DEFAULT_CSP_DIRECTIVES = [
|
|
257
|
-
{ name: "default-src", values: ["'none'"] },
|
|
258
|
-
{ name: "script-src", values: ["'self'", "'unsafe-inline'"] },
|
|
259
|
-
{ name: "style-src", values: ["'self'", "'unsafe-inline'"] },
|
|
260
|
-
{ name: "img-src", values: ["'self'", "data:"] },
|
|
261
|
-
{ name: "font-src", values: ["'self'"] },
|
|
262
|
-
{ name: "connect-src", values: ["'none'"] },
|
|
263
|
-
{ name: "frame-src", values: ["'none'"] },
|
|
264
|
-
{ name: "object-src", values: ["'none'"] },
|
|
265
|
-
{ name: "base-uri", values: ["'self'"] },
|
|
266
|
-
{ name: "form-action", values: ["'self'"] }
|
|
267
|
-
];
|
|
268
|
-
var SANDBOX_PERMISSIONS = ["allow-scripts", "allow-same-origin"];
|
|
269
|
-
var EXTENDED_SANDBOX_PERMISSIONS = [
|
|
270
|
-
...SANDBOX_PERMISSIONS,
|
|
271
|
-
"allow-forms",
|
|
272
|
-
"allow-popups",
|
|
273
|
-
"allow-popups-to-escape-sandbox"
|
|
274
|
-
];
|
|
275
|
-
function buildCSPHeader(csp) {
|
|
276
|
-
const directives = buildCSPDirectives(csp);
|
|
277
|
-
return directives.map((d) => `${d.name} ${d.values.join(" ")}`).join("; ");
|
|
278
|
-
}
|
|
279
|
-
function buildCSPDirectives(csp) {
|
|
280
|
-
const directives = /* @__PURE__ */ new Map();
|
|
281
|
-
for (const directive of DEFAULT_CSP_DIRECTIVES) {
|
|
282
|
-
directives.set(directive.name, [...directive.values]);
|
|
283
|
-
}
|
|
284
|
-
if (csp) {
|
|
285
|
-
if (csp.connectDomains && csp.connectDomains.length > 0) {
|
|
286
|
-
const connectSrc = directives.get("connect-src") || [];
|
|
287
|
-
const filteredConnect = connectSrc.filter((v) => v !== "'none'");
|
|
288
|
-
directives.set("connect-src", [...filteredConnect, "'self'", ...csp.connectDomains]);
|
|
289
|
-
}
|
|
290
|
-
if (csp.resourceDomains && csp.resourceDomains.length > 0) {
|
|
291
|
-
const resourceDomains = csp.resourceDomains;
|
|
292
|
-
const scriptSrc = directives.get("script-src") || [];
|
|
293
|
-
directives.set("script-src", [...scriptSrc, ...resourceDomains]);
|
|
294
|
-
const styleSrc = directives.get("style-src") || [];
|
|
295
|
-
directives.set("style-src", [...styleSrc, ...resourceDomains]);
|
|
296
|
-
const imgSrc = directives.get("img-src") || [];
|
|
297
|
-
directives.set("img-src", [...imgSrc, ...resourceDomains]);
|
|
298
|
-
const fontSrc = directives.get("font-src") || [];
|
|
299
|
-
directives.set("font-src", [...fontSrc, ...resourceDomains]);
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
return Array.from(directives.entries()).map(([name, values]) => ({
|
|
303
|
-
name,
|
|
304
|
-
values: [...new Set(values)]
|
|
305
|
-
// Deduplicate
|
|
306
|
-
}));
|
|
307
|
-
}
|
|
308
|
-
function buildSandboxAttribute(options) {
|
|
309
|
-
const permissions = [...SANDBOX_PERMISSIONS];
|
|
310
|
-
if (options?.allowForms) {
|
|
311
|
-
permissions.push("allow-forms");
|
|
312
|
-
}
|
|
313
|
-
if (options?.allowPopups) {
|
|
314
|
-
permissions.push("allow-popups");
|
|
315
|
-
}
|
|
316
|
-
if (options?.allowPopupsToEscapeSandbox) {
|
|
317
|
-
permissions.push("allow-popups-to-escape-sandbox");
|
|
318
|
-
}
|
|
319
|
-
return permissions.join(" ");
|
|
320
|
-
}
|
|
321
|
-
function buildCSPMetaTag(csp) {
|
|
322
|
-
const header = buildCSPHeader(csp);
|
|
323
|
-
return `<meta http-equiv="Content-Security-Policy" content="${escapeHtmlAttribute(header)}">`;
|
|
324
|
-
}
|
|
325
|
-
function isDomainAllowed(domain, csp, type) {
|
|
326
|
-
if (!csp) return false;
|
|
327
|
-
const domains = type === "connect" ? csp.connectDomains : csp.resourceDomains;
|
|
328
|
-
if (!domains || domains.length === 0) return false;
|
|
329
|
-
return domains.some((allowed) => {
|
|
330
|
-
try {
|
|
331
|
-
const allowedUrl = new URL(allowed);
|
|
332
|
-
const testUrl = new URL(domain);
|
|
333
|
-
return allowedUrl.protocol === testUrl.protocol && allowedUrl.hostname === testUrl.hostname;
|
|
334
|
-
} catch {
|
|
335
|
-
return allowed === domain;
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
function mergeCSP(base, override) {
|
|
340
|
-
const merged = {};
|
|
341
|
-
const connectDomains = /* @__PURE__ */ new Set();
|
|
342
|
-
if (base?.connectDomains) {
|
|
343
|
-
base.connectDomains.forEach((d) => connectDomains.add(d));
|
|
344
|
-
}
|
|
345
|
-
if (override?.connectDomains) {
|
|
346
|
-
override.connectDomains.forEach((d) => connectDomains.add(d));
|
|
347
|
-
}
|
|
348
|
-
if (connectDomains.size > 0) {
|
|
349
|
-
merged.connectDomains = Array.from(connectDomains);
|
|
350
|
-
}
|
|
351
|
-
const resourceDomains = /* @__PURE__ */ new Set();
|
|
352
|
-
if (base?.resourceDomains) {
|
|
353
|
-
base.resourceDomains.forEach((d) => resourceDomains.add(d));
|
|
354
|
-
}
|
|
355
|
-
if (override?.resourceDomains) {
|
|
356
|
-
override.resourceDomains.forEach((d) => resourceDomains.add(d));
|
|
357
|
-
}
|
|
358
|
-
if (resourceDomains.size > 0) {
|
|
359
|
-
merged.resourceDomains = Array.from(resourceDomains);
|
|
360
|
-
}
|
|
361
|
-
return merged;
|
|
362
|
-
}
|
|
363
|
-
function escapeHtmlAttribute(str) {
|
|
364
|
-
return str.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
365
|
-
}
|
|
366
|
-
function parseCSPHeader(header) {
|
|
367
|
-
const csp = {};
|
|
368
|
-
const connectDomains = [];
|
|
369
|
-
const resourceDomains = [];
|
|
370
|
-
const directives = header.split(";").map((d) => d.trim());
|
|
371
|
-
for (const directive of directives) {
|
|
372
|
-
const [name, ...values] = directive.split(/\s+/);
|
|
373
|
-
if (name === "connect-src") {
|
|
374
|
-
for (const value of values) {
|
|
375
|
-
if (value.startsWith("https://") || value.startsWith("http://")) {
|
|
376
|
-
connectDomains.push(value);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
if (["script-src", "style-src", "img-src", "font-src"].includes(name)) {
|
|
381
|
-
for (const value of values) {
|
|
382
|
-
if (value.startsWith("https://") || value.startsWith("http://")) {
|
|
383
|
-
resourceDomains.push(value);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
if (connectDomains.length > 0) {
|
|
389
|
-
csp.connectDomains = [...new Set(connectDomains)];
|
|
390
|
-
}
|
|
391
|
-
if (resourceDomains.length > 0) {
|
|
392
|
-
csp.resourceDomains = [...new Set(resourceDomains)];
|
|
393
|
-
}
|
|
394
|
-
return csp;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
// libs/sdk/src/mcp-apps/template.ts
|
|
398
|
-
function generateMcpAppsTemplate(options) {
|
|
399
|
-
const {
|
|
400
|
-
toolInfo,
|
|
401
|
-
input,
|
|
402
|
-
output,
|
|
403
|
-
structuredContent,
|
|
404
|
-
csp,
|
|
405
|
-
title = "MCP App",
|
|
406
|
-
headContent = "",
|
|
407
|
-
bodyContent,
|
|
408
|
-
scripts = [],
|
|
409
|
-
includeBridge = true,
|
|
410
|
-
bridgeConfig,
|
|
411
|
-
theme = "light",
|
|
412
|
-
debug = false
|
|
413
|
-
} = options;
|
|
414
|
-
const cspMeta = buildCSPMetaTag(csp);
|
|
415
|
-
const dataAttrs = buildDataAttributes({ toolInfo, input, output, structuredContent });
|
|
416
|
-
const bridgeScript = includeBridge ? generateBridgeScript({ ...bridgeConfig, debug }) : "";
|
|
417
|
-
const additionalScripts = scripts.map((s) => `<script>${s}</script>`).join("\n");
|
|
418
|
-
return `<!DOCTYPE html>
|
|
419
|
-
<html lang="en" data-theme="${escapeAttr(theme)}">
|
|
420
|
-
<head>
|
|
421
|
-
<meta charset="UTF-8">
|
|
422
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
423
|
-
${cspMeta}
|
|
424
|
-
<meta name="mcp-apps-version" content="${MCP_APPS_PROTOCOL_VERSION}">
|
|
425
|
-
<meta name="mcp-apps-mime-type" content="${MCP_APPS_MIME_TYPE}">
|
|
426
|
-
<title>${escapeHtml(title)}</title>
|
|
427
|
-
<style>
|
|
428
|
-
:root {
|
|
429
|
-
--mcp-bg: #ffffff;
|
|
430
|
-
--mcp-text: #1a1a1a;
|
|
431
|
-
--mcp-border: #e5e5e5;
|
|
432
|
-
--mcp-primary: #0969da;
|
|
433
|
-
--mcp-error: #cf222e;
|
|
434
|
-
--mcp-success: #1a7f37;
|
|
435
|
-
}
|
|
436
|
-
[data-theme="dark"] {
|
|
437
|
-
--mcp-bg: #0d1117;
|
|
438
|
-
--mcp-text: #c9d1d9;
|
|
439
|
-
--mcp-border: #30363d;
|
|
440
|
-
--mcp-primary: #58a6ff;
|
|
441
|
-
--mcp-error: #f85149;
|
|
442
|
-
--mcp-success: #3fb950;
|
|
443
|
-
}
|
|
444
|
-
* { box-sizing: border-box; }
|
|
445
|
-
body {
|
|
446
|
-
margin: 0;
|
|
447
|
-
padding: 16px;
|
|
448
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
449
|
-
background: var(--mcp-bg);
|
|
450
|
-
color: var(--mcp-text);
|
|
451
|
-
line-height: 1.5;
|
|
452
|
-
}
|
|
453
|
-
</style>
|
|
454
|
-
${headContent}
|
|
455
|
-
</head>
|
|
456
|
-
<body ${dataAttrs}>
|
|
457
|
-
${bodyContent}
|
|
458
|
-
${bridgeScript}
|
|
459
|
-
${additionalScripts}
|
|
460
|
-
</body>
|
|
461
|
-
</html>`;
|
|
462
|
-
}
|
|
463
|
-
function generateBridgeScript(config) {
|
|
464
|
-
const {
|
|
465
|
-
protocolVersion = MCP_APPS_PROTOCOL_VERSION,
|
|
466
|
-
trustedOrigin = "*",
|
|
467
|
-
requestTimeout = 3e4,
|
|
468
|
-
debug = false
|
|
469
|
-
} = config || {};
|
|
470
|
-
return `<script>
|
|
471
|
-
(function() {
|
|
472
|
-
'use strict';
|
|
473
|
-
|
|
474
|
-
// MCP Apps Bridge Runtime
|
|
475
|
-
const MCP_PROTOCOL_VERSION = '${protocolVersion}';
|
|
476
|
-
const REQUEST_TIMEOUT = ${requestTimeout};
|
|
477
|
-
const DEBUG = ${debug};
|
|
478
|
-
|
|
479
|
-
// State
|
|
480
|
-
let initialized = false;
|
|
481
|
-
let hostContext = {};
|
|
482
|
-
let pendingRequests = new Map();
|
|
483
|
-
let messageId = 0;
|
|
484
|
-
let trustedOrigin = '${trustedOrigin}';
|
|
485
|
-
|
|
486
|
-
// Logging
|
|
487
|
-
function log(...args) {
|
|
488
|
-
if (DEBUG) console.log('[MCP Bridge]', ...args);
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
// Generate unique message ID
|
|
492
|
-
function nextId() {
|
|
493
|
-
return ++messageId;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
// Send JSON-RPC message to host
|
|
497
|
-
function sendMessage(message) {
|
|
498
|
-
log('Sending:', message);
|
|
499
|
-
parent.postMessage(message, trustedOrigin);
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
// Send JSON-RPC request and wait for response
|
|
503
|
-
function sendRequest(method, params) {
|
|
504
|
-
return new Promise((resolve, reject) => {
|
|
505
|
-
const id = nextId();
|
|
506
|
-
const request = {
|
|
507
|
-
jsonrpc: '2.0',
|
|
508
|
-
id: id,
|
|
509
|
-
method: method,
|
|
510
|
-
params: params
|
|
511
|
-
};
|
|
512
|
-
|
|
513
|
-
const timeout = setTimeout(() => {
|
|
514
|
-
pendingRequests.delete(id);
|
|
515
|
-
reject(new Error('Request timeout: ' + method));
|
|
516
|
-
}, REQUEST_TIMEOUT);
|
|
517
|
-
|
|
518
|
-
pendingRequests.set(id, { resolve, reject, timeout });
|
|
519
|
-
sendMessage(request);
|
|
520
|
-
});
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
// Send JSON-RPC notification (no response expected)
|
|
524
|
-
function sendNotification(method, params) {
|
|
525
|
-
sendMessage({
|
|
526
|
-
jsonrpc: '2.0',
|
|
527
|
-
method: method,
|
|
528
|
-
params: params
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
// Handle incoming messages from host
|
|
533
|
-
function handleMessage(event) {
|
|
534
|
-
// Validate origin on first message (trust-on-first-use)
|
|
535
|
-
if (trustedOrigin === '*' && event.origin) {
|
|
536
|
-
trustedOrigin = event.origin;
|
|
537
|
-
log('Trusted origin set to:', trustedOrigin);
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
const data = event.data;
|
|
541
|
-
if (!data || data.jsonrpc !== '2.0') return;
|
|
542
|
-
|
|
543
|
-
log('Received:', data);
|
|
544
|
-
|
|
545
|
-
// Handle response to our request
|
|
546
|
-
if (data.id !== undefined && pendingRequests.has(data.id)) {
|
|
547
|
-
const { resolve, reject, timeout } = pendingRequests.get(data.id);
|
|
548
|
-
clearTimeout(timeout);
|
|
549
|
-
pendingRequests.delete(data.id);
|
|
550
|
-
|
|
551
|
-
if (data.error) {
|
|
552
|
-
reject(new Error(data.error.message || 'Unknown error'));
|
|
553
|
-
} else {
|
|
554
|
-
resolve(data.result);
|
|
555
|
-
}
|
|
556
|
-
return;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
// Handle notifications from host
|
|
560
|
-
if (data.method) {
|
|
561
|
-
handleNotification(data.method, data.params);
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
// Handle notifications from host
|
|
566
|
-
function handleNotification(method, params) {
|
|
567
|
-
switch (method) {
|
|
568
|
-
case '${MCP_APPS_METHODS.TOOL_INPUT}':
|
|
569
|
-
window.dispatchEvent(new CustomEvent('mcp:tool-input', { detail: params }));
|
|
570
|
-
break;
|
|
571
|
-
case '${MCP_APPS_METHODS.TOOL_INPUT_PARTIAL}':
|
|
572
|
-
window.dispatchEvent(new CustomEvent('mcp:tool-input-partial', { detail: params }));
|
|
573
|
-
break;
|
|
574
|
-
case '${MCP_APPS_METHODS.TOOL_RESULT}':
|
|
575
|
-
window.dispatchEvent(new CustomEvent('mcp:tool-result', { detail: params }));
|
|
576
|
-
break;
|
|
577
|
-
case '${MCP_APPS_METHODS.TOOL_CANCELLED}':
|
|
578
|
-
window.dispatchEvent(new CustomEvent('mcp:tool-cancelled', { detail: params }));
|
|
579
|
-
break;
|
|
580
|
-
case '${MCP_APPS_METHODS.SIZE_CHANGE}':
|
|
581
|
-
window.dispatchEvent(new CustomEvent('mcp:size-change', { detail: params }));
|
|
582
|
-
break;
|
|
583
|
-
case '${MCP_APPS_METHODS.HOST_CONTEXT_CHANGE}':
|
|
584
|
-
Object.assign(hostContext, params.changes);
|
|
585
|
-
window.dispatchEvent(new CustomEvent('mcp:context-change', { detail: params.changes }));
|
|
586
|
-
// Update theme if changed
|
|
587
|
-
if (params.changes.theme) {
|
|
588
|
-
document.documentElement.setAttribute('data-theme', params.changes.theme);
|
|
589
|
-
}
|
|
590
|
-
break;
|
|
591
|
-
case '${MCP_APPS_METHODS.RESOURCE_TEARDOWN}':
|
|
592
|
-
window.dispatchEvent(new CustomEvent('mcp:teardown', { detail: params }));
|
|
593
|
-
break;
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
// Initialize connection with host
|
|
598
|
-
async function initialize() {
|
|
599
|
-
if (initialized) return hostContext;
|
|
600
|
-
|
|
601
|
-
try {
|
|
602
|
-
const result = await sendRequest('${MCP_APPS_METHODS.INITIALIZE}', {
|
|
603
|
-
protocolVersion: MCP_PROTOCOL_VERSION,
|
|
604
|
-
capabilities: {
|
|
605
|
-
messages: ['${MCP_APPS_METHODS.TOOL_INPUT}', '${MCP_APPS_METHODS.TOOL_RESULT}']
|
|
606
|
-
}
|
|
607
|
-
});
|
|
608
|
-
|
|
609
|
-
hostContext = result.hostContext || {};
|
|
610
|
-
initialized = true;
|
|
611
|
-
|
|
612
|
-
// Apply initial theme
|
|
613
|
-
if (hostContext.theme) {
|
|
614
|
-
document.documentElement.setAttribute('data-theme', hostContext.theme);
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
// Send initialized notification
|
|
618
|
-
sendNotification('${MCP_APPS_METHODS.INITIALIZED}', {});
|
|
619
|
-
|
|
620
|
-
log('Initialized with context:', hostContext);
|
|
621
|
-
window.dispatchEvent(new CustomEvent('mcp:initialized', { detail: hostContext }));
|
|
622
|
-
|
|
623
|
-
return hostContext;
|
|
624
|
-
} catch (error) {
|
|
625
|
-
console.error('[MCP Bridge] Initialization failed:', error);
|
|
626
|
-
throw error;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
// Public API
|
|
631
|
-
window.mcpBridge = {
|
|
632
|
-
// Initialize connection
|
|
633
|
-
initialize: initialize,
|
|
634
|
-
|
|
635
|
-
// Get current host context
|
|
636
|
-
getHostContext: function() {
|
|
637
|
-
return { ...hostContext };
|
|
638
|
-
},
|
|
639
|
-
|
|
640
|
-
// Get tool info
|
|
641
|
-
getToolInfo: function() {
|
|
642
|
-
return hostContext.toolInfo;
|
|
643
|
-
},
|
|
644
|
-
|
|
645
|
-
// Call a tool on the MCP server
|
|
646
|
-
callTool: function(name, args) {
|
|
647
|
-
return sendRequest('${MCP_APPS_METHODS.TOOLS_CALL}', { name, arguments: args });
|
|
648
|
-
},
|
|
649
|
-
|
|
650
|
-
// Read a resource
|
|
651
|
-
readResource: function(uri) {
|
|
652
|
-
return sendRequest('${MCP_APPS_METHODS.RESOURCES_READ}', { uri });
|
|
653
|
-
},
|
|
654
|
-
|
|
655
|
-
// Request host to open a link
|
|
656
|
-
openLink: function(url) {
|
|
657
|
-
return sendRequest('${MCP_APPS_METHODS.OPEN_LINK}', { url });
|
|
658
|
-
},
|
|
659
|
-
|
|
660
|
-
// Send message to host's chat
|
|
661
|
-
sendMessage: function(content) {
|
|
662
|
-
return sendRequest('${MCP_APPS_METHODS.MESSAGE}', { content });
|
|
663
|
-
},
|
|
664
|
-
|
|
665
|
-
// Log message to host
|
|
666
|
-
log: function(level, message, data) {
|
|
667
|
-
sendNotification('${MCP_APPS_METHODS.NOTIFICATIONS_MESSAGE}', {
|
|
668
|
-
level: level,
|
|
669
|
-
logger: 'mcp-app',
|
|
670
|
-
data: { message, ...data }
|
|
671
|
-
});
|
|
672
|
-
},
|
|
673
|
-
|
|
674
|
-
// Ping host
|
|
675
|
-
ping: function() {
|
|
676
|
-
return sendRequest('${MCP_APPS_METHODS.PING}', {});
|
|
677
|
-
},
|
|
678
|
-
|
|
679
|
-
// Check if initialized
|
|
680
|
-
isInitialized: function() {
|
|
681
|
-
return initialized;
|
|
682
|
-
},
|
|
683
|
-
|
|
684
|
-
// Protocol version
|
|
685
|
-
protocolVersion: MCP_PROTOCOL_VERSION
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
// Listen for messages
|
|
689
|
-
window.addEventListener('message', handleMessage);
|
|
690
|
-
|
|
691
|
-
// Auto-initialize when DOM is ready
|
|
692
|
-
if (document.readyState === 'loading') {
|
|
693
|
-
document.addEventListener('DOMContentLoaded', function() {
|
|
694
|
-
initialize().catch(function(err) {
|
|
695
|
-
log('Auto-init failed:', err);
|
|
696
|
-
});
|
|
697
|
-
});
|
|
698
|
-
} else {
|
|
699
|
-
initialize().catch(function(err) {
|
|
700
|
-
log('Auto-init failed:', err);
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
log('Bridge loaded');
|
|
705
|
-
})();
|
|
706
|
-
</script>`;
|
|
707
|
-
}
|
|
708
|
-
function buildDataAttributes(options) {
|
|
709
|
-
const attrs = [];
|
|
710
|
-
if (options.toolInfo) {
|
|
711
|
-
attrs.push(`data-mcp-tool="${escapeAttr(JSON.stringify(options.toolInfo))}"`);
|
|
712
|
-
}
|
|
713
|
-
if (options.input) {
|
|
714
|
-
attrs.push(`data-mcp-input="${escapeAttr(JSON.stringify(options.input))}"`);
|
|
715
|
-
}
|
|
716
|
-
if (options.output !== void 0) {
|
|
717
|
-
attrs.push(`data-mcp-output="${escapeAttr(JSON.stringify(options.output))}"`);
|
|
718
|
-
}
|
|
719
|
-
if (options.structuredContent !== void 0) {
|
|
720
|
-
attrs.push(`data-mcp-structured="${escapeAttr(JSON.stringify(options.structuredContent))}"`);
|
|
721
|
-
}
|
|
722
|
-
return attrs.join(" ");
|
|
723
|
-
}
|
|
724
|
-
function escapeHtml(str) {
|
|
725
|
-
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
726
|
-
}
|
|
727
|
-
function escapeAttr(str) {
|
|
728
|
-
return str.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
729
|
-
}
|
|
730
|
-
function wrapInMcpAppsTemplate(html, options) {
|
|
731
|
-
return generateMcpAppsTemplate({
|
|
732
|
-
...options,
|
|
733
|
-
bodyContent: html
|
|
734
|
-
});
|
|
735
|
-
}
|
|
736
|
-
function createSimpleMcpAppsTemplate(content, title) {
|
|
737
|
-
return generateMcpAppsTemplate({
|
|
738
|
-
title: title || "MCP App",
|
|
739
|
-
bodyContent: `<div class="mcp-content">${content}</div>`,
|
|
740
|
-
includeBridge: true
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
function extractBodyContent(html) {
|
|
744
|
-
const match = html.match(/<body[^>]*>([\s\S]*?)<script/);
|
|
745
|
-
return match ? match[1].trim() : null;
|
|
746
|
-
}
|
|
747
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
748
|
-
0 && (module.exports = {
|
|
749
|
-
DEFAULT_CSP_DIRECTIVES,
|
|
750
|
-
DEFAULT_PROTOCOL_VERSION,
|
|
751
|
-
DeviceCapabilitiesSchema,
|
|
752
|
-
EXTENDED_SANDBOX_PERMISSIONS,
|
|
753
|
-
JsonRpcErrorSchema,
|
|
754
|
-
JsonRpcNotificationSchema,
|
|
755
|
-
JsonRpcRequestSchema,
|
|
756
|
-
JsonRpcResponseSchema,
|
|
757
|
-
MCP_APPS_METHODS,
|
|
758
|
-
MCP_APPS_MIME_TYPE,
|
|
759
|
-
MCP_APPS_PROTOCOL_VERSION,
|
|
760
|
-
McpAppsCSPSchema,
|
|
761
|
-
McpAppsDisplayModeSchema,
|
|
762
|
-
McpAppsExtensionCapabilitySchema,
|
|
763
|
-
McpAppsHostContextSchema,
|
|
764
|
-
McpAppsMimeTypeSchema,
|
|
765
|
-
McpAppsPlatformSchema,
|
|
766
|
-
McpUiHostContextChangeParamsSchema,
|
|
767
|
-
McpUiInitializeParamsSchema,
|
|
768
|
-
McpUiInitializeResultSchema,
|
|
769
|
-
McpUiMessageParamsSchema,
|
|
770
|
-
McpUiOpenLinkParamsSchema,
|
|
771
|
-
McpUiSizeChangeParamsSchema,
|
|
772
|
-
McpUiToolCancelledParamsSchema,
|
|
773
|
-
McpUiToolInputParamsSchema,
|
|
774
|
-
McpUiToolInputPartialParamsSchema,
|
|
775
|
-
McpUiToolResultParamsSchema,
|
|
776
|
-
SANDBOX_PERMISSIONS,
|
|
777
|
-
SafeAreaInsetsSchema,
|
|
778
|
-
ThemeSchema,
|
|
779
|
-
ToolInfoSchema,
|
|
780
|
-
ToolUIMetaSchema,
|
|
781
|
-
UIResourceMetaSchema,
|
|
782
|
-
UIResourceSchema,
|
|
783
|
-
ViewportInfoSchema,
|
|
784
|
-
buildCSPDirectives,
|
|
785
|
-
buildCSPHeader,
|
|
786
|
-
buildCSPMetaTag,
|
|
787
|
-
buildSandboxAttribute,
|
|
788
|
-
createSimpleMcpAppsTemplate,
|
|
789
|
-
extractBodyContent,
|
|
790
|
-
generateMcpAppsTemplate,
|
|
791
|
-
isDomainAllowed,
|
|
792
|
-
isValidProtocolVersion,
|
|
793
|
-
isValidUIResourceUri,
|
|
794
|
-
mergeCSP,
|
|
795
|
-
parseCSPHeader,
|
|
796
|
-
parseHostContext,
|
|
797
|
-
parseUIResource,
|
|
798
|
-
wrapInMcpAppsTemplate
|
|
799
|
-
});
|