@frontmcp/sdk 0.12.2 → 1.0.0-beta.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 +6 -0
- package/adapter/adapter.instance.d.ts.map +1 -1
- package/agent/adapters/adapter.factory.d.ts +7 -9
- package/agent/adapters/adapter.factory.d.ts.map +1 -1
- package/agent/adapters/anthropic.adapter.d.ts +151 -0
- package/agent/adapters/anthropic.adapter.d.ts.map +1 -0
- package/agent/adapters/base.adapter.d.ts.map +1 -1
- package/agent/adapters/index.d.ts +38 -24
- package/agent/adapters/index.d.ts.map +1 -1
- package/agent/adapters/openai.adapter.d.ts +288 -0
- package/agent/adapters/openai.adapter.d.ts.map +1 -0
- package/agent/adapters/providers/index.d.ts +9 -7
- package/agent/adapters/providers/index.d.ts.map +1 -1
- package/agent/adapters/providers/types.d.ts +5 -1
- package/agent/adapters/providers/types.d.ts.map +1 -1
- package/agent/agent-execution-loop.d.ts.map +1 -1
- package/agent/agent.instance.d.ts +5 -2
- package/agent/agent.instance.d.ts.map +1 -1
- package/agent/agent.registry.d.ts +1 -1
- package/agent/agent.registry.d.ts.map +1 -1
- package/agent/agent.scope.d.ts +38 -46
- package/agent/agent.scope.d.ts.map +1 -1
- package/agent/flows/call-agent.flow.d.ts +12 -3
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- package/agent/index.d.ts +12 -6
- package/agent/index.d.ts.map +1 -1
- package/app/app.registry.d.ts.map +1 -1
- package/app/app.utils.d.ts.map +1 -1
- package/app/instances/app.esm.instance.d.ts +77 -0
- package/app/instances/app.esm.instance.d.ts.map +1 -0
- package/app/instances/esm-normalize.utils.d.ts +72 -0
- package/app/instances/esm-normalize.utils.d.ts.map +1 -0
- package/app/instances/index.d.ts +1 -0
- package/app/instances/index.d.ts.map +1 -1
- package/auth/auth.registry.d.ts.map +1 -1
- package/auth/cimd/index.d.ts +1 -1
- package/auth/cimd/index.d.ts.map +1 -1
- package/auth/instances/instance.local-primary-auth.d.ts +2 -3
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
- package/auth/instances/instance.remote-primary-auth.d.ts +0 -1
- package/auth/instances/instance.remote-primary-auth.d.ts.map +1 -1
- package/auth/session/record/session.base.d.ts.map +1 -1
- package/auth/session/transport-session.manager.d.ts.map +1 -1
- package/builtin/config/config.plugin.d.ts.map +1 -1
- package/builtin/config/index.d.ts +2 -1
- package/builtin/config/index.d.ts.map +1 -1
- package/builtin/config/providers/config-loader.d.ts.map +1 -1
- package/builtin/config/providers/env-loader.d.ts.map +1 -1
- package/common/decorators/adapter.decorator.d.ts +1 -1
- package/common/decorators/adapter.decorator.d.ts.map +1 -1
- package/common/decorators/agent.decorator.d.ts +13 -4
- package/common/decorators/agent.decorator.d.ts.map +1 -1
- package/common/decorators/app.decorator.d.ts +33 -3
- package/common/decorators/app.decorator.d.ts.map +1 -1
- package/common/decorators/auth-provider.decorator.d.ts +1 -1
- package/common/decorators/auth-provider.decorator.d.ts.map +1 -1
- package/common/decorators/flow.decorator.d.ts +1 -1
- package/common/decorators/flow.decorator.d.ts.map +1 -1
- package/common/decorators/front-mcp.decorator.d.ts.map +1 -1
- package/common/decorators/job.decorator.d.ts +11 -1
- package/common/decorators/job.decorator.d.ts.map +1 -1
- package/common/decorators/logger.decorator.d.ts +1 -1
- package/common/decorators/logger.decorator.d.ts.map +1 -1
- package/common/decorators/prompt.decorator.d.ts +13 -3
- package/common/decorators/prompt.decorator.d.ts.map +1 -1
- package/common/decorators/provider.decorator.d.ts +1 -1
- package/common/decorators/provider.decorator.d.ts.map +1 -1
- package/common/decorators/resource.decorator.d.ts +12 -2
- package/common/decorators/resource.decorator.d.ts.map +1 -1
- package/common/decorators/skill.decorator.d.ts +11 -1
- package/common/decorators/skill.decorator.d.ts.map +1 -1
- package/common/decorators/tool.decorator.d.ts +20 -44
- package/common/decorators/tool.decorator.d.ts.map +1 -1
- package/common/dynamic/dynamic.utils.d.ts +1 -1
- package/common/entries/adapter.entry.d.ts.map +1 -1
- package/common/entries/agent.entry.d.ts +5 -7
- package/common/entries/agent.entry.d.ts.map +1 -1
- package/common/entries/logger.entry.d.ts.map +1 -1
- package/common/entries/prompt.entry.d.ts +3 -3
- package/common/entries/prompt.entry.d.ts.map +1 -1
- package/common/entries/resource.entry.d.ts +3 -3
- package/common/entries/resource.entry.d.ts.map +1 -1
- package/common/entries/tool.entry.d.ts +15 -4
- package/common/entries/tool.entry.d.ts.map +1 -1
- package/common/interfaces/adapter.interface.d.ts +15 -0
- package/common/interfaces/adapter.interface.d.ts.map +1 -1
- package/common/interfaces/agent.interface.d.ts +2 -2
- package/common/interfaces/agent.interface.d.ts.map +1 -1
- package/common/interfaces/auth-hook.interface.d.ts.map +1 -1
- package/common/interfaces/execution-context.interface.d.ts +1 -2
- package/common/interfaces/execution-context.interface.d.ts.map +1 -1
- package/common/interfaces/flow.interface.d.ts.map +1 -1
- package/common/interfaces/front-mcp.interface.d.ts.map +1 -1
- package/common/interfaces/internal/registry.interface.d.ts +3 -5
- package/common/interfaces/internal/registry.interface.d.ts.map +1 -1
- package/common/interfaces/job.interface.d.ts +1 -1
- package/common/interfaces/job.interface.d.ts.map +1 -1
- package/common/interfaces/prompt.interface.d.ts +3 -3
- package/common/interfaces/prompt.interface.d.ts.map +1 -1
- package/common/interfaces/resource.interface.d.ts +1 -1
- package/common/interfaces/resource.interface.d.ts.map +1 -1
- package/common/interfaces/server.interface.d.ts +1 -1
- package/common/interfaces/server.interface.d.ts.map +1 -1
- package/common/interfaces/skill.interface.d.ts +1 -1
- package/common/interfaces/skill.interface.d.ts.map +1 -1
- package/common/interfaces/tool.interface.d.ts +1 -1
- package/common/interfaces/tool.interface.d.ts.map +1 -1
- package/common/interfaces/workflow.interface.d.ts +1 -1
- package/common/interfaces/workflow.interface.d.ts.map +1 -1
- package/common/metadata/adapter.metadata.d.ts.map +1 -1
- package/common/metadata/agent.metadata.d.ts +56 -7
- package/common/metadata/agent.metadata.d.ts.map +1 -1
- package/common/metadata/app-filter.metadata.d.ts +78 -0
- package/common/metadata/app-filter.metadata.d.ts.map +1 -0
- package/common/metadata/app.metadata.d.ts +198 -76
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/auth-provider.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp.metadata.d.ts +2143 -426
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/index.d.ts +2 -0
- package/common/metadata/index.d.ts.map +1 -1
- package/common/metadata/job.metadata.d.ts +1 -1
- package/common/metadata/logger.metadata.d.ts.map +1 -1
- package/common/metadata/plugin.metadata.d.ts +1 -1
- package/common/metadata/prompt.metadata.d.ts +2 -2
- package/common/metadata/prompt.metadata.d.ts.map +1 -1
- package/common/metadata/remote-primitive.metadata.d.ts +35 -0
- package/common/metadata/remote-primitive.metadata.d.ts.map +1 -0
- package/common/metadata/resource.metadata.d.ts +1 -1
- package/common/metadata/resource.metadata.d.ts.map +1 -1
- package/common/metadata/tool-ui.metadata.d.ts +1 -1
- package/common/metadata/tool-ui.metadata.d.ts.map +1 -1
- package/common/metadata/tool.metadata.d.ts +86 -19
- package/common/metadata/tool.metadata.d.ts.map +1 -1
- package/common/metadata/workflow.metadata.d.ts +1 -1
- package/common/records/agent.record.d.ts +43 -2
- package/common/records/agent.record.d.ts.map +1 -1
- package/common/records/flow.record.d.ts.map +1 -1
- package/common/records/job.record.d.ts +35 -2
- package/common/records/job.record.d.ts.map +1 -1
- package/common/records/prompt.record.d.ts +35 -2
- package/common/records/prompt.record.d.ts.map +1 -1
- package/common/records/resource.record.d.ts +35 -2
- package/common/records/resource.record.d.ts.map +1 -1
- package/common/records/skill.record.d.ts +44 -2
- package/common/records/skill.record.d.ts.map +1 -1
- package/common/records/tool.record.d.ts +35 -2
- package/common/records/tool.record.d.ts.map +1 -1
- package/common/records/workflow.record.d.ts +35 -2
- package/common/records/workflow.record.d.ts.map +1 -1
- package/common/schemas/annotated-class.schema.d.ts +2 -2
- package/common/schemas/annotated-class.schema.d.ts.map +1 -1
- package/common/schemas/http-input.schema.d.ts.map +1 -1
- package/common/schemas/http-output.schema.d.ts +2 -2
- package/common/schemas/http-output.schema.d.ts.map +1 -1
- package/common/tokens/adapter.tokens.d.ts.map +1 -1
- package/common/tokens/agent.tokens.d.ts +3 -0
- package/common/tokens/agent.tokens.d.ts.map +1 -1
- package/common/tokens/app.tokens.d.ts.map +1 -1
- package/common/tokens/auth-provider.tokens.d.ts.map +1 -1
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
- package/common/tokens/logger.tokens.d.ts.map +1 -1
- package/common/tokens/prompt.tokens.d.ts +1 -0
- package/common/tokens/prompt.tokens.d.ts.map +1 -1
- package/common/tokens/provider.tokens.d.ts.map +1 -1
- package/common/tokens/tool.tokens.d.ts +3 -2
- package/common/tokens/tool.tokens.d.ts.map +1 -1
- package/common/types/common.types.d.ts +2 -2
- package/common/types/common.types.d.ts.map +1 -1
- package/common/types/options/auth/app-auth.schema.d.ts +2 -271
- package/common/types/options/auth/app-auth.schema.d.ts.map +1 -1
- package/common/types/options/auth/index.d.ts +6 -6
- package/common/types/options/auth/index.d.ts.map +1 -1
- package/common/types/options/auth/interfaces.d.ts +1 -430
- package/common/types/options/auth/interfaces.d.ts.map +1 -1
- package/common/types/options/auth/orchestrated.schema.d.ts +2 -457
- package/common/types/options/auth/orchestrated.schema.d.ts.map +1 -1
- package/common/types/options/auth/public.schema.d.ts +2 -21
- package/common/types/options/auth/public.schema.d.ts.map +1 -1
- package/common/types/options/auth/schema.d.ts +2 -280
- package/common/types/options/auth/schema.d.ts.map +1 -1
- package/common/types/options/auth/shared.schemas.d.ts +2 -2
- package/common/types/options/auth/shared.schemas.d.ts.map +1 -1
- package/common/types/options/auth/transparent.schema.d.ts +2 -35
- package/common/types/options/auth/transparent.schema.d.ts.map +1 -1
- package/common/types/options/auth/typecheck.d.ts.map +1 -1
- package/common/types/options/auth/utils.d.ts +1 -32
- package/common/types/options/auth/utils.d.ts.map +1 -1
- package/common/types/options/elicitation/schema.d.ts +2 -4
- package/common/types/options/elicitation/schema.d.ts.map +1 -1
- package/common/types/options/ext-apps/index.d.ts +1 -1
- package/common/types/options/ext-apps/index.d.ts.map +1 -1
- package/common/types/options/ext-apps/interfaces.d.ts +55 -0
- package/common/types/options/ext-apps/interfaces.d.ts.map +1 -1
- package/common/types/options/ext-apps/schema.d.ts +3 -1
- package/common/types/options/ext-apps/schema.d.ts.map +1 -1
- package/common/types/options/ext-apps/typecheck.d.ts +2 -0
- package/common/types/options/ext-apps/typecheck.d.ts.map +1 -0
- package/common/types/options/http/schema.d.ts +3 -1
- package/common/types/options/http/schema.d.ts.map +1 -1
- package/common/types/options/http/typecheck.d.ts +2 -0
- package/common/types/options/http/typecheck.d.ts.map +1 -0
- package/common/types/options/logging/schema.d.ts +3 -2
- package/common/types/options/logging/schema.d.ts.map +1 -1
- package/common/types/options/redis/index.d.ts +1 -1
- package/common/types/options/redis/index.d.ts.map +1 -1
- package/common/types/options/redis/interfaces.d.ts +4 -0
- package/common/types/options/redis/interfaces.d.ts.map +1 -1
- package/common/types/options/redis/schema.d.ts +7 -4
- package/common/types/options/redis/schema.d.ts.map +1 -1
- package/common/types/options/redis/typecheck.d.ts +2 -0
- package/common/types/options/redis/typecheck.d.ts.map +1 -0
- package/common/types/options/server-info/interfaces.d.ts +1 -1
- package/common/types/options/server-info/interfaces.d.ts.map +1 -1
- package/common/types/options/skills-http/schema.d.ts +3 -2
- package/common/types/options/skills-http/schema.d.ts.map +1 -1
- package/common/types/options/skills-http/typecheck.d.ts +2 -0
- package/common/types/options/skills-http/typecheck.d.ts.map +1 -0
- package/common/types/options/sqlite/index.d.ts +1 -0
- package/common/types/options/sqlite/index.d.ts.map +1 -1
- package/common/types/options/sqlite/interfaces.d.ts +25 -0
- package/common/types/options/sqlite/interfaces.d.ts.map +1 -0
- package/common/types/options/sqlite/schema.d.ts +3 -1
- package/common/types/options/sqlite/schema.d.ts.map +1 -1
- package/common/types/options/sqlite/typecheck.d.ts +2 -0
- package/common/types/options/sqlite/typecheck.d.ts.map +1 -0
- package/common/types/options/transport/schema.d.ts.map +1 -1
- package/common/utils/index.d.ts +2 -0
- package/common/utils/index.d.ts.map +1 -1
- package/common/utils/primitive-filter.d.ts +24 -0
- package/common/utils/primitive-filter.d.ts.map +1 -0
- package/common/utils/validate-remote-url.d.ts +13 -0
- package/common/utils/validate-remote-url.d.ts.map +1 -0
- package/context/frontmcp-context-storage.d.ts +1 -6
- package/context/frontmcp-context-storage.d.ts.map +1 -1
- package/context/frontmcp-context.d.ts +1 -1
- package/context/frontmcp-context.d.ts.map +1 -1
- package/context/index.d.ts +5 -4
- package/context/index.d.ts.map +1 -1
- package/direct/client.types.d.ts +11 -1
- package/direct/client.types.d.ts.map +1 -1
- package/direct/connect.d.ts +4 -1
- package/direct/connect.d.ts.map +1 -1
- package/direct/direct-server.d.ts +1 -1
- package/direct/direct-server.d.ts.map +1 -1
- package/direct/direct.types.d.ts +1 -1
- package/direct/direct.types.d.ts.map +1 -1
- package/direct/index.d.ts +1 -1
- package/direct/index.d.ts.map +1 -1
- package/direct/llm-platform.d.ts +3 -3
- package/direct/llm-platform.d.ts.map +1 -1
- package/elicitation/send-elicitation-result.tool.d.ts.map +1 -1
- package/elicitation/store/elicitation-encryption.d.ts.map +1 -1
- package/errors/error-handler.d.ts.map +1 -1
- package/errors/esm.errors.d.ts +59 -0
- package/errors/esm.errors.d.ts.map +1 -0
- package/errors/index.d.ts +5 -2
- package/errors/index.d.ts.map +1 -1
- package/errors/mcp.error.d.ts.map +1 -1
- package/esm/index.mjs +5904 -2414
- package/esm-loader/app-helpers.d.ts +60 -0
- package/esm-loader/app-helpers.d.ts.map +1 -0
- package/esm-loader/esm-auth.types.d.ts +53 -0
- package/esm-loader/esm-auth.types.d.ts.map +1 -0
- package/esm-loader/esm-cache.d.ts +87 -0
- package/esm-loader/esm-cache.d.ts.map +1 -0
- package/esm-loader/esm-manifest.d.ts +82 -0
- package/esm-loader/esm-manifest.d.ts.map +1 -0
- package/esm-loader/esm-module-loader.d.ts +100 -0
- package/esm-loader/esm-module-loader.d.ts.map +1 -0
- package/esm-loader/factories/esm-context-factories.d.ts +52 -0
- package/esm-loader/factories/esm-context-factories.d.ts.map +1 -0
- package/esm-loader/factories/esm-instance-factories.d.ts +48 -0
- package/esm-loader/factories/esm-instance-factories.d.ts.map +1 -0
- package/esm-loader/factories/esm-record-builders.d.ts +72 -0
- package/esm-loader/factories/esm-record-builders.d.ts.map +1 -0
- package/esm-loader/factories/index.d.ts +4 -0
- package/esm-loader/factories/index.d.ts.map +1 -0
- package/esm-loader/index.d.ts +10 -0
- package/esm-loader/index.d.ts.map +1 -0
- package/esm-loader/package-specifier.d.ts +60 -0
- package/esm-loader/package-specifier.d.ts.map +1 -0
- package/esm-loader/semver.utils.d.ts +41 -0
- package/esm-loader/semver.utils.d.ts.map +1 -0
- package/esm-loader/version-poller.d.ts +101 -0
- package/esm-loader/version-poller.d.ts.map +1 -0
- package/esm-loader/version-resolver.d.ts +47 -0
- package/esm-loader/version-resolver.d.ts.map +1 -0
- package/ext-apps/ext-apps.handler.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts +10 -0
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/front-mcp/front-mcp.providers.d.ts +860 -178
- package/front-mcp/front-mcp.providers.d.ts.map +1 -1
- package/index.d.ts +11 -5
- package/index.d.ts.map +1 -1
- package/index.js +6395 -2834
- package/job/execution/index.d.ts +2 -1
- package/job/execution/index.d.ts.map +1 -1
- package/job/job.instance.d.ts +4 -1
- package/job/job.instance.d.ts.map +1 -1
- package/job/job.utils.d.ts.map +1 -1
- package/job/tools/list-jobs.tool.d.ts +1 -0
- package/job/tools/list-jobs.tool.d.ts.map +1 -1
- package/logger/instances/instance.console-logger.d.ts +0 -1
- package/logger/instances/instance.console-logger.d.ts.map +1 -1
- package/logger/instances/instance.logger.d.ts.map +1 -1
- package/logger/logger.registry.d.ts.map +1 -1
- package/logger/logger.types.d.ts.map +1 -1
- package/notification/notification.service.d.ts +4 -4
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +29 -17
- package/prompt/flows/get-prompt.flow.d.ts +1 -1
- package/prompt/flows/get-prompt.flow.d.ts.map +1 -1
- package/prompt/prompt.registry.d.ts +7 -1
- package/prompt/prompt.registry.d.ts.map +1 -1
- package/prompt/prompt.utils.d.ts +1 -1
- package/prompt/prompt.utils.d.ts.map +1 -1
- package/provider/provider.registry.d.ts.map +1 -1
- package/provider/provider.types.d.ts +0 -13
- package/provider/provider.types.d.ts.map +1 -1
- package/rate-limit/index.d.ts +13 -0
- package/rate-limit/index.d.ts.map +1 -0
- package/remote-mcp/cache/index.d.ts +2 -1
- package/remote-mcp/cache/index.d.ts.map +1 -1
- package/remote-mcp/factories/context-factories.d.ts +1 -1
- package/remote-mcp/factories/context-factories.d.ts.map +1 -1
- package/remote-mcp/factories/instance-factories.d.ts +1 -1
- package/remote-mcp/factories/instance-factories.d.ts.map +1 -1
- package/remote-mcp/factories/record-builders.d.ts +1 -1
- package/remote-mcp/factories/record-builders.d.ts.map +1 -1
- package/remote-mcp/mcp-client.service.d.ts +2 -2
- package/remote-mcp/mcp-client.service.d.ts.map +1 -1
- package/remote-mcp/mcp-client.types.d.ts +4 -4
- package/remote-mcp/mcp-client.types.d.ts.map +1 -1
- package/resource/flows/read-resource.flow.d.ts +1 -1
- package/resource/flows/read-resource.flow.d.ts.map +1 -1
- package/resource/flows/resource-templates-list.flow.d.ts.map +1 -1
- package/resource/flows/resources-list.flow.d.ts.map +1 -1
- package/resource/resource.registry.d.ts +7 -1
- package/resource/resource.registry.d.ts.map +1 -1
- package/resource/resource.utils.d.ts.map +1 -1
- package/scope/flows/http.request.flow.d.ts +1 -0
- package/scope/flows/http.request.flow.d.ts.map +1 -1
- package/scope/index.d.ts.map +1 -1
- package/scope/scope.instance.d.ts +16 -6
- package/scope/scope.instance.d.ts.map +1 -1
- package/server/adapters/polyfills/browser-express-host.d.ts +7 -0
- package/server/adapters/polyfills/browser-express-host.d.ts.map +1 -0
- package/server/adapters/polyfills/node-express-host.d.ts +2 -0
- package/server/adapters/polyfills/node-express-host.d.ts.map +1 -0
- package/server/noop-server.d.ts +15 -0
- package/server/noop-server.d.ts.map +1 -0
- package/server/server.types.d.ts +11 -9
- package/server/server.types.d.ts.map +1 -1
- package/server/server.validation.d.ts.map +1 -1
- package/skill/cache/index.d.ts +2 -1
- package/skill/cache/index.d.ts.map +1 -1
- package/skill/index.d.ts +3 -3
- package/skill/index.d.ts.map +1 -1
- package/skill/providers/memory-skill.provider.d.ts +5 -0
- package/skill/providers/memory-skill.provider.d.ts.map +1 -1
- package/skill/session/skill-session.manager.d.ts +1 -1
- package/skill/session/skill-session.manager.d.ts.map +1 -1
- package/skill/skill-directory-loader.d.ts.map +1 -1
- package/skill/skill.registry.d.ts +1 -1
- package/skill/skill.registry.d.ts.map +1 -1
- package/skill/skill.utils.d.ts.map +1 -1
- package/skill/tools/index.d.ts +1 -5
- package/skill/tools/index.d.ts.map +1 -1
- package/skill/tools/load-skills.tool.d.ts +1 -4
- package/skill/tools/load-skills.tool.d.ts.map +1 -1
- package/tool/flows/call-tool.flow.d.ts +12 -3
- package/tool/flows/call-tool.flow.d.ts.map +1 -1
- package/tool/flows/tools-list.flow.d.ts +12 -4
- package/tool/flows/tools-list.flow.d.ts.map +1 -1
- package/tool/tool.instance.d.ts +5 -2
- package/tool/tool.instance.d.ts.map +1 -1
- package/tool/tool.registry.d.ts +7 -1
- package/tool/tool.registry.d.ts.map +1 -1
- package/tool/tool.utils.d.ts.map +1 -1
- package/tool/ui/index.d.ts +29 -9
- package/tool/ui/index.d.ts.map +1 -1
- package/tool/ui/platform-adapters.d.ts +27 -5
- package/tool/ui/platform-adapters.d.ts.map +1 -1
- package/tool/ui/template-helpers.d.ts +1 -7
- package/tool/ui/template-helpers.d.ts.map +1 -1
- package/tool/ui/ui-resource-template.d.ts +1 -1
- package/tool/ui/ui-resource.handler.d.ts +2 -2
- package/tool/ui/ui-resource.handler.d.ts.map +1 -1
- package/tool/ui/ui-shared.d.ts +35 -0
- package/tool/ui/ui-shared.d.ts.map +1 -0
- package/transport/{legacy/legacy.sse.tranporter.d.ts → adapters/base-sse-transport.d.ts} +2 -4
- package/transport/adapters/base-sse-transport.d.ts.map +1 -0
- package/transport/adapters/polyfills/browser-sse-transport.d.ts +10 -0
- package/transport/adapters/polyfills/browser-sse-transport.d.ts.map +1 -0
- package/transport/adapters/polyfills/node-sse-transport.d.ts +2 -0
- package/transport/adapters/polyfills/node-sse-transport.d.ts.map +1 -0
- package/transport/adapters/sse-transport.d.ts +1 -1
- package/transport/adapters/sse-transport.d.ts.map +1 -1
- package/transport/adapters/streamable-http-transport.d.ts +1 -1
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -1
- package/transport/adapters/transport.local.adapter.d.ts +4 -6
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.sse.adapter.d.ts +1 -1
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.streamable-http.adapter.d.ts +1 -1
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -1
- package/transport/event-stores/event-store.factory.d.ts +1 -1
- package/transport/event-stores/event-store.factory.d.ts.map +1 -1
- package/transport/event-stores/memory.event-store.d.ts +2 -2
- package/transport/event-stores/memory.event-store.d.ts.map +1 -1
- package/transport/event-stores/redis.event-store.d.ts +2 -2
- package/transport/event-stores/redis.event-store.d.ts.map +1 -1
- package/transport/in-memory-server.d.ts +3 -3
- package/transport/in-memory-server.d.ts.map +1 -1
- package/transport/index.d.ts +8 -5
- package/transport/index.d.ts.map +1 -1
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts +1 -1
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts.map +1 -1
- package/transport/mcp-handlers/call-tool-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/call-tool-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/complete-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/complete-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/index.d.ts +6 -6
- package/transport/mcp-handlers/initialize-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-resources-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/list-resources-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-tools-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/list-tools-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/mcp-handlers.types.d.ts +6 -9
- package/transport/mcp-handlers/mcp-handlers.types.d.ts.map +1 -1
- package/transport/mcp-handlers/read-resource-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/read-resource-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts +2 -2
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/subscribe-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/subscribe-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts.map +1 -1
- package/transport/transport.error.d.ts +2 -2
- package/transport/transport.error.d.ts.map +1 -1
- package/transport/transport.registry.d.ts +8 -0
- package/transport/transport.registry.d.ts.map +1 -1
- package/types/drinen-hooks.types.d.ts.map +1 -1
- package/types/invoke.type.d.ts.map +1 -1
- package/types/zod.types.d.ts.map +1 -1
- package/utils/index.d.ts +2 -1
- package/utils/index.d.ts.map +1 -1
- package/agent/adapters/langchain.adapter.d.ts +0 -178
- package/agent/adapters/langchain.adapter.d.ts.map +0 -1
- package/esm/package.json +0 -104
- package/transport/legacy/legacy.sse.tranporter.d.ts.map +0 -1
package/tool/ui/index.d.ts
CHANGED
|
@@ -4,16 +4,36 @@
|
|
|
4
4
|
* Provides UI template rendering and platform-specific metadata generation
|
|
5
5
|
* for MCP tool responses.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* - **static**: Static widget is pre-compiled at startup, client fetches via resources/read
|
|
10
|
-
* - **hybrid**: Shell (React + renderer) cached at startup, component + data in response
|
|
11
|
-
*
|
|
12
|
-
* NOTE: Core Tool UI functionality is in @frontmcp/uipack/registry for standalone usage.
|
|
13
|
-
* This module re-exports from @frontmcp/uipack for backwards compatibility.
|
|
7
|
+
* Delegates to @frontmcp/uipack/adapters for rendering, content detection,
|
|
8
|
+
* and protocol-aligned response formatting.
|
|
14
9
|
*/
|
|
15
|
-
export { ToolUIRegistry,
|
|
16
|
-
export type {
|
|
10
|
+
export { ToolUIRegistry, UI_RESOURCE_SCHEME, isUIResourceUri, isStaticWidgetUri, parseWidgetUri, buildStaticWidgetUri, getUIResourceMimeType, } from './ui-shared';
|
|
11
|
+
export type { ParsedWidgetUri } from './ui-shared';
|
|
12
|
+
export declare function renderToolTemplateAsync(toolName: string, input: unknown, output: unknown, template: unknown, platformType?: string): Promise<string>;
|
|
13
|
+
export declare function renderToolTemplate(toolName: string, input: unknown, output: unknown, template: unknown, platformType?: string): string;
|
|
14
|
+
/** Check if a tool entry has UI configuration */
|
|
15
|
+
export declare function hasUIConfig(tool: unknown): boolean;
|
|
16
|
+
export declare function isReactComponent(template: unknown): boolean;
|
|
17
|
+
export declare function containsMdxSyntax(content: string): boolean;
|
|
18
|
+
export interface RenderOptions {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
export interface UIRenderResult {
|
|
22
|
+
html: string;
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
export interface CompileStaticWidgetOptions {
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
export interface HybridComponentPayload {
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
export interface BuildHybridComponentPayloadOptions {
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
}
|
|
34
|
+
export interface RenderTemplateOptions {
|
|
35
|
+
[key: string]: unknown;
|
|
36
|
+
}
|
|
17
37
|
export { buildUIMeta } from './platform-adapters';
|
|
18
38
|
export type { UIMetadata, BuildUIMetaOptions } from './platform-adapters';
|
|
19
39
|
export { escapeHtml, formatDate, formatCurrency, uniqueId, jsonEmbed, createTemplateHelpers, resetIdCounter, } from './template-helpers';
|
package/tool/ui/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAMnD,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,OAAO,EACjB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC,CAG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uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEvH,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Platform Adapters
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* while maintaining backwards compatibility.
|
|
4
|
+
* Stub module — platform adapter functions were removed from @frontmcp/uipack.
|
|
5
|
+
* These will be re-implemented against the new shell/resolver API.
|
|
7
6
|
*
|
|
8
|
-
*
|
|
7
|
+
* TODO: Re-implement against new @frontmcp/uipack API after redesign
|
|
9
8
|
*/
|
|
10
|
-
export
|
|
9
|
+
export type AIPlatformType = 'openai' | 'claude' | 'gemini' | 'cursor' | 'continue' | 'cody' | 'unknown';
|
|
10
|
+
export interface UIMetadata {
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface BuildUIMetaOptions {
|
|
14
|
+
toolName: string;
|
|
15
|
+
html?: string;
|
|
16
|
+
platform?: AIPlatformType;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export interface BuildToolDiscoveryMetaOptions {
|
|
20
|
+
toolName: string;
|
|
21
|
+
platform?: AIPlatformType;
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
}
|
|
24
|
+
export declare function buildUIMeta(_options: BuildUIMetaOptions): UIMetadata;
|
|
25
|
+
export declare function buildToolDiscoveryMeta(_options: BuildToolDiscoveryMetaOptions): UIMetadata;
|
|
26
|
+
export declare function buildOpenAICSP(_csp?: {
|
|
27
|
+
connectDomains?: string[];
|
|
28
|
+
resourceDomains?: string[];
|
|
29
|
+
}): {
|
|
30
|
+
connect_domains?: string[];
|
|
31
|
+
resource_domains?: string[];
|
|
32
|
+
} | undefined;
|
|
11
33
|
//# sourceMappingURL=platform-adapters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-adapters.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/platform-adapters.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"platform-adapters.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/platform-adapters.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAEzG,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,kBAAkB,GAAG,UAAU,CAEpE;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,6BAA6B,GAAG,UAAU,CAE1F;AAED,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE;IACpC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B,GAAG;IAAE,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,SAAS,CAE1E"}
|
|
@@ -6,9 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @see {@link https://docs.agentfront.dev/docs/servers/tools#tool-ui | Tool UI Documentation}
|
|
8
8
|
*/
|
|
9
|
-
import type { TemplateHelpers } from '../../common/metadata/tool-ui.metadata';
|
|
10
9
|
import { escapeHtml } from '@frontmcp/uipack/utils';
|
|
11
|
-
export { createTemplateHelpers } from '@frontmcp/uipack/
|
|
10
|
+
export { createTemplateHelpers } from '@frontmcp/uipack/shell';
|
|
12
11
|
export { escapeHtml };
|
|
13
12
|
/**
|
|
14
13
|
* Format a date for display.
|
|
@@ -32,9 +31,4 @@ export declare function uniqueId(prefix?: string): string;
|
|
|
32
31
|
* Escapes characters that could break out of script tags or HTML.
|
|
33
32
|
*/
|
|
34
33
|
export declare function jsonEmbed(data: unknown): string;
|
|
35
|
-
/**
|
|
36
|
-
* Create a TemplateHelpers object with all helper functions.
|
|
37
|
-
* @deprecated Use createTemplateHelpers from @frontmcp/uipack/runtime instead
|
|
38
|
-
*/
|
|
39
|
-
export declare function createTemplateHelpersLocal(): TemplateHelpers;
|
|
40
34
|
//# sourceMappingURL=template-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-helpers.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/template-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"template-helpers.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/template-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAS/D,OAAO,EAAE,UAAU,EAAE,CAAC;AAItB;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAgBvE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAQ,GAAG,MAAM,CAKvE;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,MAAM,SAAQ,GAAG,MAAM,CAE/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAM/C"}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*
|
|
20
20
|
* URI format: ui://widget/{toolName}.html
|
|
21
21
|
*
|
|
22
|
-
* This is the format
|
|
22
|
+
* This is the format used in tools/list _meta.ui.resourceUri per the MCP Apps spec.
|
|
23
23
|
* When OpenAI fetches this resource, we return the pre-compiled static HTML for the tool.
|
|
24
24
|
*
|
|
25
25
|
* The widget includes:
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
* // Widget reads tool output from window.openai.toolOutput at runtime
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
import type { ReadResourceResult } from '@
|
|
25
|
+
import type { ReadResourceResult } from '@frontmcp/protocol';
|
|
26
26
|
import type { AIPlatformType } from '../../notification/notification.service';
|
|
27
|
-
import { type ToolUIRegistry } from '
|
|
27
|
+
import { type ToolUIRegistry } from './ui-shared';
|
|
28
28
|
/**
|
|
29
29
|
* Result of handling a UI resource request
|
|
30
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-resource.handler.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/ui-resource.handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ui-resource.handler.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/ui-resource.handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAE9E,OAAO,EAAE,KAAK,cAAc,EAA0D,MAAM,aAAa,CAAC;AAE1G;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,kDAAkD;IAClD,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,0BAA0B;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,gDAAgD;IAChD,QAAQ,EAAE,cAAc,CAAC;IACzB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B;AAqBD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,cAAc,EACxB,YAAY,CAAC,EAAE,cAAc,GAC5B,sBAAsB,CA4DxB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,8BAA8B;IAC9B,QAAQ,EAAE,cAAc,CAAC;IACzB,oCAAoC;IACpC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAChD;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,wBAAwB,IAGtC,KAAK,MAAM,KAAG,sBAAsB,CAStE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared UI utilities and types
|
|
3
|
+
*
|
|
4
|
+
* Internal module to avoid circular imports between index.ts and ui-resource.handler.ts.
|
|
5
|
+
*/
|
|
6
|
+
import type { ImportResolver } from '@frontmcp/uipack/resolver';
|
|
7
|
+
/** Tool UI Registry — manages compiled widgets and rendering. */
|
|
8
|
+
export declare class ToolUIRegistry {
|
|
9
|
+
private widgets;
|
|
10
|
+
private manifests;
|
|
11
|
+
private resolver?;
|
|
12
|
+
constructor(resolver?: ImportResolver);
|
|
13
|
+
getStaticWidget(name: string): string | undefined;
|
|
14
|
+
hasAny(): boolean;
|
|
15
|
+
getManifest(toolName: string): Record<string, unknown> | undefined;
|
|
16
|
+
detectUIType(template: unknown): string;
|
|
17
|
+
compileStaticWidgetAsync(options: Record<string, unknown>): Promise<void>;
|
|
18
|
+
compileLeanWidgetAsync(options: Record<string, unknown>): Promise<void>;
|
|
19
|
+
compileHybridWidgetAsync(options: Record<string, unknown>): Promise<void>;
|
|
20
|
+
buildHybridComponentPayload(options: Record<string, unknown>): Record<string, unknown> | undefined;
|
|
21
|
+
renderAndRegisterAsync(options: Record<string, unknown>): Promise<{
|
|
22
|
+
meta: Record<string, unknown>;
|
|
23
|
+
}>;
|
|
24
|
+
}
|
|
25
|
+
export declare const UI_RESOURCE_SCHEME = "ui";
|
|
26
|
+
export declare function isUIResourceUri(uri: string): boolean;
|
|
27
|
+
export declare function isStaticWidgetUri(uri: string): boolean;
|
|
28
|
+
export interface ParsedWidgetUri {
|
|
29
|
+
toolName: string;
|
|
30
|
+
extension: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function parseWidgetUri(uri: string): ParsedWidgetUri | null;
|
|
33
|
+
export declare function buildStaticWidgetUri(toolName: string): string;
|
|
34
|
+
export declare function getUIResourceMimeType(_platformOrUri?: string): string;
|
|
35
|
+
//# sourceMappingURL=ui-shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-shared.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/ui-shared.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAMhE,iEAAiE;AACjE,qBAAa,cAAc;IACzB,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,SAAS,CAA8C;IAC/D,OAAO,CAAC,QAAQ,CAAC,CAAiB;gBAEtB,QAAQ,CAAC,EAAE,cAAc;IAIrC,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIjD,MAAM,IAAI,O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1,5 @@
|
|
|
1
1
|
import { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
-
import { Transport } from '@
|
|
3
|
-
import { JSONRPCMessage, MessageExtraInfo } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
-
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
|
|
2
|
+
import { Transport, type JSONRPCMessage, type MessageExtraInfo, type AuthInfo } from '@frontmcp/protocol';
|
|
5
3
|
/**
|
|
6
4
|
* Configuration options for SSEServerTransport.
|
|
7
5
|
*/
|
|
@@ -82,4 +80,4 @@ export declare class SSEServerTransport implements Transport {
|
|
|
82
80
|
*/
|
|
83
81
|
get lastEventId(): number;
|
|
84
82
|
}
|
|
85
|
-
//# sourceMappingURL=
|
|
83
|
+
//# sourceMappingURL=base-sse-transport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-sse-transport.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/base-sse-transport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG5D,OAAO,EACL,SAAS,EAET,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EAEd,MAAM,oBAAoB,CAAC;AAS5B;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;;OAGG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,SAAS;IAchD,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,GAAG;IAdb,OAAO,CAAC,YAAY,CAAC,CAAiB;IACtC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,QAAQ,CAA4B;IAC5C,oFAAoF;IACpF,OAAO,CAAC,eAAe,CAAK;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAExE;;OAEG;gBAEO,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,cAAc,EAC3B,OAAO,CAAC,EAAE,yBAAyB;IAMrC;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAyB9B;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAkC5B;;;;OAIG;IACG,iBAAiB,CACrB,GAAG,EAAE,eAAe,GAAG;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAA;KAAE,EAC1C,GAAG,EAAE,cAAc,EACnB,UAAU,CAAC,EAAE,OAAO,GACnB,OAAO,CAAC,IAAI,CAAC;IAiDhB;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAYxE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAMtB,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAUlD;;;;OAIG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED;;;;;OAKG;IACH,IAAI,WAAW,IAAI,MAAM,CAExB;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface SSEServerTransportOptions {
|
|
2
|
+
allowedHosts?: string[];
|
|
3
|
+
allowedOrigins?: string[];
|
|
4
|
+
enableDnsRebindingProtection?: boolean;
|
|
5
|
+
sessionId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class SSEServerTransport {
|
|
8
|
+
constructor(_endpoint?: string, _res?: unknown, _options?: SSEServerTransportOptions);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=browser-sse-transport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-sse-transport.d.ts","sourceRoot":"","sources":["../../../../src/transport/adapters/polyfills/browser-sse-transport.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,yBAAyB;IACxC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,kBAAkB;gBACjB,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,yBAAyB;CAGrF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-sse-transport.d.ts","sourceRoot":"","sources":["../../../../src/transport/adapters/polyfills/node-sse-transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,KAAK,yBAAyB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* This class extends our custom SSEServerTransport to expose a public API
|
|
9
9
|
* for session recreation, maintaining the event ID sequence across reconnections.
|
|
10
10
|
*/
|
|
11
|
-
import { SSEServerTransport, SSEServerTransportOptions } from '
|
|
11
|
+
import { SSEServerTransport, SSEServerTransportOptions } from './base-sse-transport';
|
|
12
12
|
import type { ServerResponse } from 'http';
|
|
13
13
|
export interface RecreateableSSEServerTransportOptions extends SSEServerTransportOptions {
|
|
14
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sse-transport.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/sse-transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"sse-transport.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/sse-transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE3C,MAAM,WAAW,qCAAsC,SAAQ,yBAAyB;IACtF;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,8BAA+B,SAAQ,kBAAkB;IACpE,OAAO,CAAC,mBAAmB,CAAS;gBAExB,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,qCAAqC;IAUlG;;;OAGG;IACH,OAAO,CAAC,cAAc;IAItB;;OAEG;IACH,IAAI,kBAAkB,IAAI,OAAO,CAEhC;IAED;;;OAGG;IACH,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED;;;;;;OAMG;IACH,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAcxC;;;;;;OAMG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI;CAiB/D"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* This class extends the MCP SDK's transport to expose a public API for
|
|
9
9
|
* session recreation, avoiding the need to access private properties.
|
|
10
10
|
*/
|
|
11
|
-
import { StreamableHTTPServerTransport } from '@
|
|
11
|
+
import { StreamableHTTPServerTransport } from '@frontmcp/protocol';
|
|
12
12
|
export interface StreamableHTTPServerTransportOptions {
|
|
13
13
|
/**
|
|
14
14
|
* A function that generates a session ID for the transport.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streamable-http-transport.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/streamable-http-transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,6BAA6B,
|
|
1
|
+
{"version":3,"file":"streamable-http-transport.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/streamable-http-transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,6BAA6B,EAA4C,MAAM,oBAAoB,CAAC;AAG7G,MAAM,WAAW,oCAAoC;IACnD;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,MAAM,CAAC;IAElC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;OAKG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED;;;;;;;;;;GAUG;AACH,qBAAa,yCAA0C,SAAQ,6BAA6B;IAC1F;;;OAGG;IACH,OAAO,CAAC,iBAAiB,CAAC,CAAS;IAEnC;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAuC;gBAE/D,OAAO,GAAE,oCAAyC;IAK9D;;OAEG;IACH,IAAI,aAAa,IAAI,OAAO,CAK3B;IAED;;;OAGG;IACH,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IAED;;;;;;;;;;;;;OAaG;IACH,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAqB/C;;;;;OAKG;IAEH,OAAO,CAAC,eAAe;IAevB;;;;OAIG;IAEY,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;CA8B5E"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { AuthenticatedServerRequest } from '../../server/server.types';
|
|
2
2
|
import { TransportKey, TransportType } from '../transport.types';
|
|
3
|
-
import {
|
|
4
|
-
import { RequestId } from '@
|
|
5
|
-
import {
|
|
6
|
-
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
7
|
-
import { SSEServerTransport } from '../legacy/legacy.sse.tranporter';
|
|
3
|
+
import { McpServer, StreamableHTTPServerTransport } from '@frontmcp/protocol';
|
|
4
|
+
import { RequestId } from '@frontmcp/protocol';
|
|
5
|
+
import { SSEServerTransport } from '#sse-transport';
|
|
8
6
|
import { RecreateableStreamableHTTPServerTransport } from './streamable-http-transport';
|
|
9
7
|
import { RecreateableSSEServerTransport } from './sse-transport';
|
|
10
8
|
import { ZodType } from 'zod';
|
|
@@ -64,7 +62,7 @@ export declare abstract class LocalTransportAdapter<T extends SupportedTransport
|
|
|
64
62
|
* Returns true on success, false on timeout/error.
|
|
65
63
|
*/
|
|
66
64
|
ping(timeoutMs?: number): Promise<boolean>;
|
|
67
|
-
protected ensureAuthInfo(req: AuthenticatedServerRequest, transport: LocalTransportAdapter<T>): AuthInfo;
|
|
65
|
+
protected ensureAuthInfo(req: AuthenticatedServerRequest, transport: LocalTransportAdapter<T>): import("@frontmcp/protocol").AuthInfo;
|
|
68
66
|
/**
|
|
69
67
|
* Get the elicitation store for distributed elicitation support.
|
|
70
68
|
* Uses Redis in distributed mode, in-memory for single-node.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.local.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.local.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"transport.local.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.local.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAe,MAAM,2BAA2B,CAAC;AACpF,O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,WAAW;IAQnB;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAOhC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AuthenticatedServerRequest } from '../../server/server.types';
|
|
2
2
|
import { RecreateableSSEServerTransport } from './sse-transport';
|
|
3
3
|
import { LocalTransportAdapter } from './transport.local.adapter';
|
|
4
|
-
import { RequestId } from '@
|
|
4
|
+
import { RequestId } from '@frontmcp/protocol';
|
|
5
5
|
import { ZodType } from 'zod';
|
|
6
6
|
import { ServerResponse } from '../../common';
|
|
7
7
|
import { ElicitResult, ElicitOptions } from '../../elicitation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.sse.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.sse.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"transport.sse.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.sse.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAG9B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAsB,MAAM,mBAAmB,CAAC;AAGpF,qBAAa,mBAAoB,SAAQ,qBAAqB,CAAC,8BAA8B,CAAC;IAC5F,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAQzB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,GAAG,8BAA8B;IAUhG;;;;;;;OAOG;IACH,0BAA0B,CACxB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,cAAc,EACnB,WAAW,CAAC,EAAE,MAAM,GACnB,8BAA8B;IAWjC,UAAU,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAMzE,aAAa,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IA4BxF;;;;;;;;OAQG;IACG,iBAAiB,CAAC,CAAC,SAAS,OAAO,EACvC,gBAAgB,EAAE,SAAS,EAC3B,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,CAAC,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;CAgHnE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TransportType } from '../transport.types';
|
|
2
2
|
import { AuthenticatedServerRequest } from '../../server/server.types';
|
|
3
3
|
import { LocalTransportAdapter } from './transport.local.adapter';
|
|
4
|
-
import { RequestId } from '@
|
|
4
|
+
import { RequestId } from '@frontmcp/protocol';
|
|
5
5
|
import { ZodType } from 'zod';
|
|
6
6
|
import { ServerResponse } from '../../common';
|
|
7
7
|
import { RecreateableStreamableHTTPServerTransport } from './streamable-http-transport';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.streamable-http.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.streamable-http.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"transport.streamable-http.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.streamable-http.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAG9B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,yCAAyC,EAAE,MAAM,6BAA6B,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGhE;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GACpC,eAAe,aAAa,EAC5B,WAAW,MAAM,KAChB,CAAC,MAAM,MAAM,CAAC,GAAG,SAEnB,CAAC;AAEF,qBAAa,8BAA+B,SAAQ,qBAAqB,CAAC,yCAAyC,CAAC;IACzG,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,GAAG,yCAAyC;IA6B1G,UAAU,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IA4D/E,aAAa,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBxF;;;;;;;;;;;;;;;;;OAiBG;IACG,iBAAiB,CAAC,CAAC,SAAS,OAAO,EACvC,gBAAgB,EAAE,SAAS,EAC3B,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,CAAC,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;IAiHlE;;;;;;;OAOG;IACM,iBAAiB,IAAI,IAAI;CAOnC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module transport/event-stores/event-store.factory
|
|
8
8
|
*/
|
|
9
|
-
import type { EventStore } from '@
|
|
9
|
+
import type { EventStore } from '@frontmcp/protocol';
|
|
10
10
|
import type { FrontMcpLogger, RedisOptionsInput, SqliteOptionsInput } from '../../common';
|
|
11
11
|
/**
|
|
12
12
|
* EventStore configuration for SSE resumability support.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-store.factory.d.ts","sourceRoot":"","sources":["../../../src/transport/event-stores/event-store.factory.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"event-store.factory.d.ts","sourceRoot":"","sources":["../../../src/transport/event-stores/event-store.factory.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAG1F;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IAEzC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAE1B;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,UAAU,GAAG,SAAS,CAAC;IAEnC;;OAEG;IACH,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;CAClD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,gBAAgB,CAmFhH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EventId, EventStore, StreamId } from '@
|
|
2
|
-
import type { JSONRPCMessage } from '@
|
|
1
|
+
import type { EventId, EventStore, StreamId } from '@frontmcp/protocol';
|
|
2
|
+
import type { JSONRPCMessage } from '@frontmcp/protocol';
|
|
3
3
|
export interface MemoryEventStoreOptions {
|
|
4
4
|
/** Maximum number of events to store before eviction. Default: 10000 */
|
|
5
5
|
maxEvents?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.event-store.d.ts","sourceRoot":"","sources":["../../../src/transport/event-stores/memory.event-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"memory.event-store.d.ts","sourceRoot":"","sources":["../../../src/transport/event-stores/memory.event-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAQzD,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;GAUG;AACH,qBAAa,gBAAiB,YAAW,UAAU;IACjD,OAAO,CAAC,OAAO,CAAsC;IACrD,OAAO,CAAC,KAAK,CAA2D;IACxE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;gBAEnB,OAAO,GAAE,uBAA4B;IAK3C,UAAU,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAmBzE,iBAAiB,CACrB,WAAW,EAAE,OAAO,EACpB,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,GAC/E,OAAO,CAAC,QAAQ,CAAC;IAuBpB;;OAEG;IACH,OAAO,CAAC,YAAY;IAYpB;;OAEG;IACH,OAAO,CAAC,WAAW;IAsBnB;;OAEG;IACH,OAAO,CAAC,YAAY;IAWpB;;OAEG;IACH,KAAK,IAAI,IAAI;IAKb;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EventId, EventStore, StreamId } from '@
|
|
2
|
-
import type { JSONRPCMessage } from '@
|
|
1
|
+
import type { EventId, EventStore, StreamId } from '@frontmcp/protocol';
|
|
2
|
+
import type { JSONRPCMessage } from '@frontmcp/protocol';
|
|
3
3
|
import type { RedisOptionsInput } from '../../common';
|
|
4
4
|
export interface RedisEventStoreOptions {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redis.event-store.d.ts","sourceRoot":"","sources":["../../../src/transport/event-stores/redis.event-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,E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YAAY;IAYpB;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAM7B"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Creates an in-memory FrontMCP server that can be consumed by MCP SDK Client.
|
|
5
5
|
* Useful for testing, embedding in applications, and LangChain integration.
|
|
6
6
|
*/
|
|
7
|
-
import type { Transport } from '@
|
|
8
|
-
import type { AuthInfo } from '@
|
|
7
|
+
import type { Transport } from '@frontmcp/protocol';
|
|
8
|
+
import type { AuthInfo } from '@frontmcp/protocol';
|
|
9
9
|
import type { Scope } from '../scope/scope.instance';
|
|
10
10
|
/**
|
|
11
11
|
* Options for creating an in-memory MCP server.
|
|
@@ -38,7 +38,7 @@ export interface InMemoryServerResult {
|
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* ```typescript
|
|
41
|
-
* import { Client } from '@
|
|
41
|
+
* import { Client } from '@frontmcp/protocol';
|
|
42
42
|
* import { FrontMcpInstance, createInMemoryServer } from '@frontmcp/sdk';
|
|
43
43
|
*
|
|
44
44
|
* // Create a FrontMCP instance
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-memory-server.d.ts","sourceRoot":"","sources":["../../src/transport/in-memory-server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"in-memory-server.d.ts","sourceRoot":"","sources":["../../src/transport/in-memory-server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGrD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7B,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,gDAAgD;IAChD,eAAe,EAAE,SAAS,CAAC;IAC3B,4CAA4C;IAC5C,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;IACnD,sCAAsC;IACtC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,KAAK,EACZ,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,oBAAoB,CAAC,CAoF/B"}
|
package/transport/index.d.ts
CHANGED
|
@@ -15,10 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
* @module @frontmcp/sdk/transport
|
|
17
17
|
*/
|
|
18
|
-
export { RecreateableStreamableHTTPServerTransport
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
18
|
+
export { RecreateableStreamableHTTPServerTransport } from './adapters/streamable-http-transport';
|
|
19
|
+
export type { StreamableHTTPServerTransportOptions } from './adapters/streamable-http-transport';
|
|
20
|
+
export { RecreateableSSEServerTransport } from './adapters/sse-transport';
|
|
21
|
+
export type { RecreateableSSEServerTransportOptions } from './adapters/sse-transport';
|
|
22
|
+
export { SSEServerTransport } from '#sse-transport';
|
|
23
|
+
export type { SSEServerTransportOptions } from '#sse-transport';
|
|
24
|
+
export type { SupportedTransport } from './adapters/transport.local.adapter';
|
|
22
25
|
export type { TransportType, TransportKey } from './transport.types';
|
|
23
26
|
export { createEventStore, MemoryEventStore, RedisEventStore } from './event-stores';
|
|
24
27
|
export type { EventStoreConfig, EventStoreResult, MemoryEventStoreOptions, RedisEventStoreOptions, } from './event-stores';
|
|
@@ -34,7 +37,7 @@ export type { EventStoreConfig, EventStoreResult, MemoryEventStoreOptions, Redis
|
|
|
34
37
|
* @example
|
|
35
38
|
* ```typescript
|
|
36
39
|
* import { createInMemoryServer } from '@frontmcp/sdk';
|
|
37
|
-
* import { Client } from '@
|
|
40
|
+
* import { Client } from '@frontmcp/protocol';
|
|
38
41
|
*
|
|
39
42
|
* const { clientTransport, setAuthInfo, close } = await createInMemoryServer(scope, {
|
|
40
43
|
* authInfo: { token: 'jwt-token' }
|
package/transport/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transport/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transport/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAE,yCAAyC,EAAE,MAAM,sCAAsC,CAAC;AACjG,YAAY,EAAE,oCAAoC,EAAE,MAAM,sCAAsC,CAAC;AAEjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,YAAY,EAAE,qCAAqC,EAAE,MAAM,0BAA0B,CAAC;AAGtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,YAAY,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAGhE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE7E,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGrE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACrF,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;GAGG;AACH,YAAY,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAEtE;;;;GAIG;AACH,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InitializedNotification, Result } from '@
|
|
1
|
+
import { InitializedNotification, Result } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandler, McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
export default function initializedNotificationHandler(options: McpHandlerOptions): McpHandler<InitializedNotification, Result>;
|
|
4
4
|
//# sourceMappingURL=Initialized-notification.hanlder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Initialized-notification.hanlder.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/Initialized-notification.hanlder.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Initialized-notification.hanlder.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/Initialized-notification.hanlder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,uBAAuB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,8BAA8B,CACpD,OAAO,EAAE,iBAAiB,GACzB,UAAU,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAQ7C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CallToolRequest, CallToolResult } from '@
|
|
1
|
+
import { CallToolRequest, CallToolResult } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandler, McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
export default function callToolRequestHandler({ scope, }: McpHandlerOptions): McpHandler<CallToolRequest, CallToolResult>;
|
|
4
4
|
//# sourceMappingURL=call-tool-request.handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-tool-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/call-tool-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"call-tool-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/call-tool-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAyB,cAAc,EAAwB,MAAM,oBAAoB,CAAC;AAClH,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAIrE,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,eAAe,EAAE,cAAc,CAAC,CA6CjE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompleteRequest, CompleteResult } from '@
|
|
1
|
+
import { CompleteRequest, CompleteResult } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandler, McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
export default function completeRequestHandler({ scope, }: McpHandlerOptions): McpHandler<CompleteRequest, CompleteResult>;
|
|
4
4
|
//# sourceMappingURL=complete-request.handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"complete-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/complete-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,eAAe,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"complete-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/complete-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,eAAe,EAAE,cAAc,CAAC,CAoBjE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetPromptRequest, GetPromptResult } from '@
|
|
1
|
+
import { GetPromptRequest, GetPromptResult } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandler, McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
export default function getPromptRequestHandler({ scope, }: McpHandlerOptions): McpHandler<GetPromptRequest, GetPromptResult>;
|
|
4
4
|
//# sourceMappingURL=get-prompt-request.handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prompt-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/get-prompt-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,gBAAgB,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"get-prompt-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/get-prompt-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAsBnE"}
|