n8n 2.20.6 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abstract-server.d.ts +1 -0
- package/dist/abstract-server.js +10 -3
- package/dist/abstract-server.js.map +1 -1
- package/dist/agent-library-bundle.js +5989 -0
- package/dist/auth/auth.service.js +3 -3
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/execute-batch.d.ts +2 -2
- package/dist/commands/export/workflow.d.ts +2 -2
- package/dist/commands/import/workflow.d.ts +3 -0
- package/dist/commands/import/workflow.js +15 -1
- package/dist/commands/import/workflow.js.map +1 -1
- package/dist/commands/start.js +2 -0
- package/dist/commands/start.js.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +6 -1
- package/dist/constants.js.map +1 -1
- package/dist/controller.registry.js +6 -0
- package/dist/controller.registry.js.map +1 -1
- package/dist/controllers/auth.controller.js +7 -2
- package/dist/controllers/auth.controller.js.map +1 -1
- package/dist/controllers/me.controller.d.ts +1 -0
- package/dist/controllers/me.controller.js +4 -1
- package/dist/controllers/me.controller.js.map +1 -1
- package/dist/controllers/users.controller.d.ts +2 -2
- package/dist/credentials/credentials.service.d.ts +1 -0
- package/dist/credentials/credentials.service.js +11 -4
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/evaluation.ee/evaluation-api-error.d.ts +7 -0
- package/dist/evaluation.ee/evaluation-api-error.js +16 -0
- package/dist/evaluation.ee/evaluation-api-error.js.map +1 -0
- package/dist/evaluation.ee/evaluation-config-validator.d.ts +30 -0
- package/dist/evaluation.ee/evaluation-config-validator.js +236 -0
- package/dist/evaluation.ee/evaluation-config-validator.js.map +1 -0
- package/dist/evaluation.ee/evaluation-config.controller.d.ts +24 -0
- package/dist/evaluation.ee/evaluation-config.controller.js +94 -0
- package/dist/evaluation.ee/evaluation-config.controller.js.map +1 -0
- package/dist/evaluation.ee/evaluation-config.service.d.ts +18 -0
- package/dist/evaluation.ee/evaluation-config.service.js +74 -0
- package/dist/evaluation.ee/evaluation-config.service.js.map +1 -0
- package/dist/evaluation.ee/llm-judge-provider-registry.d.ts +13 -0
- package/dist/evaluation.ee/llm-judge-provider-registry.js +122 -0
- package/dist/evaluation.ee/llm-judge-provider-registry.js.map +1 -0
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +5 -0
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +32 -10
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.d.ts +22 -0
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.js +285 -0
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.js.map +1 -0
- package/dist/evaluation.ee/test-runs.controller.ee.d.ts +3 -0
- package/dist/evaluation.ee/test-runs.controller.ee.js +26 -9
- package/dist/evaluation.ee/test-runs.controller.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runs.types.ee.d.ts +3 -0
- package/dist/eventbus/message-event-bus/message-event-bus.d.ts +2 -0
- package/dist/eventbus/message-event-bus/message-event-bus.js +54 -46
- package/dist/eventbus/message-event-bus/message-event-bus.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +3 -0
- package/dist/instance-settings-loader/instance-settings-loader.service.d.ts +4 -2
- package/dist/instance-settings-loader/instance-settings-loader.service.js +7 -3
- package/dist/instance-settings-loader/instance-settings-loader.service.js.map +1 -1
- package/dist/instance-settings-loader/loaders/community-packages.instance-settings-loader.d.ts +20 -0
- package/dist/instance-settings-loader/loaders/community-packages.instance-settings-loader.js +235 -0
- package/dist/instance-settings-loader/loaders/community-packages.instance-settings-loader.js.map +1 -0
- package/dist/instance-settings-loader/loaders/{sso.instance-settings-loader.d.ts → sso/oidc.instance-settings-loader.d.ts} +4 -10
- package/dist/instance-settings-loader/loaders/sso/oidc.instance-settings-loader.js +98 -0
- package/dist/instance-settings-loader/loaders/sso/oidc.instance-settings-loader.js.map +1 -0
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.d.ts +10 -0
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.js +65 -0
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.js.map +1 -0
- package/dist/instance-settings-loader/loaders/sso/saml.instance-settings-loader.d.ts +12 -0
- package/dist/instance-settings-loader/loaders/sso/saml.instance-settings-loader.js +75 -0
- package/dist/instance-settings-loader/loaders/sso/saml.instance-settings-loader.js.map +1 -0
- package/dist/instance-settings-loader/loaders/sso/sso.instance-settings-loader.d.ts +15 -0
- package/dist/instance-settings-loader/loaders/sso/sso.instance-settings-loader.js +75 -0
- package/dist/instance-settings-loader/loaders/sso/sso.instance-settings-loader.js.map +1 -0
- package/dist/load-nodes-and-credentials.d.ts +3 -3
- package/dist/load-nodes-and-credentials.js +25 -17
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/modules/agents/adapters/agents-credential-provider.d.ts +12 -0
- package/dist/modules/agents/adapters/agents-credential-provider.js +63 -0
- package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -0
- package/dist/modules/agents/agent-execution.service.d.ts +42 -0
- package/dist/modules/agents/agent-execution.service.js +153 -0
- package/dist/modules/agents/agent-execution.service.js.map +1 -0
- package/dist/modules/agents/agent-message-mapper.d.ts +5 -0
- package/dist/modules/agents/agent-message-mapper.js +43 -0
- package/dist/modules/agents/agent-message-mapper.js.map +1 -0
- package/dist/modules/agents/agent-skills.service.d.ts +24 -0
- package/dist/modules/agents/agent-skills.service.js +166 -0
- package/dist/modules/agents/agent-skills.service.js.map +1 -0
- package/dist/modules/agents/agent-sse-stream.d.ts +15 -0
- package/dist/modules/agents/agent-sse-stream.js +194 -0
- package/dist/modules/agents/agent-sse-stream.js.map +1 -0
- package/dist/modules/agents/agents-tools.service.d.ts +18 -0
- package/dist/modules/agents/agents-tools.service.js +193 -0
- package/dist/modules/agents/agents-tools.service.js.map +1 -0
- package/dist/modules/agents/agents.controller.d.ts +260 -0
- package/dist/modules/agents/agents.controller.js +818 -0
- package/dist/modules/agents/agents.controller.js.map +1 -0
- package/dist/modules/agents/agents.module.d.ts +12 -0
- package/dist/modules/agents/agents.module.js +136 -0
- package/dist/modules/agents/agents.module.js.map +1 -0
- package/dist/modules/agents/agents.service.d.ts +151 -0
- package/dist/modules/agents/agents.service.js +1134 -0
- package/dist/modules/agents/agents.service.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +27 -0
- package/dist/modules/agents/builder/agents-builder-prompts.js +584 -0
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder-settings.controller.d.ts +11 -0
- package/dist/modules/agents/builder/agents-builder-settings.controller.js +61 -0
- package/dist/modules/agents/builder/agents-builder-settings.controller.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder-settings.service.d.ts +31 -0
- package/dist/modules/agents/builder/agents-builder-settings.service.js +199 -0
- package/dist/modules/agents/builder/agents-builder-settings.service.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +31 -0
- package/dist/modules/agents/builder/agents-builder-tools.service.js +420 -0
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder.service.d.ts +26 -0
- package/dist/modules/agents/builder/agents-builder.service.js +164 -0
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -0
- package/dist/modules/agents/builder/builder-model-lookup.service.d.ts +17 -0
- package/dist/modules/agents/builder/builder-model-lookup.service.js +67 -0
- package/dist/modules/agents/builder/builder-model-lookup.service.js.map +1 -0
- package/dist/modules/agents/builder/builder-tool-names.d.ts +14 -0
- package/dist/modules/agents/builder/builder-tool-names.js +17 -0
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -0
- package/dist/modules/agents/builder/errors.d.ts +6 -0
- package/dist/modules/agents/builder/errors.js +13 -0
- package/dist/modules/agents/builder/errors.js.map +1 -0
- package/dist/modules/agents/builder/interactive/ask-credential.tool.d.ts +5 -0
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +29 -0
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -0
- package/dist/modules/agents/builder/interactive/ask-llm.tool.d.ts +2 -0
- package/dist/modules/agents/builder/interactive/ask-llm.tool.js +27 -0
- package/dist/modules/agents/builder/interactive/ask-llm.tool.js.map +1 -0
- package/dist/modules/agents/builder/interactive/ask-question.tool.d.ts +2 -0
- package/dist/modules/agents/builder/interactive/ask-question.tool.js +26 -0
- package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -0
- package/dist/modules/agents/builder/interactive/index.d.ts +4 -0
- package/dist/modules/agents/builder/interactive/index.js +12 -0
- package/dist/modules/agents/builder/interactive/index.js.map +1 -0
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.d.ts +17 -0
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.js +60 -0
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.js.map +1 -0
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.d.ts +13 -0
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +136 -0
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -0
- package/dist/modules/agents/entities/agent-checkpoint.entity.d.ts +9 -0
- package/dist/modules/agents/entities/agent-checkpoint.entity.js +43 -0
- package/dist/modules/agents/entities/agent-checkpoint.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.d.ts +16 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js +74 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-execution.entity.d.ts +26 -0
- package/dist/modules/agents/entities/agent-execution.entity.js +100 -0
- package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-message.entity.d.ts +10 -0
- package/dist/modules/agents/entities/agent-message.entity.js +47 -0
- package/dist/modules/agents/entities/agent-message.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-observation-cursor.entity.d.ts +8 -0
- package/dist/modules/agents/entities/agent-observation-cursor.entity.js +37 -0
- package/dist/modules/agents/entities/agent-observation-cursor.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-observation-lock.entity.d.ts +8 -0
- package/dist/modules/agents/entities/agent-observation-lock.entity.js +37 -0
- package/dist/modules/agents/entities/agent-observation-lock.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-observation.entity.d.ts +10 -0
- package/dist/modules/agents/entities/agent-observation.entity.js +47 -0
- package/dist/modules/agents/entities/agent-observation.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-published-version.entity.d.ts +22 -0
- package/dist/modules/agents/entities/agent-published-version.entity.js +67 -0
- package/dist/modules/agents/entities/agent-published-version.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-resource.entity.d.ts +5 -0
- package/dist/modules/agents/entities/agent-resource.entity.js +29 -0
- package/dist/modules/agents/entities/agent-resource.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-thread.entity.d.ts +6 -0
- package/dist/modules/agents/entities/agent-thread.entity.js +33 -0
- package/dist/modules/agents/entities/agent-thread.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent.entity.d.ts +24 -0
- package/dist/modules/agents/entities/agent.entity.js +74 -0
- package/dist/modules/agents/entities/agent.entity.js.map +1 -0
- package/dist/modules/agents/execution-recorder.d.ts +82 -0
- package/dist/modules/agents/execution-recorder.js +272 -0
- package/dist/modules/agents/execution-recorder.js.map +1 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +62 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.js +540 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -0
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +39 -0
- package/dist/modules/agents/integrations/agent-chat-integration.js +45 -0
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -0
- package/dist/modules/agents/integrations/agent-schedule.service.d.ts +30 -0
- package/dist/modules/agents/integrations/agent-schedule.service.js +327 -0
- package/dist/modules/agents/integrations/agent-schedule.service.js.map +1 -0
- package/dist/modules/agents/integrations/callback-store.d.ts +11 -0
- package/dist/modules/agents/integrations/callback-store.js +30 -0
- package/dist/modules/agents/integrations/callback-store.js.map +1 -0
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +58 -0
- package/dist/modules/agents/integrations/chat-integration.service.js +397 -0
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -0
- package/dist/modules/agents/integrations/component-mapper.d.ts +57 -0
- package/dist/modules/agents/integrations/component-mapper.js +223 -0
- package/dist/modules/agents/integrations/component-mapper.js.map +1 -0
- package/dist/modules/agents/integrations/cron-validation.d.ts +1 -0
- package/dist/modules/agents/integrations/cron-validation.js +8 -0
- package/dist/modules/agents/integrations/cron-validation.js.map +1 -0
- package/dist/modules/agents/integrations/esm-loader.d.ts +5 -0
- package/dist/modules/agents/integrations/esm-loader.js +24 -0
- package/dist/modules/agents/integrations/esm-loader.js.map +1 -0
- package/dist/modules/agents/integrations/integrations-sync.d.ts +4 -0
- package/dist/modules/agents/integrations/integrations-sync.js +78 -0
- package/dist/modules/agents/integrations/integrations-sync.js.map +1 -0
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.d.ts +36 -0
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.js +148 -0
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.js.map +1 -0
- package/dist/modules/agents/integrations/n8n-memory.d.ts +76 -0
- package/dist/modules/agents/integrations/n8n-memory.js +383 -0
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/linear-integration.d.ts +14 -0
- package/dist/modules/agents/integrations/platforms/linear-integration.js +83 -0
- package/dist/modules/agents/integrations/platforms/linear-integration.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack-integration.d.ts +12 -0
- package/dist/modules/agents/integrations/platforms/slack-integration.js +81 -0
- package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +30 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.js +122 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -0
- package/dist/modules/agents/integrations/rich-interaction-tool.d.ts +47 -0
- package/dist/modules/agents/integrations/rich-interaction-tool.js +109 -0
- package/dist/modules/agents/integrations/rich-interaction-tool.js.map +1 -0
- package/dist/modules/agents/integrations/types.d.ts +8 -0
- package/dist/modules/agents/integrations/types.js +12 -0
- package/dist/modules/agents/integrations/types.js.map +1 -0
- package/dist/modules/agents/json-config/agent-config-composition.d.ts +9 -0
- package/dist/modules/agents/json-config/agent-config-composition.js +27 -0
- package/dist/modules/agents/json-config/agent-config-composition.js.map +1 -0
- package/dist/modules/agents/json-config/agent-json-config.d.ts +1022 -0
- package/dist/modules/agents/json-config/agent-json-config.js +128 -0
- package/dist/modules/agents/json-config/agent-json-config.js.map +1 -0
- package/dist/modules/agents/json-config/credential-field-mapping.d.ts +4 -0
- package/dist/modules/agents/json-config/credential-field-mapping.js +41 -0
- package/dist/modules/agents/json-config/credential-field-mapping.js.map +1 -0
- package/dist/modules/agents/json-config/from-json-config.d.ts +18 -0
- package/dist/modules/agents/json-config/from-json-config.js +209 -0
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -0
- package/dist/modules/agents/json-config/integration-config.d.ts +61 -0
- package/dist/modules/agents/json-config/integration-config.js +33 -0
- package/dist/modules/agents/json-config/integration-config.js.map +1 -0
- package/dist/modules/agents/json-config/provider-tool-aliases.d.ts +1 -0
- package/dist/modules/agents/json-config/provider-tool-aliases.js +15 -0
- package/dist/modules/agents/json-config/provider-tool-aliases.js.map +1 -0
- package/dist/modules/agents/json-config/schema-text-serializer.d.ts +2 -0
- package/dist/modules/agents/json-config/schema-text-serializer.js +205 -0
- package/dist/modules/agents/json-config/schema-text-serializer.js.map +1 -0
- package/dist/modules/agents/repositories/agent-checkpoint.repository.d.ts +6 -0
- package/dist/modules/agents/repositories/agent-checkpoint.repository.js +35 -0
- package/dist/modules/agents/repositories/agent-checkpoint.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +18 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +120 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-execution.repository.d.ts +10 -0
- package/dist/modules/agents/repositories/agent-execution.repository.js +59 -0
- package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-message.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-message.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-message.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-observation-cursor.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-observation-cursor.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-observation-cursor.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-observation-lock.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-observation-lock.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-observation-lock.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-observation.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-observation.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-observation.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-published-version.repository.d.ts +20 -0
- package/dist/modules/agents/repositories/agent-published-version.repository.js +35 -0
- package/dist/modules/agents/repositories/agent-published-version.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-resource.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-resource.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-resource.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-thread.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-thread.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-thread.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent.repository.d.ts +9 -0
- package/dist/modules/agents/repositories/agent.repository.js +50 -0
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -0
- package/dist/modules/agents/runtime/agent-isolate-pool.d.ts +48 -0
- package/dist/modules/agents/runtime/agent-isolate-pool.js +246 -0
- package/dist/modules/agents/runtime/agent-isolate-pool.js.map +1 -0
- package/dist/modules/agents/runtime/agent-secure-runtime.d.ts +21 -0
- package/dist/modules/agents/runtime/agent-secure-runtime.js +281 -0
- package/dist/modules/agents/runtime/agent-secure-runtime.js.map +1 -0
- package/dist/modules/agents/runtime/sandbox-polyfills.d.ts +1 -0
- package/dist/modules/agents/runtime/sandbox-polyfills.js +74 -0
- package/dist/modules/agents/runtime/sandbox-polyfills.js.map +1 -0
- package/dist/modules/agents/tool-registry.d.ts +13 -0
- package/dist/modules/agents/tool-registry.js +42 -0
- package/dist/modules/agents/tool-registry.js.map +1 -0
- package/dist/modules/agents/tools/environment-tool.d.ts +3 -0
- package/dist/modules/agents/tools/environment-tool.js +26 -0
- package/dist/modules/agents/tools/environment-tool.js.map +1 -0
- package/dist/modules/agents/tools/node-tool-factory.d.ts +10 -0
- package/dist/modules/agents/tools/node-tool-factory.js +100 -0
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -0
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +43 -0
- package/dist/modules/agents/tools/workflow-tool-factory.js +404 -0
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -0
- package/dist/modules/agents/tracing/builder-telemetry.d.ts +12 -0
- package/dist/modules/agents/tracing/builder-telemetry.js +48 -0
- package/dist/modules/agents/tracing/builder-telemetry.js.map +1 -0
- package/dist/modules/agents/types/components.d.ts +71 -0
- package/dist/modules/agents/types/components.js +3 -0
- package/dist/modules/agents/types/components.js.map +1 -0
- package/dist/modules/agents/types/index.d.ts +1 -0
- package/dist/modules/agents/types/index.js +3 -0
- package/dist/modules/agents/types/index.js.map +1 -0
- package/dist/modules/agents/utils/agent-draft.utils.d.ts +2 -0
- package/dist/modules/agents/utils/agent-draft.utils.js +11 -0
- package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -0
- package/dist/modules/agents/utils/agent-resource-id.d.ts +3 -0
- package/dist/modules/agents/utils/agent-resource-id.js +14 -0
- package/dist/modules/agents/utils/agent-resource-id.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub.module.d.ts +2 -2
- package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +4 -4
- package/dist/modules/chat-hub/chat-hub.types.d.ts +2 -2
- package/dist/modules/chat-hub/dto/chat-models-request.dto.d.ts +1 -1
- package/dist/modules/community-packages/community-packages.config.js +2 -2
- package/dist/modules/community-packages/community-packages.config.js.map +1 -1
- package/dist/modules/community-packages/community-packages.lifecycle.service.d.ts +4 -1
- package/dist/modules/community-packages/community-packages.lifecycle.service.js +14 -2
- package/dist/modules/community-packages/community-packages.lifecycle.service.js.map +1 -1
- package/dist/modules/community-packages/community-packages.module.d.ts +1 -1
- package/dist/modules/community-packages/community-packages.module.js +10 -5
- package/dist/modules/community-packages/community-packages.module.js.map +1 -1
- package/dist/modules/data-table/data-table.service.js +6 -0
- package/dist/modules/data-table/data-table.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/slack-signature-identifier.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.d.ts +2 -0
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.js +10 -0
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js +16 -4
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.d.ts +3 -3
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.js +11 -3
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.js.map +1 -1
- package/dist/modules/encryption-key-manager/encryption-bootstrap.service.js +4 -2
- package/dist/modules/encryption-key-manager/encryption-bootstrap.service.js.map +1 -1
- package/dist/modules/encryption-key-manager/encryption-key-manager.module.js +5 -2
- package/dist/modules/encryption-key-manager/encryption-key-manager.module.js.map +1 -1
- package/dist/modules/encryption-key-manager/encryption-key.controller.d.ts +3 -3
- package/dist/modules/encryption-key-manager/encryption-key.controller.js +8 -2
- package/dist/modules/encryption-key-manager/encryption-key.controller.js.map +1 -1
- package/dist/modules/encryption-key-manager/key-manager.service.d.ts +5 -1
- package/dist/modules/encryption-key-manager/key-manager.service.js +11 -4
- package/dist/modules/encryption-key-manager/key-manager.service.js.map +1 -1
- package/dist/modules/insights/insights-collection.service.js +1 -0
- package/dist/modules/insights/insights-collection.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +17 -49
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.d.ts +1 -0
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.js +21 -3
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +3 -2
- package/dist/modules/instance-ai/instance-ai-settings.service.js +10 -9
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-test.controller.d.ts +21 -2
- package/dist/modules/instance-ai/instance-ai-test.controller.js +35 -3
- package/dist/modules/instance-ai/instance-ai-test.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +72 -42
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +2 -0
- package/dist/modules/instance-ai/instance-ai.controller.js +25 -1
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +0 -1
- package/dist/modules/instance-ai/instance-ai.module.js +0 -2
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +34 -5
- package/dist/modules/instance-ai/instance-ai.service.js +723 -76
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/liveness/index.d.ts +1 -0
- package/dist/modules/instance-ai/liveness/index.js +7 -0
- package/dist/modules/instance-ai/liveness/index.js.map +1 -0
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +72 -0
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +123 -0
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -0
- package/dist/modules/instance-ai/message-parser.js +85 -6
- package/dist/modules/instance-ai/message-parser.js.map +1 -1
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js +4 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.js +1 -0
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.js.map +1 -1
- package/dist/modules/instance-ai/web-research/fetch-and-extract.js +23 -7
- package/dist/modules/instance-ai/web-research/fetch-and-extract.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +3 -3
- package/dist/modules/mcp/mcp.service.js +12 -9
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/tools/get-execution.tool.js +6 -4
- package/dist/modules/mcp/tools/get-execution.tool.js.map +1 -1
- package/dist/modules/mcp/tools/list-credentials.tool.d.ts +40 -0
- package/dist/modules/mcp/tools/list-credentials.tool.js +148 -0
- package/dist/modules/mcp/tools/list-credentials.tool.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +5 -4
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.js +3 -3
- package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js +2 -2
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js +3 -2
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +3 -3
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.js +12 -4
- package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js +12 -5
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +1 -2
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.d.ts +5 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.js +4 -2
- package/dist/modules/mcp/tools/workflow-validation.utils.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry-node-loader.d.ts +27 -0
- package/dist/modules/mcp-registry/mcp-registry-node-loader.js +105 -0
- package/dist/modules/mcp-registry/mcp-registry-node-loader.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-registry-node-loader.test.d.ts +1 -0
- package/dist/modules/mcp-registry/mcp-registry-node-loader.test.js +244 -0
- package/dist/modules/mcp-registry/mcp-registry-node-loader.test.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-registry.module.d.ts +4 -0
- package/dist/modules/mcp-registry/mcp-registry.module.js +60 -0
- package/dist/modules/mcp-registry/mcp-registry.module.js.map +1 -0
- package/dist/modules/mcp-registry/node-description-transform.d.ts +8 -0
- package/dist/modules/mcp-registry/node-description-transform.js +133 -0
- package/dist/modules/mcp-registry/node-description-transform.js.map +1 -0
- package/dist/modules/mcp-registry/node-description-transform.test.d.ts +1 -0
- package/dist/modules/mcp-registry/node-description-transform.test.js +286 -0
- package/dist/modules/mcp-registry/node-description-transform.test.js.map +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.d.ts +8 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js +31 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.test.d.ts +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.test.js +41 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.test.js.map +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.types.d.ts +36 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js +3 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js.map +1 -0
- package/dist/modules/mcp-registry/registry/mock-servers.d.ts +3 -0
- package/dist/modules/mcp-registry/registry/mock-servers.js +80 -0
- package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -0
- package/dist/modules/otel/execution-level-tracer.d.ts +1 -1
- package/dist/modules/otel/execution-level-tracer.js +24 -9
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.types.d.ts +9 -7
- package/dist/modules/otel/execution-level-tracer.types.js +14 -0
- package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
- package/dist/modules/quick-connect/quick-connect.config.d.ts +176 -0
- package/dist/modules/quick-connect/quick-connect.config.js +8 -0
- package/dist/modules/quick-connect/quick-connect.config.js.map +1 -1
- package/dist/modules/quick-connect/quick-connect.module.d.ts +15 -0
- package/dist/modules/redaction/executions/execution-redaction.service.d.ts +1 -3
- package/dist/modules/redaction/executions/execution-redaction.service.js +2 -6
- package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +2 -2
- package/dist/modules/source-control.ee/source-control.service.ee.d.ts +1 -1
- package/dist/modules/sso-oidc/oidc.controller.ee.d.ts +3 -1
- package/dist/modules/sso-oidc/oidc.controller.ee.js +8 -1
- package/dist/modules/sso-oidc/oidc.controller.ee.js.map +1 -1
- package/dist/node-catalog/index.d.ts +1 -0
- package/dist/node-catalog/index.js +6 -0
- package/dist/node-catalog/index.js.map +1 -0
- package/dist/{modules/mcp/tools/workflow-builder/workflow-builder-tools.service.d.ts → node-catalog/node-catalog.service.d.ts} +9 -15
- package/dist/{modules/mcp/tools/workflow-builder/workflow-builder-tools.service.js → node-catalog/node-catalog.service.js} +38 -28
- package/dist/node-catalog/node-catalog.service.js.map +1 -0
- package/dist/node-execution/ephemeral-node-executor.d.ts +47 -0
- package/dist/node-execution/ephemeral-node-executor.js +289 -0
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -0
- package/dist/node-execution/index.d.ts +2 -0
- package/dist/node-execution/index.js +8 -0
- package/dist/node-execution/index.js.map +1 -0
- package/dist/public-api/v1/handlers/audit/audit.handler.d.ts +5 -4
- package/dist/public-api/v1/handlers/audit/audit.handler.js +5 -9
- package/dist/public-api/v1/handlers/audit/audit.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/community-packages/community-packages.handler.d.ts +20 -17
- package/dist/public-api/v1/handlers/community-packages/community-packages.handler.js +12 -39
- package/dist/public-api/v1/handlers/community-packages/community-packages.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/credentials/credentials.handler.d.ts +12 -49
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js +6 -5
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/data-tables/data-tables.columns.handler.d.ts +8 -19
- package/dist/public-api/v1/handlers/data-tables/data-tables.columns.handler.js +11 -11
- package/dist/public-api/v1/handlers/data-tables/data-tables.columns.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/data-tables/data-tables.handler.d.ts +9 -17
- package/dist/public-api/v1/handlers/data-tables/data-tables.handler.js +19 -23
- package/dist/public-api/v1/handlers/data-tables/data-tables.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.d.ts +9 -23
- package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.js +17 -27
- package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/discover/discover.handler.d.ts +11 -9
- package/dist/public-api/v1/handlers/discover/discover.handler.js +5 -3
- package/dist/public-api/v1/handlers/discover/discover.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.d.ts +12 -11
- package/dist/public-api/v1/handlers/executions/executions.handler.js +46 -80
- package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/folders/folders.handler.d.ts +12 -17
- package/dist/public-api/v1/handlers/folders/folders.handler.js +17 -20
- package/dist/public-api/v1/handlers/folders/folders.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/insights/insights.handler.d.ts +5 -4
- package/dist/public-api/v1/handlers/insights/insights.handler.js +9 -5
- package/dist/public-api/v1/handlers/insights/insights.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/projects/projects.handler.d.ts +28 -11
- package/dist/public-api/v1/handlers/projects/projects.handler.js +44 -75
- package/dist/public-api/v1/handlers/projects/projects.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/source-control/source-control.handler.d.ts +5 -6
- package/dist/public-api/v1/handlers/source-control/source-control.handler.js +3 -2
- package/dist/public-api/v1/handlers/source-control/source-control.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/tags/tags.handler.d.ts +9 -8
- package/dist/public-api/v1/handlers/tags/tags.handler.js +11 -8
- package/dist/public-api/v1/handlers/tags/tags.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/users/users.handler.ee.d.ts +14 -11
- package/dist/public-api/v1/handlers/users/users.handler.ee.js +7 -8
- package/dist/public-api/v1/handlers/users/users.handler.ee.js.map +1 -1
- package/dist/public-api/v1/handlers/variables/variables.handler.d.ts +13 -7
- package/dist/public-api/v1/handlers/variables/variables.handler.js +5 -3
- package/dist/public-api/v1/handlers/variables/variables.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +17 -49
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js +27 -46
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -1
- package/dist/public-api/v1/shared/handler.types.d.ts +7 -1
- package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +1 -2
- package/dist/public-api/v1/shared/middlewares/global.middleware.js +7 -6
- package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +1 -1
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/job-processor.js +2 -0
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +9 -0
- package/dist/scaling/pubsub/pubsub.types.d.ts +3 -1
- package/dist/scaling/scaling.types.d.ts +1 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +2 -0
- package/dist/server.js.map +1 -1
- package/dist/services/frontend.service.js +7 -14
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/import.service.d.ts +9 -3
- package/dist/services/import.service.js +72 -5
- package/dist/services/import.service.js.map +1 -1
- package/dist/services/proxy-token-manager.js.map +1 -0
- package/dist/services/workflow-statistics.service.js +1 -0
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker.service.d.ts +2 -0
- package/dist/task-runners/task-broker/task-broker.service.js +13 -1
- package/dist/task-runners/task-broker/task-broker.service.js.map +1 -1
- package/dist/utils/ttl-map.d.ts +17 -0
- package/dist/utils/ttl-map.js +80 -0
- package/dist/utils/ttl-map.js.map +1 -0
- package/dist/webhooks/test-webhooks.d.ts +3 -1
- package/dist/webhooks/test-webhooks.js +11 -3
- package/dist/webhooks/test-webhooks.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +2 -1
- package/dist/workflow-execute-additional-data.js +34 -0
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.d.ts +1 -0
- package/dist/workflow-helpers.js +15 -0
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.js +2 -0
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/workflow-creation.service.js +1 -0
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow.service.js +4 -0
- package/dist/workflows/workflow.service.js.map +1 -1
- package/package.json +40 -25
- package/dist/instance-settings-loader/loaders/sso.instance-settings-loader.js +0 -203
- package/dist/instance-settings-loader/loaders/sso.instance-settings-loader.js.map +0 -1
- package/dist/modules/instance-ai/proxy-token-manager.js.map +0 -1
- package/dist/modules/mcp/tools/workflow-builder/workflow-builder-tools.service.js.map +0 -1
- /package/dist/{modules/instance-ai → services}/proxy-token-manager.d.ts +0 -0
- /package/dist/{modules/instance-ai → services}/proxy-token-manager.js +0 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
|
+
const node_description_transform_1 = require("./node-description-transform");
|
|
5
|
+
const mock_servers_1 = require("./registry/mock-servers");
|
|
6
|
+
const baseDescription = {
|
|
7
|
+
displayName: 'MCP Registry Client (internal)',
|
|
8
|
+
name: 'mcpRegistryClientTool',
|
|
9
|
+
hidden: true,
|
|
10
|
+
group: ['output'],
|
|
11
|
+
version: 1,
|
|
12
|
+
description: 'Runtime backing for MCP registry-derived nodes',
|
|
13
|
+
defaults: { name: 'MCP Registry Client' },
|
|
14
|
+
codex: {
|
|
15
|
+
categories: ['AI'],
|
|
16
|
+
subcategories: { AI: ['Model Context Protocol'] },
|
|
17
|
+
alias: ['MCP', 'Model Context Protocol'],
|
|
18
|
+
},
|
|
19
|
+
inputs: [],
|
|
20
|
+
outputs: [],
|
|
21
|
+
credentials: [{ name: 'mcpOAuth2Api', required: true }],
|
|
22
|
+
properties: [
|
|
23
|
+
{ displayName: 'Endpoint URL', name: 'endpointUrl', type: 'hidden', default: '' },
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Server Transport',
|
|
26
|
+
name: 'serverTransport',
|
|
27
|
+
type: 'hidden',
|
|
28
|
+
default: 'httpStreamable',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Tools to Include',
|
|
32
|
+
name: 'include',
|
|
33
|
+
type: 'options',
|
|
34
|
+
default: 'all',
|
|
35
|
+
options: [],
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
};
|
|
39
|
+
describe('serverToNodeDescription', () => {
|
|
40
|
+
it('returns a description tailored to the Notion mock server', () => {
|
|
41
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
|
|
42
|
+
expect(description).not.toBeNull();
|
|
43
|
+
expect(description).toMatchObject({
|
|
44
|
+
name: 'notion',
|
|
45
|
+
displayName: 'Notion MCP',
|
|
46
|
+
description: mock_servers_1.notionMockServer.description,
|
|
47
|
+
iconUrl: mock_servers_1.notionMockServer.icons[0].src,
|
|
48
|
+
defaults: { name: 'Notion MCP' },
|
|
49
|
+
version: 1,
|
|
50
|
+
});
|
|
51
|
+
expect(description?.hidden).toBeUndefined();
|
|
52
|
+
});
|
|
53
|
+
it('prefers streamable-http when both remotes are available', () => {
|
|
54
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
|
|
55
|
+
const endpointUrl = description?.properties.find((p) => p.name === 'endpointUrl');
|
|
56
|
+
const serverTransport = description?.properties.find((p) => p.name === 'serverTransport');
|
|
57
|
+
expect(serverTransport?.default).toBe('httpStreamable');
|
|
58
|
+
expect(endpointUrl?.default).toBe('https://mcp.notion.com/mcp');
|
|
59
|
+
});
|
|
60
|
+
it('falls back to sse when only sse is available', () => {
|
|
61
|
+
const sseOnlyServer = {
|
|
62
|
+
...mock_servers_1.notionMockServer,
|
|
63
|
+
remotes: [{ type: 'sse', url: 'https://mcp.notion.com/sse' }],
|
|
64
|
+
};
|
|
65
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(sseOnlyServer, baseDescription);
|
|
66
|
+
const endpointUrl = description?.properties.find((p) => p.name === 'endpointUrl');
|
|
67
|
+
const serverTransport = description?.properties.find((p) => p.name === 'serverTransport');
|
|
68
|
+
expect(serverTransport?.default).toBe('sse');
|
|
69
|
+
expect(endpointUrl?.default).toBe('https://mcp.notion.com/sse');
|
|
70
|
+
});
|
|
71
|
+
it('returns null when no supported remote is available', () => {
|
|
72
|
+
const unsupportedServer = {
|
|
73
|
+
...mock_servers_1.notionMockServer,
|
|
74
|
+
remotes: [],
|
|
75
|
+
};
|
|
76
|
+
expect((0, node_description_transform_1.serverToNodeDescription)(unsupportedServer, baseDescription)).toBeNull();
|
|
77
|
+
});
|
|
78
|
+
it('marks deprecated servers as hidden so the node creator skips them', () => {
|
|
79
|
+
const deprecatedServer = { ...mock_servers_1.notionMockServer, status: 'deprecated' };
|
|
80
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(deprecatedServer, baseDescription);
|
|
81
|
+
expect(description?.hidden).toBe(true);
|
|
82
|
+
});
|
|
83
|
+
it('returns a themed iconUrl when both light and dark variants are available', () => {
|
|
84
|
+
const themedServer = {
|
|
85
|
+
...mock_servers_1.notionMockServer,
|
|
86
|
+
icons: [
|
|
87
|
+
{ src: 'https://example.com/light.svg', theme: 'light' },
|
|
88
|
+
{ src: 'https://example.com/dark.svg', theme: 'dark' },
|
|
89
|
+
],
|
|
90
|
+
};
|
|
91
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(themedServer, baseDescription);
|
|
92
|
+
expect(description?.iconUrl).toEqual({
|
|
93
|
+
light: 'https://example.com/light.svg',
|
|
94
|
+
dark: 'https://example.com/dark.svg',
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
it('falls back to the first icon when only one theme is provided', () => {
|
|
98
|
+
const lightOnlyServer = {
|
|
99
|
+
...mock_servers_1.notionMockServer,
|
|
100
|
+
icons: [{ src: 'https://example.com/light.svg', theme: 'light' }],
|
|
101
|
+
};
|
|
102
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(lightOnlyServer, baseDescription);
|
|
103
|
+
expect(description?.iconUrl).toBe('https://example.com/light.svg');
|
|
104
|
+
});
|
|
105
|
+
it('prefers SVG over PNG over JPG when multiple formats are available', () => {
|
|
106
|
+
const multiFormatServer = {
|
|
107
|
+
...mock_servers_1.notionMockServer,
|
|
108
|
+
icons: [
|
|
109
|
+
{ src: 'https://example.com/icon.jpg', mimeType: 'image/jpeg' },
|
|
110
|
+
{ src: 'https://example.com/icon.png', mimeType: 'image/png' },
|
|
111
|
+
{ src: 'https://example.com/icon.svg', mimeType: 'image/svg+xml' },
|
|
112
|
+
],
|
|
113
|
+
};
|
|
114
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(multiFormatServer, baseDescription);
|
|
115
|
+
expect(description?.iconUrl).toBe('https://example.com/icon.svg');
|
|
116
|
+
});
|
|
117
|
+
it('prefers PNG over JPG when SVG is not available', () => {
|
|
118
|
+
const noSvgServer = {
|
|
119
|
+
...mock_servers_1.notionMockServer,
|
|
120
|
+
icons: [
|
|
121
|
+
{ src: 'https://example.com/icon.jpg', mimeType: 'image/jpeg' },
|
|
122
|
+
{ src: 'https://example.com/icon.png', mimeType: 'image/png' },
|
|
123
|
+
],
|
|
124
|
+
};
|
|
125
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(noSvgServer, baseDescription);
|
|
126
|
+
expect(description?.iconUrl).toBe('https://example.com/icon.png');
|
|
127
|
+
});
|
|
128
|
+
it('applies mime type preference within each theme', () => {
|
|
129
|
+
const themedMultiFormatServer = {
|
|
130
|
+
...mock_servers_1.notionMockServer,
|
|
131
|
+
icons: [
|
|
132
|
+
{ src: 'https://example.com/light.png', mimeType: 'image/png', theme: 'light' },
|
|
133
|
+
{ src: 'https://example.com/light.svg', mimeType: 'image/svg+xml', theme: 'light' },
|
|
134
|
+
{ src: 'https://example.com/dark.jpg', mimeType: 'image/jpeg', theme: 'dark' },
|
|
135
|
+
{ src: 'https://example.com/dark.png', mimeType: 'image/png', theme: 'dark' },
|
|
136
|
+
],
|
|
137
|
+
};
|
|
138
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(themedMultiFormatServer, baseDescription);
|
|
139
|
+
expect(description?.iconUrl).toEqual({
|
|
140
|
+
light: 'https://example.com/light.svg',
|
|
141
|
+
dark: 'https://example.com/dark.png',
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
it('extends codex.alias with the title and displayName', () => {
|
|
145
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
|
|
146
|
+
expect(description?.codex?.alias).toEqual([
|
|
147
|
+
'MCP',
|
|
148
|
+
'Model Context Protocol',
|
|
149
|
+
'Notion',
|
|
150
|
+
'Notion MCP',
|
|
151
|
+
]);
|
|
152
|
+
});
|
|
153
|
+
it('sets primaryDocumentation when websiteUrl is present', () => {
|
|
154
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
|
|
155
|
+
expect(description?.codex?.resources).toEqual({
|
|
156
|
+
primaryDocumentation: [{ url: mock_servers_1.notionMockServer.websiteUrl }],
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
it('does not mutate the input baseDescription', () => {
|
|
160
|
+
const snapshot = (0, n8n_workflow_1.deepCopy)(baseDescription);
|
|
161
|
+
(0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
|
|
162
|
+
expect(baseDescription).toEqual(snapshot);
|
|
163
|
+
});
|
|
164
|
+
it('leaves properties other than endpointUrl and serverTransport untouched', () => {
|
|
165
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
|
|
166
|
+
const include = description?.properties.find((p) => p.name === 'include');
|
|
167
|
+
expect(include).toEqual(baseDescription.properties.find((p) => p.name === 'include'));
|
|
168
|
+
});
|
|
169
|
+
it('matches inline snapshot for Notion mock server', () => {
|
|
170
|
+
const description = (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
|
|
171
|
+
expect(description).toMatchInlineSnapshot(`
|
|
172
|
+
{
|
|
173
|
+
"codex": {
|
|
174
|
+
"alias": [
|
|
175
|
+
"MCP",
|
|
176
|
+
"Model Context Protocol",
|
|
177
|
+
"Notion",
|
|
178
|
+
"Notion MCP",
|
|
179
|
+
],
|
|
180
|
+
"categories": [
|
|
181
|
+
"AI",
|
|
182
|
+
],
|
|
183
|
+
"resources": {
|
|
184
|
+
"primaryDocumentation": [
|
|
185
|
+
{
|
|
186
|
+
"url": "https://developers.notion.com/docs/mcp",
|
|
187
|
+
},
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
"subcategories": {
|
|
191
|
+
"AI": [
|
|
192
|
+
"Model Context Protocol",
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
"credentials": [
|
|
197
|
+
{
|
|
198
|
+
"name": "notionMcpOAuth2Api",
|
|
199
|
+
"required": true,
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
"defaults": {
|
|
203
|
+
"name": "Notion MCP",
|
|
204
|
+
},
|
|
205
|
+
"description": "Notion's official MCP server lets you use your Notion workspace as a system of record for knowledge work and software development. Search questions about the codebase and business, fetch links to pages such as tech specs and PRDs, and track tasks with your team.",
|
|
206
|
+
"displayName": "Notion MCP",
|
|
207
|
+
"group": [
|
|
208
|
+
"output",
|
|
209
|
+
],
|
|
210
|
+
"iconUrl": "https://mcp.notion.com/notion-logo-block-main.svg",
|
|
211
|
+
"inputs": [],
|
|
212
|
+
"name": "notion",
|
|
213
|
+
"outputs": [],
|
|
214
|
+
"properties": [
|
|
215
|
+
{
|
|
216
|
+
"default": "https://mcp.notion.com/mcp",
|
|
217
|
+
"displayName": "Endpoint URL",
|
|
218
|
+
"name": "endpointUrl",
|
|
219
|
+
"type": "hidden",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"default": "httpStreamable",
|
|
223
|
+
"displayName": "Server Transport",
|
|
224
|
+
"name": "serverTransport",
|
|
225
|
+
"type": "hidden",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"default": "all",
|
|
229
|
+
"displayName": "Tools to Include",
|
|
230
|
+
"name": "include",
|
|
231
|
+
"options": [],
|
|
232
|
+
"type": "options",
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
"version": 1,
|
|
236
|
+
}
|
|
237
|
+
`);
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
describe('serverToCredentialDescription', () => {
|
|
241
|
+
it('returns a description for servers with OAuth2 auth type', () => {
|
|
242
|
+
const description = (0, node_description_transform_1.serverToCredentialDescription)(mock_servers_1.notionMockServer);
|
|
243
|
+
expect(description).not.toBeNull();
|
|
244
|
+
expect(description).toEqual({
|
|
245
|
+
name: 'notionMcpOAuth2Api',
|
|
246
|
+
displayName: 'Notion MCP OAuth2',
|
|
247
|
+
extends: ['mcpOAuth2Api'],
|
|
248
|
+
icon: 'node:@n8n/mcp-registry.notion',
|
|
249
|
+
properties: [
|
|
250
|
+
{
|
|
251
|
+
displayName: 'Use Dynamic Client Registration',
|
|
252
|
+
name: 'useDynamicClientRegistration',
|
|
253
|
+
type: 'hidden',
|
|
254
|
+
default: true,
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
displayName: 'Server URL',
|
|
258
|
+
name: 'serverUrl',
|
|
259
|
+
type: 'hidden',
|
|
260
|
+
default: 'https://mcp.notion.com/mcp',
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
displayName: 'Allowed HTTP Request Domains',
|
|
264
|
+
name: 'allowedHttpRequestDomains',
|
|
265
|
+
type: 'hidden',
|
|
266
|
+
default: 'none',
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
it('returns null when the auth type is not supported', () => {
|
|
272
|
+
const unsupportedServer = {
|
|
273
|
+
...mock_servers_1.notionMockServer,
|
|
274
|
+
authType: 'foo',
|
|
275
|
+
};
|
|
276
|
+
expect((0, node_description_transform_1.serverToCredentialDescription)(unsupportedServer)).toBeNull();
|
|
277
|
+
});
|
|
278
|
+
it('returns null when no remote is available', () => {
|
|
279
|
+
const noRemoteServer = {
|
|
280
|
+
...mock_servers_1.notionMockServer,
|
|
281
|
+
remotes: [],
|
|
282
|
+
};
|
|
283
|
+
expect((0, node_description_transform_1.serverToCredentialDescription)(noRemoteServer)).toBeNull();
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
//# sourceMappingURL=node-description-transform.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-description-transform.test.js","sourceRoot":"","sources":["../../../src/modules/mcp-registry/node-description-transform.test.ts"],"names":[],"mappings":";;AAAA,+CAAmE;AAEnE,6EAGsC;AAEtC,0DAA2D;AAE3D,MAAM,eAAe,GAAyB;IAC7C,WAAW,EAAE,gCAAgC;IAC7C,IAAI,EAAE,uBAAuB;IAC7B,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,CAAC,QAAQ,CAAC;IACjB,OAAO,EAAE,CAAC;IACV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Q,EAAE,CAAC;IAClE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { McpRegistryServer } from './mcp-registry.types';
|
|
2
|
+
export declare class McpRegistryService {
|
|
3
|
+
private readonly servers;
|
|
4
|
+
getAll({ includeDeprecated }?: {
|
|
5
|
+
includeDeprecated?: boolean;
|
|
6
|
+
}): McpRegistryServer[];
|
|
7
|
+
get(slug: string): McpRegistryServer | undefined;
|
|
8
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.McpRegistryService = void 0;
|
|
10
|
+
const di_1 = require("@n8n/di");
|
|
11
|
+
const mock_servers_1 = require("./mock-servers");
|
|
12
|
+
let McpRegistryService = class McpRegistryService {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.servers = new Map([
|
|
15
|
+
[mock_servers_1.notionMockServer.slug, mock_servers_1.notionMockServer],
|
|
16
|
+
[mock_servers_1.linearMockServer.slug, mock_servers_1.linearMockServer],
|
|
17
|
+
]);
|
|
18
|
+
}
|
|
19
|
+
getAll({ includeDeprecated = false } = {}) {
|
|
20
|
+
const all = Array.from(this.servers.values());
|
|
21
|
+
return includeDeprecated ? all : all.filter((server) => server.status === 'active');
|
|
22
|
+
}
|
|
23
|
+
get(slug) {
|
|
24
|
+
return this.servers.get(slug);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.McpRegistryService = McpRegistryService;
|
|
28
|
+
exports.McpRegistryService = McpRegistryService = __decorate([
|
|
29
|
+
(0, di_1.Service)()
|
|
30
|
+
], McpRegistryService);
|
|
31
|
+
//# sourceMappingURL=mcp-registry.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-registry.service.js","sourceRoot":"","sources":["../../../../src/modules/mcp-registry/registry/mcp-registry.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,gCAAkC;AAGlC,iDAAoE;AAG7D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAAxB;QAEW,YAAO,GAAG,IAAI,GAAG,CAA4B;YAC7D,CAAC,+BAAgB,CAAC,IAAI,EAAE,+BAAgB,CAAC;YACzC,CAAC,+BAAgB,CAAC,IAAI,EAAE,+BAAgB,CAAC;SACzC,CAAC,CAAC;IAUJ,CAAC;IARA,MAAM,CAAC,EAAE,iBAAiB,GAAG,KAAK,KAAsC,EAAE;QACzE,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;QAC9C,OAAO,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC;IACrF,CAAC;IAED,GAAG,CAAC,IAAY;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;CACD,CAAA;AAfY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,YAAO,GAAE;GACG,kBAAkB,CAe9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mcp_registry_service_1 = require("./mcp-registry.service");
|
|
4
|
+
const mock_servers_1 = require("./mock-servers");
|
|
5
|
+
describe('McpRegistryService', () => {
|
|
6
|
+
let service;
|
|
7
|
+
beforeEach(() => {
|
|
8
|
+
service = new mcp_registry_service_1.McpRegistryService();
|
|
9
|
+
});
|
|
10
|
+
function seedDeprecated(slug) {
|
|
11
|
+
const deprecated = { ...mock_servers_1.notionMockServer, slug, status: 'deprecated' };
|
|
12
|
+
service.servers.set(slug, deprecated);
|
|
13
|
+
return deprecated;
|
|
14
|
+
}
|
|
15
|
+
describe('getAll', () => {
|
|
16
|
+
it('returns active servers by default', () => {
|
|
17
|
+
expect(service.getAll()).toEqual([mock_servers_1.notionMockServer, mock_servers_1.linearMockServer]);
|
|
18
|
+
});
|
|
19
|
+
it('omits deprecated servers by default', () => {
|
|
20
|
+
seedDeprecated('old');
|
|
21
|
+
expect(service.getAll()).toEqual([mock_servers_1.notionMockServer, mock_servers_1.linearMockServer]);
|
|
22
|
+
});
|
|
23
|
+
it('returns deprecated servers when includeDeprecated is true', () => {
|
|
24
|
+
const deprecated = seedDeprecated('old');
|
|
25
|
+
expect(service.getAll({ includeDeprecated: true })).toEqual([
|
|
26
|
+
mock_servers_1.notionMockServer,
|
|
27
|
+
mock_servers_1.linearMockServer,
|
|
28
|
+
deprecated,
|
|
29
|
+
]);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
describe('get', () => {
|
|
33
|
+
it('returns the matching server by slug', () => {
|
|
34
|
+
expect(service.get('notion')).toEqual(mock_servers_1.notionMockServer);
|
|
35
|
+
});
|
|
36
|
+
it('returns undefined when the slug is not registered', () => {
|
|
37
|
+
expect(service.get('does-not-exist')).toBeUndefined();
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=mcp-registry.service.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-registry.service.test.js","sourceRoot":"","sources":["../../../../src/modules/mcp-registry/registry/mcp-registry.service.test.ts"],"names":[],"mappings":";;AAAA,iEAA4D;AAE5D,iDAAoE;AAEpE,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACnC,IAAI,OAA2B,CAAC;IAEhC,UAAU,CAAC,GAAG,EAAE;QACf,OAAO,GAAG,IAAI,yCAAkB,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,SAAS,cAAc,CAAC,IAAY;QACnC,MAAM,UAAU,GAAsB,EAAE,GAAG,+BAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;QACzF,OAAkE,CAAC,OAAO,CAAC,GAAG,CAC9E,IAAI,EACJ,UAAU,CACV,CAAC;QACF,OAAO,UAAU,CAAC;IACnB,CAAC;IAED,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;YAC5C,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,+BAAgB,EAAE,+BAAgB,CAAC,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;YAC9C,cAAc,CAAC,KAAK,CAAC,CAAC;YAEtB,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,+BAAgB,EAAE,+BAAgB,CAAC,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2DAA2D,EAAE,GAAG,EAAE;YACpE,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;YAEzC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;gBAC3D,+BAAgB;gBAChB,+BAAgB;gBAChB,UAAU;aACV,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;QACpB,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;YAC9C,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,+BAAgB,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;YAC5D,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC;QACvD,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type McpRegistryServer = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
version: string;
|
|
8
|
+
updatedAt: string;
|
|
9
|
+
icons: McpRegistryIcon[];
|
|
10
|
+
websiteUrl?: string;
|
|
11
|
+
authType: 'oauth2';
|
|
12
|
+
remotes: McpRegistryRemote[];
|
|
13
|
+
tools: McpRegistryTool[];
|
|
14
|
+
isOfficial: boolean;
|
|
15
|
+
origin: 'registry';
|
|
16
|
+
status: 'active' | 'deprecated';
|
|
17
|
+
tags?: string[];
|
|
18
|
+
};
|
|
19
|
+
export type McpRegistryIcon = {
|
|
20
|
+
src: string;
|
|
21
|
+
mimeType?: 'image/png' | 'image/jpeg' | 'image/jpg' | 'image/svg+xml' | 'image/webp';
|
|
22
|
+
theme?: 'light' | 'dark';
|
|
23
|
+
};
|
|
24
|
+
export type McpRegistryRemoteType = 'streamable-http' | 'sse';
|
|
25
|
+
export type McpRegistryRemote = {
|
|
26
|
+
type: McpRegistryRemoteType;
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
export type McpRegistryToolAnnotations = {
|
|
30
|
+
readOnlyHint?: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type McpRegistryTool = {
|
|
33
|
+
name: string;
|
|
34
|
+
title?: string;
|
|
35
|
+
annotations?: McpRegistryToolAnnotations;
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-registry.types.js","sourceRoot":"","sources":["../../../../src/modules/mcp-registry/registry/mcp-registry.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.linearMockServer = exports.notionMockServer = void 0;
|
|
4
|
+
exports.notionMockServer = {
|
|
5
|
+
id: 42,
|
|
6
|
+
name: 'com.notion/mcp',
|
|
7
|
+
slug: 'notion',
|
|
8
|
+
title: 'Notion',
|
|
9
|
+
description: "Notion's official MCP server lets you use your Notion workspace as a system of record for knowledge work and software development. Search questions about the codebase and business, fetch links to pages such as tech specs and PRDs, and track tasks with your team.",
|
|
10
|
+
version: '1.2.0',
|
|
11
|
+
updatedAt: '2026-04-22T10:00:00.000Z',
|
|
12
|
+
icons: [{ src: 'https://mcp.notion.com/notion-logo-block-main.svg', mimeType: 'image/svg+xml' }],
|
|
13
|
+
websiteUrl: 'https://developers.notion.com/docs/mcp',
|
|
14
|
+
authType: 'oauth2',
|
|
15
|
+
remotes: [
|
|
16
|
+
{ type: 'streamable-http', url: 'https://mcp.notion.com/mcp' },
|
|
17
|
+
{ type: 'sse', url: 'https://mcp.notion.com/sse' },
|
|
18
|
+
],
|
|
19
|
+
tools: [
|
|
20
|
+
{
|
|
21
|
+
name: 'notion-search',
|
|
22
|
+
title: 'Search Notion and connected sources',
|
|
23
|
+
annotations: { readOnlyHint: true },
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'notion-fetch',
|
|
27
|
+
title: 'Fetch Notion entities',
|
|
28
|
+
annotations: { readOnlyHint: true },
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'notion-create-pages',
|
|
32
|
+
title: 'Create pages in Markdown',
|
|
33
|
+
annotations: { readOnlyHint: false },
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
isOfficial: true,
|
|
37
|
+
origin: 'registry',
|
|
38
|
+
status: 'active',
|
|
39
|
+
tags: ['productivity', 'docs', 'knowledge-base'],
|
|
40
|
+
};
|
|
41
|
+
exports.linearMockServer = {
|
|
42
|
+
id: 101,
|
|
43
|
+
name: 'app.linear/linear',
|
|
44
|
+
slug: 'linear',
|
|
45
|
+
title: 'Linear',
|
|
46
|
+
description: 'MCP server for Linear project management and issue tracking',
|
|
47
|
+
version: '1.0.0',
|
|
48
|
+
updatedAt: '2026-05-05T10:00:00.000Z',
|
|
49
|
+
icons: [
|
|
50
|
+
{ src: 'https://static.linear.app/integrations/mcp/icon.svg', mimeType: 'image/svg+xml' },
|
|
51
|
+
],
|
|
52
|
+
websiteUrl: 'https://linear.app',
|
|
53
|
+
authType: 'oauth2',
|
|
54
|
+
remotes: [
|
|
55
|
+
{ type: 'sse', url: 'https://mcp.linear.app/sse' },
|
|
56
|
+
{ type: 'streamable-http', url: 'https://mcp.linear.app/mcp' },
|
|
57
|
+
],
|
|
58
|
+
tools: [
|
|
59
|
+
{
|
|
60
|
+
name: 'list_issues',
|
|
61
|
+
title: 'List issues',
|
|
62
|
+
annotations: { readOnlyHint: true },
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'get_issue',
|
|
66
|
+
title: 'Get issue',
|
|
67
|
+
annotations: { readOnlyHint: true },
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'save_issue',
|
|
71
|
+
title: 'Save issue',
|
|
72
|
+
annotations: { readOnlyHint: false },
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
isOfficial: true,
|
|
76
|
+
origin: 'registry',
|
|
77
|
+
status: 'active',
|
|
78
|
+
tags: ['issue-tracking', 'project-management'],
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=mock-servers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-servers.js","sourceRoot":"","sources":["../../../../src/modules/mcp-registry/registry/mock-servers.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IAClD,EAAE,EAAE,EAAE;IACN,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,WAAW,EACV,wQAAwQ;IACzQ,OAAO,EAAE,OAAO;IAChB,SAAS,EAAE,0BAA0B;IACrC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,mDAAmD,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;IAChG,UAAU,EAAE,wCAAwC;IACpD,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE;QACR,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,4BAA4B,EAAE;QAC9D,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,4BAA4B,EAAE;KAClD;IACD,KAAK,EAAE;QACN;YACC,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,qCAAqC;YAC5C,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;SACnC;QACD;YACC,IAAI,EAAE,cAAc;YACpB,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;SACnC;QACD;YACC,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,0BAA0B;YACjC,WAAW,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE;SACpC;KACD;IACD,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,gBAAgB,CAAC;CAChD,CAAC;AAEW,QAAA,gBAAgB,GAAsB;IAClD,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,6DAA6D;IAC1E,OAAO,EAAE,OAAO;IAChB,SAAS,EAAE,0BAA0B;IACrC,KAAK,EAAE;QACN,EAAE,GAAG,EAAE,qDAAqD,EAAE,QAAQ,EAAE,eAAe,EAAE;KACzF;IACD,UAAU,EAAE,oBAAoB;IAChC,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE;QACR,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,4BAA4B,EAAE;QAClD,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,4BAA4B,EAAE;KAC9D;IACD,KAAK,EAAE;QACN;YACC,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;SACnC;QACD;YACC,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;SACnC;QACD;YACC,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE;SACpC;KACD;IACD,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;CAC9C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Logger } from '@n8n/backend-common';
|
|
2
|
-
import type
|
|
2
|
+
import { type StartWorkflowParams, type EndWorkflowParams, type StartNodeParams, type EndNodeParams } from './execution-level-tracer.types';
|
|
3
3
|
import { OtelConfig } from './otel.config';
|
|
4
4
|
import type { TracingContext } from './tracing-context';
|
|
5
5
|
export declare class ExecutionLevelTracer {
|
|
@@ -13,7 +13,7 @@ exports.ExecutionLevelTracer = void 0;
|
|
|
13
13
|
const backend_common_1 = require("@n8n/backend-common");
|
|
14
14
|
const di_1 = require("@n8n/di");
|
|
15
15
|
const api_1 = require("@opentelemetry/api");
|
|
16
|
-
const
|
|
16
|
+
const execution_level_tracer_types_1 = require("./execution-level-tracer.types");
|
|
17
17
|
const otel_config_1 = require("./otel.config");
|
|
18
18
|
const otel_constants_1 = require("./otel.constants");
|
|
19
19
|
const TRACER_NAME = 'n8n-workflow';
|
|
@@ -68,6 +68,10 @@ let ExecutionLevelTracer = class ExecutionLevelTracer {
|
|
|
68
68
|
span.setStatus({ code: isError(params.status) ? api_1.SpanStatusCode.ERROR : api_1.SpanStatusCode.OK });
|
|
69
69
|
if (isError(params.status) && params.error) {
|
|
70
70
|
span.setAttribute(otel_constants_1.ATTR.EXECUTION_ERROR_TYPE, getErrorType(params.error));
|
|
71
|
+
const recordableException = toRecordableException(params.error);
|
|
72
|
+
if (recordableException) {
|
|
73
|
+
span.recordException(recordableException);
|
|
74
|
+
}
|
|
71
75
|
}
|
|
72
76
|
this.endDanglingNodeSpans(params.executionId);
|
|
73
77
|
span.end();
|
|
@@ -125,11 +129,10 @@ let ExecutionLevelTracer = class ExecutionLevelTracer {
|
|
|
125
129
|
activeNodeSpan.setStatus({ code: api_1.SpanStatusCode.OK });
|
|
126
130
|
if (params.error) {
|
|
127
131
|
activeNodeSpan.setStatus({ code: api_1.SpanStatusCode.ERROR });
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
});
|
|
132
|
+
const recordableException = toRecordableException(params.error);
|
|
133
|
+
if (recordableException) {
|
|
134
|
+
activeNodeSpan.recordException(recordableException);
|
|
135
|
+
}
|
|
133
136
|
}
|
|
134
137
|
activeNodeSpan.end();
|
|
135
138
|
executionNodes?.delete(params.node.name);
|
|
@@ -233,9 +236,21 @@ function getErrorType(error) {
|
|
|
233
236
|
const name = record.name;
|
|
234
237
|
if (typeof name === 'string' && name.trim() !== '')
|
|
235
238
|
return name;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
+
if ((0, execution_level_tracer_types_1.isEndNodeError)(error)) {
|
|
240
|
+
return error.constructor.name;
|
|
241
|
+
}
|
|
239
242
|
return 'UnknownError';
|
|
240
243
|
}
|
|
244
|
+
function toRecordableException(error) {
|
|
245
|
+
if (error instanceof Error || typeof error === 'string')
|
|
246
|
+
return error;
|
|
247
|
+
if ((0, execution_level_tracer_types_1.isEndNodeError)(error)) {
|
|
248
|
+
return {
|
|
249
|
+
message: error.message,
|
|
250
|
+
name: error.constructor.name,
|
|
251
|
+
stack: error.stack,
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
return undefined;
|
|
255
|
+
}
|
|
241
256
|
//# sourceMappingURL=execution-level-tracer.js.map
|