snow-flow 1.4.49 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/helpers/github-setup.sh +28 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/{.claude.settings.template → .claude/settings.local.json} +18 -21
- package/.claude-flow/metrics/system-metrics.json +3060 -0
- package/.env.example +64 -0
- package/.roo/README.md +402 -0
- package/.roo/mcp-list.txt +257 -0
- package/.roo/mcp.json +32 -0
- package/.roo/workflows/basic-tdd.json +32 -0
- package/.roomodes +201 -0
- package/README.md +140 -614
- package/dist/cli.js.bak +2052 -0
- package/package.json +2 -2
- package/scripts/create-env.js +6 -1
- package/scripts/reset-mcp-servers.js +246 -0
- package/scripts/update-version.js +31 -0
- package/src/agents/README.md +192 -0
- package/src/agents/base-agent.ts +251 -0
- package/src/agents/coordinator.ts +971 -0
- package/src/agents/index.ts +18 -0
- package/src/agents/queen-403-handler.ts +230 -0
- package/src/agents/queen-agent.ts +1399 -0
- package/src/agents/script-writer-agent.ts +769 -0
- package/src/agents/security-agent.ts +726 -0
- package/src/agents/widget-creator-agent.ts +568 -0
- package/src/api/error-handling.ts +1758 -0
- package/src/api/natural-language-mapper.ts +630 -0
- package/src/api/performance-optimizer.ts +891 -0
- package/src/api/transaction-manager.ts +754 -0
- package/src/cli/deploy-artifact.ts +304 -0
- package/src/cli/snow-flow-cli-integration.ts +434 -0
- package/src/cli.ts +4455 -0
- package/src/cli.ts.bak +5616 -0
- package/src/compliance/advanced-compliance-system.ts +1268 -0
- package/src/compliance/index.ts +19 -0
- package/src/config/snow-flow-config.ts +1019 -0
- package/src/documentation/index.ts +16 -0
- package/src/documentation/self-documenting-system.ts +1421 -0
- package/src/dynamic-version.ts +44 -0
- package/src/healing/index.ts +20 -0
- package/src/healing/self-healing-system.ts +1435 -0
- package/src/health/README.md +161 -0
- package/src/health/system-health.ts +995 -0
- package/src/index.ts +60 -0
- package/src/intelligence/acl-analyzer.ts +377 -0
- package/src/intelligence/auto-resolution-engine.ts +643 -0
- package/src/intelligence/gap-analysis-engine.ts +488 -0
- package/src/intelligence/manual-instructions-generator.ts +744 -0
- package/src/intelligence/mcp-coverage-analyzer.ts +708 -0
- package/src/intelligence/multi-pass-requirements-analyzer.ts +603 -0
- package/src/intelligence/performance-recommendations-engine.ts +1223 -0
- package/src/intelligence/requirements-analyzer.ts +1148 -0
- package/src/intelligence/task-analyzer.ts +628 -0
- package/src/managers/scope-manager.ts +555 -0
- package/src/mcp/advanced/servicenow-advanced-features-mcp.ts +16110 -0
- package/src/mcp/base-mcp-server.ts +660 -0
- package/src/mcp/http-transport-wrapper.ts +426 -0
- package/src/mcp/service-discovery-client.ts +312 -0
- package/src/mcp/servicenow-automation-mcp-refactored.ts +678 -0
- package/src/mcp/servicenow-automation-mcp.ts +838 -0
- package/src/mcp/servicenow-deployment-mcp-refactored.ts +1292 -0
- package/src/mcp/servicenow-deployment-mcp.ts +7244 -0
- package/src/mcp/servicenow-graph-memory-mcp-refactored.ts +721 -0
- package/src/mcp/servicenow-graph-memory-mcp.ts +832 -0
- package/src/mcp/servicenow-integration-mcp-refactored.ts +655 -0
- package/src/mcp/servicenow-integration-mcp.ts +819 -0
- package/src/mcp/servicenow-intelligent-mcp-refactored.ts +977 -0
- package/src/mcp/servicenow-intelligent-mcp.ts +4638 -0
- package/src/mcp/servicenow-mcp-server.ts +728 -0
- package/src/mcp/servicenow-memory-mcp.ts +474 -0
- package/src/mcp/servicenow-operations-mcp-refactored.ts +1995 -0
- package/src/mcp/servicenow-operations-mcp.ts +3384 -0
- package/src/mcp/servicenow-platform-development-mcp-refactored.ts +611 -0
- package/src/mcp/servicenow-platform-development-mcp.ts +970 -0
- package/src/mcp/servicenow-progressive-indexer.ts +370 -0
- package/src/mcp/servicenow-reporting-analytics-mcp-refactored.ts +695 -0
- package/src/mcp/servicenow-reporting-analytics-mcp.ts +1123 -0
- package/src/mcp/servicenow-security-compliance-mcp-refactored.ts +642 -0
- package/src/mcp/servicenow-security-compliance-mcp.ts +1157 -0
- package/src/mcp/servicenow-update-set-mcp-refactored.ts +751 -0
- package/src/mcp/servicenow-update-set-mcp.ts +811 -0
- package/src/mcp/shared/agent-context-provider.ts +365 -0
- package/src/mcp/shared/base-mcp-server.ts +2463 -0
- package/src/mcp/shared/mcp-memory-manager.ts +540 -0
- package/src/mcp/shared/mcp-resource-manager.ts +367 -0
- package/src/mcp/snow-flow-mcp.ts +911 -0
- package/src/mcp/start-all-mcp-servers.ts +102 -0
- package/src/mcp/start-servicenow-mcp.ts +67 -0
- package/src/monitoring/enhanced-monitoring-system.ts +1345 -0
- package/src/monitoring/performance-tracker.ts +777 -0
- package/src/optimization/cost-optimization-engine.ts +1125 -0
- package/src/optimization/index.ts +10 -0
- package/src/queen/README.md +403 -0
- package/src/queen/agent-factory.ts +574 -0
- package/src/queen/index.ts +94 -0
- package/src/queen/mcp-execution-bridge.ts +681 -0
- package/src/queen/neural-learning.ts +319 -0
- package/src/queen/parallel-agent-engine.ts +848 -0
- package/src/queen/queen-memory-system.ts +490 -0
- package/src/queen/queen-memory.ts +456 -0
- package/src/queen/servicenow-queen.ts +1029 -0
- package/src/queen/types.ts +87 -0
- package/src/rollback/smart-rollback-system.ts +866 -0
- package/src/schemas/deployment.schema.json +58 -0
- package/src/schemas/flow.schema.json +79 -0
- package/src/schemas/widget.schema.json +72 -0
- package/src/snow-flow-system.ts +541 -0
- package/src/sparc/sparc-help.ts +49 -0
- package/src/sparc/team-sparc.ts +88 -0
- package/src/strategies/global-scope-strategy.ts +736 -0
- package/src/templates/base/application.template.json +45 -0
- package/src/templates/base/business_rule.template.json +33 -0
- package/src/templates/base/script_include.template.json +18 -0
- package/src/templates/base/table.template.json +64 -0
- package/src/templates/base/widget.template.json +25 -0
- package/src/templates/patterns/composite.incident-management.template.json +140 -0
- package/src/templates/patterns/widget.dashboard.template.json +238 -0
- package/src/templates/patterns/widget.datatable.template.json +292 -0
- package/src/testing/integration-test-suite.ts +1276 -0
- package/src/types/index.ts +183 -0
- package/src/types/neo4j-driver.d.ts +23 -0
- package/src/types/servicenow.types.ts +307 -0
- package/src/types/snow-flow.types.ts +186 -0
- package/src/types/todo.types.ts +70 -0
- package/src/utils/action-type-cache.ts +286 -0
- package/src/utils/agent-detector.ts +573 -0
- package/src/utils/artifact-tracker.ts +379 -0
- package/src/utils/dependency-detector.ts +233 -0
- package/src/utils/deployment-metadata-handler.ts +518 -0
- package/src/utils/error-recovery.ts +680 -0
- package/src/utils/logger.ts +60 -0
- package/src/utils/mcp-auth-middleware.ts +262 -0
- package/src/utils/mcp-config-manager.ts +270 -0
- package/src/utils/mcp-server-manager.ts +446 -0
- package/src/utils/mcp-tool-registry.ts +298 -0
- package/src/utils/migrate-snow-flow.ts +98 -0
- package/src/utils/oauth-html-templates.ts +188 -0
- package/src/utils/scope-utils.ts +443 -0
- package/src/utils/servicenow-client.ts +3321 -0
- package/src/utils/servicenow-id-generator.ts +181 -0
- package/src/utils/snow-memory-manager.ts +605 -0
- package/src/utils/snow-oauth.ts +797 -0
- package/src/utils/template-engine.ts +463 -0
- package/src/utils/theme-manager.ts +295 -0
- package/src/utils/unified-auth-store.ts +222 -0
- package/src/utils/update-set-importer.ts +422 -0
- package/src/utils/update-set-xml-packager.ts +371 -0
- package/src/utils/widget-template-generator.ts +1744 -0
- package/src/version.ts +1950 -0
- package/.claude/commands/memory/README.md +0 -9
- package/.claude.mcp-config.template +0 -149
- package/SIMPLE_TEST_COMMANDS.txt +0 -143
- package/SNOW_FLOW_ADVANCED_FEATURES_PLAIN.txt +0 -78
- package/TEST_COMMANDS_v139.sh +0 -126
- package/claude-flow +0 -81
- package/claude-flow.bat +0 -18
- package/claude-flow.config.json +0 -20
- package/claude-flow.ps1 +0 -24
- package/dist/agents/app-creator.agent.d.ts.map +0 -1
- package/dist/agents/app-creator.agent.js.map +0 -1
- package/dist/agents/base/base-snow-agent.d.ts.map +0 -1
- package/dist/agents/base/base-snow-agent.js.map +0 -1
- package/dist/agents/base-agent.d.ts.map +0 -1
- package/dist/agents/base-agent.js.map +0 -1
- package/dist/agents/base-snow-agent.d.ts.map +0 -1
- package/dist/agents/base-snow-agent.js.map +0 -1
- package/dist/agents/coordinator.d.ts.map +0 -1
- package/dist/agents/coordinator.js.map +0 -1
- package/dist/agents/flow-builder-agent.d.ts.map +0 -1
- package/dist/agents/flow-builder-agent.js.map +0 -1
- package/dist/agents/index.d.ts.map +0 -1
- package/dist/agents/index.js.map +0 -1
- package/dist/agents/queen-403-handler.d.ts.map +0 -1
- package/dist/agents/queen-403-handler.js.map +0 -1
- package/dist/agents/queen-agent-example.d.ts.map +0 -1
- package/dist/agents/queen-agent-example.js.map +0 -1
- package/dist/agents/queen-agent.d.ts.map +0 -1
- package/dist/agents/queen-agent.js.map +0 -1
- package/dist/agents/queen-agent.test.d.ts.map +0 -1
- package/dist/agents/queen-agent.test.js.map +0 -1
- package/dist/agents/script-generator.agent.d.ts.map +0 -1
- package/dist/agents/script-generator.agent.js.map +0 -1
- package/dist/agents/script-writer-agent.d.ts.map +0 -1
- package/dist/agents/script-writer-agent.js.map +0 -1
- package/dist/agents/security-agent.d.ts.map +0 -1
- package/dist/agents/security-agent.js.map +0 -1
- package/dist/agents/specialists/automation-specialist.agent.d.ts.map +0 -1
- package/dist/agents/specialists/automation-specialist.agent.js.map +0 -1
- package/dist/agents/specialists/data-specialist.agent.d.ts.map +0 -1
- package/dist/agents/specialists/data-specialist.agent.js.map +0 -1
- package/dist/agents/specialists/integration-specialist.agent.d.ts.map +0 -1
- package/dist/agents/specialists/integration-specialist.agent.js.map +0 -1
- package/dist/agents/specialists/reporting-specialist.agent.d.ts.map +0 -1
- package/dist/agents/specialists/reporting-specialist.agent.js.map +0 -1
- package/dist/agents/specialists/security-specialist.agent.d.ts.map +0 -1
- package/dist/agents/specialists/security-specialist.agent.js.map +0 -1
- package/dist/agents/teams/adaptive/adaptive-coordinator.agent.d.ts.map +0 -1
- package/dist/agents/teams/adaptive/adaptive-coordinator.agent.js.map +0 -1
- package/dist/agents/teams/base-team.d.ts.map +0 -1
- package/dist/agents/teams/base-team.js.map +0 -1
- package/dist/agents/teams/team-types.d.ts.map +0 -1
- package/dist/agents/teams/team-types.js.map +0 -1
- package/dist/agents/teams/widget/widget-architect.agent.d.ts.map +0 -1
- package/dist/agents/teams/widget/widget-architect.agent.js.map +0 -1
- package/dist/agents/teams/widget/widget-backend.agent.d.ts.map +0 -1
- package/dist/agents/teams/widget/widget-backend.agent.js.map +0 -1
- package/dist/agents/teams/widget/widget-frontend.agent.d.ts.map +0 -1
- package/dist/agents/teams/widget/widget-frontend.agent.js.map +0 -1
- package/dist/agents/teams/widget/widget-platform.agent.d.ts.map +0 -1
- package/dist/agents/teams/widget/widget-platform.agent.js.map +0 -1
- package/dist/agents/teams/widget/widget-uiux.agent.d.ts.map +0 -1
- package/dist/agents/teams/widget/widget-uiux.agent.js.map +0 -1
- package/dist/agents/test-agent.d.ts.map +0 -1
- package/dist/agents/test-agent.js.map +0 -1
- package/dist/agents/test-agents.d.ts.map +0 -1
- package/dist/agents/test-agents.js.map +0 -1
- package/dist/agents/ui-builder.agent.d.ts.map +0 -1
- package/dist/agents/ui-builder.agent.js.map +0 -1
- package/dist/agents/widget-builder.agent.d.ts.map +0 -1
- package/dist/agents/widget-builder.agent.js.map +0 -1
- package/dist/agents/widget-creator-agent.d.ts.map +0 -1
- package/dist/agents/widget-creator-agent.js.map +0 -1
- package/dist/agents/workflow-designer.agent.d.ts.map +0 -1
- package/dist/agents/workflow-designer.agent.js.map +0 -1
- package/dist/api/error-handling.d.ts.map +0 -1
- package/dist/api/error-handling.js.map +0 -1
- package/dist/api/flow-designer-api.d.ts.map +0 -1
- package/dist/api/flow-designer-api.js.map +0 -1
- package/dist/api/natural-language-mapper.d.ts.map +0 -1
- package/dist/api/natural-language-mapper.js.map +0 -1
- package/dist/api/performance-optimizer.d.ts.map +0 -1
- package/dist/api/performance-optimizer.js.map +0 -1
- package/dist/api/transaction-manager.d.ts.map +0 -1
- package/dist/api/transaction-manager.js.map +0 -1
- package/dist/assembly/team-assembler.d.ts.map +0 -1
- package/dist/assembly/team-assembler.js.map +0 -1
- package/dist/cli/deploy-artifact.d.ts.map +0 -1
- package/dist/cli/deploy-artifact.js.map +0 -1
- package/dist/cli/snow-flow-cli-integration.d.ts.map +0 -1
- package/dist/cli/snow-flow-cli-integration.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/compliance/advanced-compliance-system.d.ts.map +0 -1
- package/dist/compliance/advanced-compliance-system.js.map +0 -1
- package/dist/compliance/index.d.ts.map +0 -1
- package/dist/compliance/index.js.map +0 -1
- package/dist/config/snow-flow-config.d.ts.map +0 -1
- package/dist/config/snow-flow-config.js.map +0 -1
- package/dist/documentation/index.d.ts.map +0 -1
- package/dist/documentation/index.js.map +0 -1
- package/dist/documentation/self-documenting-system.d.ts.map +0 -1
- package/dist/documentation/self-documenting-system.js.map +0 -1
- package/dist/dynamic-version.d.ts.map +0 -1
- package/dist/dynamic-version.js.map +0 -1
- package/dist/healing/index.d.ts.map +0 -1
- package/dist/healing/index.js.map +0 -1
- package/dist/healing/self-healing-system.d.ts.map +0 -1
- package/dist/healing/self-healing-system.js.map +0 -1
- package/dist/health/system-health.d.ts.map +0 -1
- package/dist/health/system-health.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/intelligence/acl-analyzer.d.ts.map +0 -1
- package/dist/intelligence/acl-analyzer.js.map +0 -1
- package/dist/intelligence/auto-resolution-engine.d.ts.map +0 -1
- package/dist/intelligence/auto-resolution-engine.js.map +0 -1
- package/dist/intelligence/gap-analysis-engine.d.ts.map +0 -1
- package/dist/intelligence/gap-analysis-engine.js.map +0 -1
- package/dist/intelligence/manual-instructions-generator.d.ts.map +0 -1
- package/dist/intelligence/manual-instructions-generator.js.map +0 -1
- package/dist/intelligence/mcp-coverage-analyzer.d.ts.map +0 -1
- package/dist/intelligence/mcp-coverage-analyzer.js.map +0 -1
- package/dist/intelligence/multi-pass-requirements-analyzer.d.ts.map +0 -1
- package/dist/intelligence/multi-pass-requirements-analyzer.js.map +0 -1
- package/dist/intelligence/performance-recommendations-engine.d.ts.map +0 -1
- package/dist/intelligence/performance-recommendations-engine.js.map +0 -1
- package/dist/intelligence/requirements-analyzer.d.ts.map +0 -1
- package/dist/intelligence/requirements-analyzer.js.map +0 -1
- package/dist/intelligence/task-analyzer.d.ts.map +0 -1
- package/dist/intelligence/task-analyzer.js.map +0 -1
- package/dist/managers/scope-manager.d.ts.map +0 -1
- package/dist/managers/scope-manager.js.map +0 -1
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.d.ts.map +0 -1
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.js.map +0 -1
- package/dist/mcp/base-mcp-server.d.ts.map +0 -1
- package/dist/mcp/base-mcp-server.js.map +0 -1
- package/dist/mcp/example-refactored-server.d.ts.map +0 -1
- package/dist/mcp/example-refactored-server.js.map +0 -1
- package/dist/mcp/http-transport-wrapper.d.ts.map +0 -1
- package/dist/mcp/http-transport-wrapper.js.map +0 -1
- package/dist/mcp/mcp-wrapper.d.ts.map +0 -1
- package/dist/mcp/mcp-wrapper.js.map +0 -1
- package/dist/mcp/service-discovery-client.d.ts.map +0 -1
- package/dist/mcp/service-discovery-client.js.map +0 -1
- package/dist/mcp/servicenow-automation-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-automation-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-automation-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-automation-mcp.js.map +0 -1
- package/dist/mcp/servicenow-deployment-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-deployment-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-deployment-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-deployment-mcp.js.map +0 -1
- package/dist/mcp/servicenow-flow-composer-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-flow-composer-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-flow-composer-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-flow-composer-mcp.js.map +0 -1
- package/dist/mcp/servicenow-graph-memory-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-graph-memory-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-graph-memory-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-graph-memory-mcp.js.map +0 -1
- package/dist/mcp/servicenow-integration-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-integration-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-integration-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-integration-mcp.js.map +0 -1
- package/dist/mcp/servicenow-intelligent-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-intelligent-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-intelligent-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-intelligent-mcp.js.map +0 -1
- package/dist/mcp/servicenow-mcp-server.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-server.js.map +0 -1
- package/dist/mcp/servicenow-memory-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-memory-mcp.js.map +0 -1
- package/dist/mcp/servicenow-operations-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-operations-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-operations-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-operations-mcp.js.map +0 -1
- package/dist/mcp/servicenow-platform-development-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-platform-development-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-platform-development-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-platform-development-mcp.js.map +0 -1
- package/dist/mcp/servicenow-progressive-indexer.d.ts.map +0 -1
- package/dist/mcp/servicenow-progressive-indexer.js.map +0 -1
- package/dist/mcp/servicenow-reporting-analytics-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-reporting-analytics-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-reporting-analytics-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-reporting-analytics-mcp.js.map +0 -1
- package/dist/mcp/servicenow-security-compliance-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-security-compliance-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-security-compliance-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-security-compliance-mcp.js.map +0 -1
- package/dist/mcp/servicenow-update-set-mcp-refactored.d.ts.map +0 -1
- package/dist/mcp/servicenow-update-set-mcp-refactored.js.map +0 -1
- package/dist/mcp/servicenow-update-set-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-update-set-mcp.js.map +0 -1
- package/dist/mcp/servicenow-xml-flow-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-xml-flow-mcp.js.map +0 -1
- package/dist/mcp/shared/agent-context-provider.d.ts.map +0 -1
- package/dist/mcp/shared/agent-context-provider.js.map +0 -1
- package/dist/mcp/shared/base-mcp-server.d.ts.map +0 -1
- package/dist/mcp/shared/base-mcp-server.js.map +0 -1
- package/dist/mcp/shared/mcp-memory-manager.d.ts.map +0 -1
- package/dist/mcp/shared/mcp-memory-manager.js.map +0 -1
- package/dist/mcp/shared/mcp-resource-manager.d.ts.map +0 -1
- package/dist/mcp/shared/mcp-resource-manager.js.map +0 -1
- package/dist/mcp/snow-flow-mcp.d.ts.map +0 -1
- package/dist/mcp/snow-flow-mcp.js.map +0 -1
- package/dist/mcp/start-all-mcp-servers.d.ts.map +0 -1
- package/dist/mcp/start-all-mcp-servers.js.map +0 -1
- package/dist/mcp/start-servicenow-mcp.d.ts.map +0 -1
- package/dist/mcp/start-servicenow-mcp.js.map +0 -1
- package/dist/mcp/test-simple-mcp.d.ts.map +0 -1
- package/dist/mcp/test-simple-mcp.js.map +0 -1
- package/dist/memory/hierarchical-memory-system.d.ts +0 -90
- package/dist/memory/hierarchical-memory-system.d.ts.map +0 -1
- package/dist/memory/hierarchical-memory-system.js +0 -400
- package/dist/memory/hierarchical-memory-system.js.map +0 -1
- package/dist/memory/index.d.ts +0 -9
- package/dist/memory/index.d.ts.map +0 -1
- package/dist/memory/index.js +0 -20
- package/dist/memory/index.js.map +0 -1
- package/dist/memory/mcp-integration-example.d.ts +0 -6
- package/dist/memory/mcp-integration-example.d.ts.map +0 -1
- package/dist/memory/mcp-integration-example.js +0 -281
- package/dist/memory/mcp-integration-example.js.map +0 -1
- package/dist/memory/memory-client.d.ts +0 -199
- package/dist/memory/memory-client.d.ts.map +0 -1
- package/dist/memory/memory-client.js +0 -364
- package/dist/memory/memory-client.js.map +0 -1
- package/dist/memory/memory-manager.d.ts +0 -29
- package/dist/memory/memory-manager.d.ts.map +0 -1
- package/dist/memory/memory-manager.js +0 -280
- package/dist/memory/memory-manager.js.map +0 -1
- package/dist/memory/memory-operations.d.ts +0 -179
- package/dist/memory/memory-operations.d.ts.map +0 -1
- package/dist/memory/memory-operations.js +0 -691
- package/dist/memory/memory-operations.js.map +0 -1
- package/dist/memory/memory-system.d.ts +0 -152
- package/dist/memory/memory-system.d.ts.map +0 -1
- package/dist/memory/memory-system.js +0 -632
- package/dist/memory/memory-system.js.map +0 -1
- package/dist/memory/memory-test.d.ts +0 -6
- package/dist/memory/memory-test.d.ts.map +0 -1
- package/dist/memory/memory-test.js +0 -161
- package/dist/memory/memory-test.js.map +0 -1
- package/dist/memory/servicenow-artifact-indexer.d.ts +0 -119
- package/dist/memory/servicenow-artifact-indexer.d.ts.map +0 -1
- package/dist/memory/servicenow-artifact-indexer.js +0 -560
- package/dist/memory/servicenow-artifact-indexer.js.map +0 -1
- package/dist/memory/snow-flow-memory-patterns.d.ts +0 -213
- package/dist/memory/snow-flow-memory-patterns.d.ts.map +0 -1
- package/dist/memory/snow-flow-memory-patterns.js +0 -200
- package/dist/memory/snow-flow-memory-patterns.js.map +0 -1
- package/dist/memory/snow-memory.d.ts +0 -54
- package/dist/memory/snow-memory.d.ts.map +0 -1
- package/dist/memory/snow-memory.js +0 -301
- package/dist/memory/snow-memory.js.map +0 -1
- package/dist/memory/swarm-memory.d.ts +0 -135
- package/dist/memory/swarm-memory.d.ts.map +0 -1
- package/dist/memory/swarm-memory.js +0 -378
- package/dist/memory/swarm-memory.js.map +0 -1
- package/dist/monitoring/enhanced-monitoring-system.d.ts.map +0 -1
- package/dist/monitoring/enhanced-monitoring-system.js.map +0 -1
- package/dist/monitoring/performance-tracker.d.ts.map +0 -1
- package/dist/monitoring/performance-tracker.js.map +0 -1
- package/dist/optimization/cost-optimization-engine.d.ts.map +0 -1
- package/dist/optimization/cost-optimization-engine.js.map +0 -1
- package/dist/optimization/index.d.ts.map +0 -1
- package/dist/optimization/index.js.map +0 -1
- package/dist/orchestration/discovery/service-discovery.d.ts.map +0 -1
- package/dist/orchestration/discovery/service-discovery.js.map +0 -1
- package/dist/orchestration/distributed-orchestrator.d.ts.map +0 -1
- package/dist/orchestration/distributed-orchestrator.js.map +0 -1
- package/dist/orchestration/distribution/task-distribution-engine.d.ts.map +0 -1
- package/dist/orchestration/distribution/task-distribution-engine.js.map +0 -1
- package/dist/orchestration/interfaces/distributed-orchestration.interface.d.ts.map +0 -1
- package/dist/orchestration/interfaces/distributed-orchestration.interface.js.map +0 -1
- package/dist/orchestration/protocols/mcpx-protocol.d.ts.map +0 -1
- package/dist/orchestration/protocols/mcpx-protocol.js.map +0 -1
- package/dist/orchestration/state/distributed-state-manager.d.ts.map +0 -1
- package/dist/orchestration/state/distributed-state-manager.js.map +0 -1
- package/dist/orchestrator/flow-composer.d.ts.map +0 -1
- package/dist/orchestrator/flow-composer.js.map +0 -1
- package/dist/orchestrator/flow-pattern-templates.d.ts.map +0 -1
- package/dist/orchestrator/flow-pattern-templates.js.map +0 -1
- package/dist/orchestrator/flow-subflow-decision-engine.d.ts.map +0 -1
- package/dist/orchestrator/flow-subflow-decision-engine.js.map +0 -1
- package/dist/orchestrator/flow-validation-engine.d.ts.map +0 -1
- package/dist/orchestrator/flow-validation-engine.js.map +0 -1
- package/dist/orchestrator/snow-orchestrator.d.ts.map +0 -1
- package/dist/orchestrator/snow-orchestrator.js.map +0 -1
- package/dist/orchestrator/subflow-creation-handler.d.ts.map +0 -1
- package/dist/orchestrator/subflow-creation-handler.js.map +0 -1
- package/dist/patterns/adaptive-patterns.d.ts.map +0 -1
- package/dist/patterns/adaptive-patterns.js.map +0 -1
- package/dist/queen/advanced-integration-test.d.ts.map +0 -1
- package/dist/queen/advanced-integration-test.js.map +0 -1
- package/dist/queen/agent-factory.d.ts.map +0 -1
- package/dist/queen/agent-factory.js.map +0 -1
- package/dist/queen/index.d.ts.map +0 -1
- package/dist/queen/index.js.map +0 -1
- package/dist/queen/integration-example.d.ts.map +0 -1
- package/dist/queen/integration-example.js.map +0 -1
- package/dist/queen/integration-test.d.ts.map +0 -1
- package/dist/queen/integration-test.js.map +0 -1
- package/dist/queen/mcp-execution-bridge.d.ts.map +0 -1
- package/dist/queen/mcp-execution-bridge.js.map +0 -1
- package/dist/queen/mock-mcp-client.d.ts.map +0 -1
- package/dist/queen/mock-mcp-client.js.map +0 -1
- package/dist/queen/neural-learning.d.ts.map +0 -1
- package/dist/queen/neural-learning.js.map +0 -1
- package/dist/queen/parallel-agent-engine.d.ts.map +0 -1
- package/dist/queen/parallel-agent-engine.js.map +0 -1
- package/dist/queen/queen-memory-system.d.ts.map +0 -1
- package/dist/queen/queen-memory-system.js.map +0 -1
- package/dist/queen/queen-memory.d.ts.map +0 -1
- package/dist/queen/queen-memory.js.map +0 -1
- package/dist/queen/run-integration-tests.d.ts.map +0 -1
- package/dist/queen/run-integration-tests.js.map +0 -1
- package/dist/queen/servicenow-queen.d.ts.map +0 -1
- package/dist/queen/servicenow-queen.js.map +0 -1
- package/dist/queen/types.d.ts.map +0 -1
- package/dist/queen/types.js.map +0 -1
- package/dist/rollback/smart-rollback-system.d.ts.map +0 -1
- package/dist/rollback/smart-rollback-system.js.map +0 -1
- package/dist/snow-flow-system.d.ts.map +0 -1
- package/dist/snow-flow-system.js.map +0 -1
- package/dist/sparc/coordinators/adaptive-coordinator.d.ts.map +0 -1
- package/dist/sparc/coordinators/adaptive-coordinator.js.map +0 -1
- package/dist/sparc/coordinators/team-coordinator.d.ts.map +0 -1
- package/dist/sparc/coordinators/team-coordinator.js.map +0 -1
- package/dist/sparc/modes/team-modes.d.ts.map +0 -1
- package/dist/sparc/modes/team-modes.js.map +0 -1
- package/dist/sparc/sparc-help.d.ts.map +0 -1
- package/dist/sparc/sparc-help.js.map +0 -1
- package/dist/sparc/team-sparc.d.ts.map +0 -1
- package/dist/sparc/team-sparc.js.map +0 -1
- package/dist/sparc/teams/application-team.d.ts.map +0 -1
- package/dist/sparc/teams/application-team.js.map +0 -1
- package/dist/sparc/teams/flow-team.d.ts.map +0 -1
- package/dist/sparc/teams/flow-team.js.map +0 -1
- package/dist/sparc/teams/widget-team.d.ts.map +0 -1
- package/dist/sparc/teams/widget-team.js.map +0 -1
- package/dist/specialists/app-specialists.d.ts.map +0 -1
- package/dist/specialists/app-specialists.js.map +0 -1
- package/dist/specialists/base-specialist.d.ts.map +0 -1
- package/dist/specialists/base-specialist.js.map +0 -1
- package/dist/specialists/flow-specialists.d.ts.map +0 -1
- package/dist/specialists/flow-specialists.js.map +0 -1
- package/dist/specialists/individual-specialists.d.ts.map +0 -1
- package/dist/specialists/individual-specialists.js.map +0 -1
- package/dist/specialists/widget-specialists.d.ts.map +0 -1
- package/dist/specialists/widget-specialists.js.map +0 -1
- package/dist/strategies/global-scope-strategy.d.ts.map +0 -1
- package/dist/strategies/global-scope-strategy.js.map +0 -1
- package/dist/teams/adaptive-team.d.ts.map +0 -1
- package/dist/teams/adaptive-team.js.map +0 -1
- package/dist/teams/application-team.d.ts.map +0 -1
- package/dist/teams/application-team.js.map +0 -1
- package/dist/teams/base-team.d.ts.map +0 -1
- package/dist/teams/base-team.js.map +0 -1
- package/dist/teams/flow-team.d.ts.map +0 -1
- package/dist/teams/flow-team.js.map +0 -1
- package/dist/teams/widget-team.d.ts.map +0 -1
- package/dist/teams/widget-team.js.map +0 -1
- package/dist/testing/integration-test-suite.d.ts.map +0 -1
- package/dist/testing/integration-test-suite.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/servicenow.types.d.ts.map +0 -1
- package/dist/types/servicenow.types.js.map +0 -1
- package/dist/types/snow-flow.types.d.ts.map +0 -1
- package/dist/types/snow-flow.types.js.map +0 -1
- package/dist/types/todo.types.d.ts.map +0 -1
- package/dist/types/todo.types.js.map +0 -1
- package/dist/utils/action-type-cache.d.ts.map +0 -1
- package/dist/utils/action-type-cache.js.map +0 -1
- package/dist/utils/agent-detector.d.ts.map +0 -1
- package/dist/utils/agent-detector.js.map +0 -1
- package/dist/utils/artifact-tracker.d.ts.map +0 -1
- package/dist/utils/artifact-tracker.js.map +0 -1
- package/dist/utils/dependency-detector.d.ts.map +0 -1
- package/dist/utils/dependency-detector.js.map +0 -1
- package/dist/utils/deployment-metadata-handler.d.ts.map +0 -1
- package/dist/utils/deployment-metadata-handler.js.map +0 -1
- package/dist/utils/error-recovery.d.ts.map +0 -1
- package/dist/utils/error-recovery.js.map +0 -1
- package/dist/utils/flow-api-discovery.d.ts.map +0 -1
- package/dist/utils/flow-api-discovery.js.map +0 -1
- package/dist/utils/flow-xml-generator.d.ts.map +0 -1
- package/dist/utils/flow-xml-generator.js.map +0 -1
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/mcp-auth-middleware.d.ts.map +0 -1
- package/dist/utils/mcp-auth-middleware.js.map +0 -1
- package/dist/utils/mcp-config-manager.d.ts.map +0 -1
- package/dist/utils/mcp-config-manager.js.map +0 -1
- package/dist/utils/mcp-server-manager.d.ts.map +0 -1
- package/dist/utils/mcp-server-manager.js.map +0 -1
- package/dist/utils/mcp-tool-registry.d.ts.map +0 -1
- package/dist/utils/mcp-tool-registry.js.map +0 -1
- package/dist/utils/migrate-claude-flow.d.ts.map +0 -1
- package/dist/utils/migrate-claude-flow.js.map +0 -1
- package/dist/utils/migrate-snow-flow.d.ts.map +0 -1
- package/dist/utils/migrate-snow-flow.js.map +0 -1
- package/dist/utils/oauth-html-templates.d.ts.map +0 -1
- package/dist/utils/oauth-html-templates.js.map +0 -1
- package/dist/utils/scope-utils.d.ts.map +0 -1
- package/dist/utils/scope-utils.js.map +0 -1
- package/dist/utils/servicenow-client.d.ts.map +0 -1
- package/dist/utils/servicenow-client.js.map +0 -1
- package/dist/utils/servicenow-id-generator.d.ts.map +0 -1
- package/dist/utils/servicenow-id-generator.js.map +0 -1
- package/dist/utils/snow-memory-manager.d.ts.map +0 -1
- package/dist/utils/snow-memory-manager.js.map +0 -1
- package/dist/utils/snow-oauth-old.d.ts.map +0 -1
- package/dist/utils/snow-oauth-old.js.map +0 -1
- package/dist/utils/snow-oauth.d.ts.map +0 -1
- package/dist/utils/snow-oauth.js.map +0 -1
- package/dist/utils/template-engine.d.ts.map +0 -1
- package/dist/utils/template-engine.js.map +0 -1
- package/dist/utils/theme-manager.d.ts.map +0 -1
- package/dist/utils/theme-manager.js.map +0 -1
- package/dist/utils/unified-auth-store.d.ts.map +0 -1
- package/dist/utils/unified-auth-store.js.map +0 -1
- package/dist/utils/update-set-importer.d.ts.map +0 -1
- package/dist/utils/update-set-importer.js.map +0 -1
- package/dist/utils/update-set-xml-packager.d.ts.map +0 -1
- package/dist/utils/update-set-xml-packager.js.map +0 -1
- package/dist/utils/widget-template-generator.d.ts.map +0 -1
- package/dist/utils/widget-template-generator.js.map +0 -1
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js.map +0 -1
- package/memory/agents/README.md +0 -31
- package/memory/claude-flow-data.json +0 -5
- package/memory/servicenow_artifacts/000d9224c895221055906c7518aa2d3d.json +0 -30
- package/memory/servicenow_artifacts/0196b66173303010e46b4a2214f6a7a2.json +0 -36
- package/memory/servicenow_artifacts/125e5d1d837e2a102a7ea130ceaad397.json +0 -30
- package/memory/servicenow_artifacts/7637c1f2b7112210a5e5911cde11a972.json +0 -30
- package/memory/servicenow_artifacts/default_documentation_tables_1754056582292.json +0 -55
- package/memory/servicenow_artifacts/default_documentation_tables_1754057477189.json +0 -55
- package/memory/sessions/README.md +0 -32
- package/memory/update-set-sessions/01f82af583faea102a7ea130ceaad3d4.json +0 -9
- package/memory/update-set-sessions/27718fb983faea102a7ea130ceaad34b.json +0 -9
- package/memory/update-set-sessions/412e9bf6833e22502a7ea130ceaad30a.json +0 -8
- package/memory/update-set-sessions/66fc5a79837aea102a7ea130ceaad3ab.json +0 -9
- package/memory/update-set-sessions/71a30ff5837eea102a7ea130ceaad37f.json +0 -9
- package/memory/update-set-sessions/74fba27983faea102a7ea130ceaad3bd.json +0 -9
- package/memory/update-set-sessions/a0b147b5837eea102a7ea130ceaad344.json +0 -58
- package/memory/update-set-sessions/b13f5eb983baea102a7ea130ceaad33e.json +0 -9
|
@@ -0,0 +1,655 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* servicenow-integration MCP Server - REFACTORED
|
|
4
|
+
* Uses BaseMCPServer to eliminate code duplication
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { BaseMCPServer, ToolResult } from './base-mcp-server.js';
|
|
8
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
9
|
+
|
|
10
|
+
export class ServiceNowIntegrationMCP extends BaseMCPServer {
|
|
11
|
+
constructor() {
|
|
12
|
+
super({
|
|
13
|
+
name: 'servicenow-integration',
|
|
14
|
+
version: '2.0.0',
|
|
15
|
+
description: 'Handles external system integration and data transformation'
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
protected setupTools(): void {
|
|
20
|
+
// Tools are defined in getTools() method
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
protected getTools(): Tool[] {
|
|
24
|
+
return [
|
|
25
|
+
{
|
|
26
|
+
name: 'snow_create_rest_message',
|
|
27
|
+
description: 'Create REST Message endpoints with dynamic discovery - NO hardcoded values',
|
|
28
|
+
inputSchema: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
properties: {
|
|
31
|
+
name: { type: 'string', description: 'REST Message name' },
|
|
32
|
+
endpoint: { type: 'string', description: 'REST endpoint URL' },
|
|
33
|
+
description: { type: 'string', description: 'Description of the service' },
|
|
34
|
+
authType: { type: 'string', description: 'Authentication type' },
|
|
35
|
+
authProfile: { type: 'string', description: 'Authentication profile' }
|
|
36
|
+
},
|
|
37
|
+
required: ['name', 'endpoint']
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'snow_create_rest_method',
|
|
42
|
+
description: 'Create REST Method with dynamic parameter discovery',
|
|
43
|
+
inputSchema: {
|
|
44
|
+
type: 'object',
|
|
45
|
+
properties: {
|
|
46
|
+
restMessageName: { type: 'string', description: 'Parent REST Message name' },
|
|
47
|
+
methodName: { type: 'string', description: 'HTTP method name' },
|
|
48
|
+
httpMethod: { type: 'string', description: 'HTTP method (GET, POST, PUT, DELETE)' },
|
|
49
|
+
endpoint: { type: 'string', description: 'Method endpoint path' },
|
|
50
|
+
content: { type: 'string', description: 'Request body content' },
|
|
51
|
+
headers: { type: 'object', description: 'HTTP headers' }
|
|
52
|
+
},
|
|
53
|
+
required: ['restMessageName', 'methodName', 'httpMethod']
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'snow_create_transform_map',
|
|
58
|
+
description: 'Create Transform Map with dynamic field discovery',
|
|
59
|
+
inputSchema: {
|
|
60
|
+
type: 'object',
|
|
61
|
+
properties: {
|
|
62
|
+
name: { type: 'string', description: 'Transform Map name' },
|
|
63
|
+
sourceTable: { type: 'string', description: 'Source table name' },
|
|
64
|
+
targetTable: { type: 'string', description: 'Target table name' },
|
|
65
|
+
description: { type: 'string', description: 'Transform description' },
|
|
66
|
+
runOrder: { type: 'number', description: 'Execution order' },
|
|
67
|
+
active: { type: 'boolean', description: 'Active flag' }
|
|
68
|
+
},
|
|
69
|
+
required: ['name', 'sourceTable', 'targetTable']
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'snow_create_field_map',
|
|
74
|
+
description: 'Create Field Map with dynamic field discovery',
|
|
75
|
+
inputSchema: {
|
|
76
|
+
type: 'object',
|
|
77
|
+
properties: {
|
|
78
|
+
transformMapName: { type: 'string', description: 'Parent Transform Map name' },
|
|
79
|
+
sourceField: { type: 'string', description: 'Source field name' },
|
|
80
|
+
targetField: { type: 'string', description: 'Target field name' },
|
|
81
|
+
transform: { type: 'string', description: 'Transform script' },
|
|
82
|
+
coalesce: { type: 'boolean', description: 'Coalesce field' },
|
|
83
|
+
defaultValue: { type: 'string', description: 'Default value' }
|
|
84
|
+
},
|
|
85
|
+
required: ['transformMapName', 'sourceField', 'targetField']
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'snow_create_import_set',
|
|
90
|
+
description: 'Create Import Set table with dynamic schema discovery',
|
|
91
|
+
inputSchema: {
|
|
92
|
+
type: 'object',
|
|
93
|
+
properties: {
|
|
94
|
+
name: { type: 'string', description: 'Import Set table name' },
|
|
95
|
+
label: { type: 'string', description: 'Import Set label' },
|
|
96
|
+
description: { type: 'string', description: 'Import Set description' },
|
|
97
|
+
fileFormat: { type: 'string', description: 'File format (CSV, XML, JSON, Excel)' }
|
|
98
|
+
},
|
|
99
|
+
required: ['name', 'label']
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'snow_create_web_service',
|
|
104
|
+
description: 'Create Web Service with dynamic WSDL discovery',
|
|
105
|
+
inputSchema: {
|
|
106
|
+
type: 'object',
|
|
107
|
+
properties: {
|
|
108
|
+
name: { type: 'string', description: 'Web Service name' },
|
|
109
|
+
wsdlUrl: { type: 'string', description: 'WSDL URL' },
|
|
110
|
+
description: { type: 'string', description: 'Web Service description' },
|
|
111
|
+
authType: { type: 'string', description: 'Authentication type' },
|
|
112
|
+
namespace: { type: 'string', description: 'Service namespace' }
|
|
113
|
+
},
|
|
114
|
+
required: ['name', 'wsdlUrl']
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'snow_create_email_config',
|
|
119
|
+
description: 'Create Email Configuration with dynamic server discovery',
|
|
120
|
+
inputSchema: {
|
|
121
|
+
type: 'object',
|
|
122
|
+
properties: {
|
|
123
|
+
name: { type: 'string', description: 'Email configuration name' },
|
|
124
|
+
serverType: { type: 'string', description: 'Server type (SMTP, POP3, IMAP)' },
|
|
125
|
+
serverName: { type: 'string', description: 'Email server hostname' },
|
|
126
|
+
port: { type: 'number', description: 'Server port' },
|
|
127
|
+
encryption: { type: 'string', description: 'Encryption type (SSL, TLS, None)' },
|
|
128
|
+
username: { type: 'string', description: 'Username' },
|
|
129
|
+
description: { type: 'string', description: 'Configuration description' }
|
|
130
|
+
},
|
|
131
|
+
required: ['name', 'serverType', 'serverName']
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'snow_discover_integration_endpoints',
|
|
136
|
+
description: 'Discover all existing integration endpoints dynamically',
|
|
137
|
+
inputSchema: {
|
|
138
|
+
type: 'object',
|
|
139
|
+
properties: {
|
|
140
|
+
type: { type: 'string', description: 'Filter by type: REST, SOAP, LDAP, EMAIL, all' }
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'snow_test_integration',
|
|
146
|
+
description: 'Test integration endpoint with dynamic validation',
|
|
147
|
+
inputSchema: {
|
|
148
|
+
type: 'object',
|
|
149
|
+
properties: {
|
|
150
|
+
endpointName: { type: 'string', description: 'Integration endpoint name' },
|
|
151
|
+
testData: { type: 'object', description: 'Test data payload' }
|
|
152
|
+
},
|
|
153
|
+
required: ['endpointName']
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'snow_discover_data_sources',
|
|
158
|
+
description: 'Discover available data sources dynamically',
|
|
159
|
+
inputSchema: {
|
|
160
|
+
type: 'object',
|
|
161
|
+
properties: {
|
|
162
|
+
sourceType: { type: 'string', description: 'Filter by source type' }
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
protected async executeTool(name: string, args: any): Promise<ToolResult> {
|
|
170
|
+
const startTime = Date.now();
|
|
171
|
+
|
|
172
|
+
switch (name) {
|
|
173
|
+
case 'snow_create_rest_message':
|
|
174
|
+
return await this.handleSnowCreateRestMessage(args);
|
|
175
|
+
case 'snow_create_rest_method':
|
|
176
|
+
return await this.handleSnowCreateRestMethod(args);
|
|
177
|
+
case 'snow_create_transform_map':
|
|
178
|
+
return await this.handleSnowCreateTransformMap(args);
|
|
179
|
+
case 'snow_create_field_map':
|
|
180
|
+
return await this.handleSnowCreateFieldMap(args);
|
|
181
|
+
case 'snow_create_import_set':
|
|
182
|
+
return await this.handleSnowCreateImportSet(args);
|
|
183
|
+
case 'snow_create_web_service':
|
|
184
|
+
return await this.handleSnowCreateWebService(args);
|
|
185
|
+
case 'snow_create_email_config':
|
|
186
|
+
return await this.handleSnowCreateEmailConfig(args);
|
|
187
|
+
case 'snow_discover_integration_endpoints':
|
|
188
|
+
return await this.handleSnowDiscoverIntegrationEndpoints(args);
|
|
189
|
+
case 'snow_test_integration':
|
|
190
|
+
return await this.handleSnowTestIntegration(args);
|
|
191
|
+
case 'snow_discover_data_sources':
|
|
192
|
+
return await this.handleSnowDiscoverDataSources(args);
|
|
193
|
+
default:
|
|
194
|
+
return {
|
|
195
|
+
success: false,
|
|
196
|
+
error: `Unknown tool: ${name}`
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// Tool handlers
|
|
202
|
+
private async handleSnowCreateRestMessage(args: any): Promise<ToolResult> {
|
|
203
|
+
const startTime = Date.now();
|
|
204
|
+
try {
|
|
205
|
+
const messageData = {
|
|
206
|
+
name: args.name,
|
|
207
|
+
rest_endpoint: args.endpoint,
|
|
208
|
+
description: args.description || '',
|
|
209
|
+
authentication_type: args.authType || 'no_authentication',
|
|
210
|
+
authentication_profile: args.authProfile,
|
|
211
|
+
active: true
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
const result = await this.client.createRecord('sys_rest_message', messageData);
|
|
215
|
+
|
|
216
|
+
return {
|
|
217
|
+
success: result.success,
|
|
218
|
+
result: result.result,
|
|
219
|
+
error: result.success ? undefined : 'Failed to create REST message',
|
|
220
|
+
executionTime: Date.now() - startTime
|
|
221
|
+
};
|
|
222
|
+
} catch (error) {
|
|
223
|
+
return {
|
|
224
|
+
success: false,
|
|
225
|
+
error: error instanceof Error ? error.message : 'Failed to create REST message',
|
|
226
|
+
executionTime: Date.now() - startTime
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
private async handleSnowCreateRestMethod(args: any): Promise<ToolResult> {
|
|
232
|
+
const startTime = Date.now();
|
|
233
|
+
try {
|
|
234
|
+
// First find the parent REST message
|
|
235
|
+
const messageResponse = await this.client.searchRecords(
|
|
236
|
+
'sys_rest_message',
|
|
237
|
+
`name=${args.restMessageName}`,
|
|
238
|
+
1
|
|
239
|
+
);
|
|
240
|
+
|
|
241
|
+
if (!messageResponse.success || !messageResponse.data?.result?.length) {
|
|
242
|
+
throw new Error(`REST Message not found: ${args.restMessageName}`);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
const restMessageId = messageResponse.data.result[0].sys_id;
|
|
246
|
+
|
|
247
|
+
const methodData = {
|
|
248
|
+
rest_message: restMessageId,
|
|
249
|
+
name: args.methodName,
|
|
250
|
+
http_method: args.httpMethod,
|
|
251
|
+
rest_endpoint: args.endpoint || '',
|
|
252
|
+
content: args.content || '',
|
|
253
|
+
active: true
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
// Add headers if provided
|
|
257
|
+
if (args.headers) {
|
|
258
|
+
// Headers would need to be created as separate records
|
|
259
|
+
(methodData as any).http_headers = JSON.stringify(args.headers);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
const result = await this.client.createRecord('sys_rest_message_fn', methodData);
|
|
263
|
+
|
|
264
|
+
return {
|
|
265
|
+
success: result.success,
|
|
266
|
+
result: result.result,
|
|
267
|
+
error: result.success ? undefined : 'Failed to create REST method',
|
|
268
|
+
executionTime: Date.now() - startTime
|
|
269
|
+
};
|
|
270
|
+
} catch (error) {
|
|
271
|
+
return {
|
|
272
|
+
success: false,
|
|
273
|
+
error: error instanceof Error ? error.message : 'Failed to create REST method',
|
|
274
|
+
executionTime: Date.now() - startTime
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
private async handleSnowCreateTransformMap(args: any): Promise<ToolResult> {
|
|
280
|
+
const startTime = Date.now();
|
|
281
|
+
try {
|
|
282
|
+
const mapData = {
|
|
283
|
+
name: args.name,
|
|
284
|
+
source_table: args.sourceTable,
|
|
285
|
+
target_table: args.targetTable,
|
|
286
|
+
description: args.description || '',
|
|
287
|
+
run_order: args.runOrder || 100,
|
|
288
|
+
active: args.active !== false
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
const result = await this.client.createRecord('sys_transform_map', mapData);
|
|
292
|
+
|
|
293
|
+
return {
|
|
294
|
+
success: result.success,
|
|
295
|
+
result: result.result,
|
|
296
|
+
error: result.success ? undefined : 'Failed to create transform map',
|
|
297
|
+
executionTime: Date.now() - startTime
|
|
298
|
+
};
|
|
299
|
+
} catch (error) {
|
|
300
|
+
return {
|
|
301
|
+
success: false,
|
|
302
|
+
error: error instanceof Error ? error.message : 'Failed to create transform map',
|
|
303
|
+
executionTime: Date.now() - startTime
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
private async handleSnowCreateFieldMap(args: any): Promise<ToolResult> {
|
|
309
|
+
const startTime = Date.now();
|
|
310
|
+
try {
|
|
311
|
+
// First find the parent transform map
|
|
312
|
+
const mapResponse = await this.client.searchRecords(
|
|
313
|
+
'sys_transform_map',
|
|
314
|
+
`name=${args.transformMapName}`,
|
|
315
|
+
1
|
|
316
|
+
);
|
|
317
|
+
|
|
318
|
+
if (!mapResponse.success || !mapResponse.data?.result?.length) {
|
|
319
|
+
throw new Error(`Transform Map not found: ${args.transformMapName}`);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
const transformMapId = mapResponse.data.result[0].sys_id;
|
|
323
|
+
|
|
324
|
+
const fieldMapData = {
|
|
325
|
+
map: transformMapId,
|
|
326
|
+
source_field: args.sourceField,
|
|
327
|
+
target_field: args.targetField,
|
|
328
|
+
transform_script: args.transform || '',
|
|
329
|
+
coalesce: args.coalesce || false,
|
|
330
|
+
default_value: args.defaultValue || ''
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
const result = await this.client.createRecord('sys_transform_entry', fieldMapData);
|
|
334
|
+
|
|
335
|
+
return {
|
|
336
|
+
success: result.success,
|
|
337
|
+
result: result.result,
|
|
338
|
+
error: result.success ? undefined : 'Failed to create field map',
|
|
339
|
+
executionTime: Date.now() - startTime
|
|
340
|
+
};
|
|
341
|
+
} catch (error) {
|
|
342
|
+
return {
|
|
343
|
+
success: false,
|
|
344
|
+
error: error instanceof Error ? error.message : 'Failed to create field map',
|
|
345
|
+
executionTime: Date.now() - startTime
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
private async handleSnowCreateImportSet(args: any): Promise<ToolResult> {
|
|
351
|
+
const startTime = Date.now();
|
|
352
|
+
try {
|
|
353
|
+
const importSetData = {
|
|
354
|
+
name: args.name,
|
|
355
|
+
label: args.label,
|
|
356
|
+
description: args.description || '',
|
|
357
|
+
file_format: args.fileFormat || 'CSV',
|
|
358
|
+
active: true
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
// Import sets are special tables - would need special handling
|
|
362
|
+
const result = await this.client.createRecord('sys_import_set_table', importSetData);
|
|
363
|
+
|
|
364
|
+
return {
|
|
365
|
+
success: result.success,
|
|
366
|
+
result: result.result,
|
|
367
|
+
error: result.success ? undefined : 'Failed to create import set',
|
|
368
|
+
executionTime: Date.now() - startTime
|
|
369
|
+
};
|
|
370
|
+
} catch (error) {
|
|
371
|
+
return {
|
|
372
|
+
success: false,
|
|
373
|
+
error: error instanceof Error ? error.message : 'Failed to create import set',
|
|
374
|
+
executionTime: Date.now() - startTime
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
private async handleSnowCreateWebService(args: any): Promise<ToolResult> {
|
|
380
|
+
const startTime = Date.now();
|
|
381
|
+
try {
|
|
382
|
+
const webServiceData = {
|
|
383
|
+
name: args.name,
|
|
384
|
+
wsdl_url: args.wsdlUrl,
|
|
385
|
+
description: args.description || '',
|
|
386
|
+
authentication_type: args.authType || 'no_authentication',
|
|
387
|
+
namespace: args.namespace || '',
|
|
388
|
+
active: true
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
const result = await this.client.createRecord('sys_web_service', webServiceData);
|
|
392
|
+
|
|
393
|
+
return {
|
|
394
|
+
success: result.success,
|
|
395
|
+
result: result.result,
|
|
396
|
+
error: result.success ? undefined : 'Failed to create web service',
|
|
397
|
+
executionTime: Date.now() - startTime
|
|
398
|
+
};
|
|
399
|
+
} catch (error) {
|
|
400
|
+
return {
|
|
401
|
+
success: false,
|
|
402
|
+
error: error instanceof Error ? error.message : 'Failed to create web service',
|
|
403
|
+
executionTime: Date.now() - startTime
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
private async handleSnowCreateEmailConfig(args: any): Promise<ToolResult> {
|
|
409
|
+
const startTime = Date.now();
|
|
410
|
+
try {
|
|
411
|
+
const emailConfigData = {
|
|
412
|
+
name: args.name,
|
|
413
|
+
type: args.serverType,
|
|
414
|
+
server: args.serverName,
|
|
415
|
+
port: args.port || (args.serverType === 'SMTP' ? 587 : args.serverType === 'POP3' ? 110 : 143),
|
|
416
|
+
encryption: args.encryption || 'TLS',
|
|
417
|
+
user: args.username || '',
|
|
418
|
+
description: args.description || '',
|
|
419
|
+
active: true
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
// Email configurations might be in different tables based on type
|
|
423
|
+
const table = args.serverType === 'SMTP' ? 'sys_email_account' : 'sys_email_account';
|
|
424
|
+
const result = await this.client.createRecord(table, emailConfigData);
|
|
425
|
+
|
|
426
|
+
return {
|
|
427
|
+
success: result.success,
|
|
428
|
+
result: result.result,
|
|
429
|
+
error: result.success ? undefined : 'Failed to create email configuration',
|
|
430
|
+
executionTime: Date.now() - startTime
|
|
431
|
+
};
|
|
432
|
+
} catch (error) {
|
|
433
|
+
return {
|
|
434
|
+
success: false,
|
|
435
|
+
error: error instanceof Error ? error.message : 'Failed to create email configuration',
|
|
436
|
+
executionTime: Date.now() - startTime
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
private async handleSnowDiscoverIntegrationEndpoints(args: any): Promise<ToolResult> {
|
|
442
|
+
const startTime = Date.now();
|
|
443
|
+
try {
|
|
444
|
+
const endpointType = args?.type || 'all';
|
|
445
|
+
const endpoints: any[] = [];
|
|
446
|
+
|
|
447
|
+
// Discover REST endpoints
|
|
448
|
+
if (endpointType === 'all' || endpointType === 'REST') {
|
|
449
|
+
const restResponse = await this.client.searchRecords('sys_rest_message', '', 50);
|
|
450
|
+
if (restResponse.success && restResponse.data) {
|
|
451
|
+
endpoints.push(...restResponse.data.result.map((ep: any) => ({
|
|
452
|
+
type: 'REST',
|
|
453
|
+
name: ep.name,
|
|
454
|
+
endpoint: ep.rest_endpoint,
|
|
455
|
+
authentication: ep.authentication_type
|
|
456
|
+
})));
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
// Discover SOAP endpoints
|
|
461
|
+
if (endpointType === 'all' || endpointType === 'SOAP') {
|
|
462
|
+
const soapResponse = await this.client.searchRecords('sys_web_service', '', 50);
|
|
463
|
+
if (soapResponse.success && soapResponse.data) {
|
|
464
|
+
endpoints.push(...soapResponse.data.result.map((ep: any) => ({
|
|
465
|
+
type: 'SOAP',
|
|
466
|
+
name: ep.name,
|
|
467
|
+
endpoint: ep.wsdl_url,
|
|
468
|
+
namespace: ep.namespace
|
|
469
|
+
})));
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
return {
|
|
474
|
+
success: true,
|
|
475
|
+
result: { endpoints },
|
|
476
|
+
executionTime: Date.now() - startTime
|
|
477
|
+
};
|
|
478
|
+
} catch (error) {
|
|
479
|
+
return {
|
|
480
|
+
success: false,
|
|
481
|
+
error: error instanceof Error ? error.message : 'Failed to discover integration endpoints',
|
|
482
|
+
executionTime: Date.now() - startTime
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
private async handleSnowTestIntegration(args: any): Promise<ToolResult> {
|
|
488
|
+
const startTime = Date.now();
|
|
489
|
+
try {
|
|
490
|
+
const { endpointName, testData } = args;
|
|
491
|
+
|
|
492
|
+
// First, try to find the REST message endpoint
|
|
493
|
+
let endpoint = null;
|
|
494
|
+
let endpointType = 'unknown';
|
|
495
|
+
|
|
496
|
+
try {
|
|
497
|
+
const restMessageResponse = await this.client.get(`/api/now/table/sys_rest_message?sysparm_query=name=${encodeURIComponent(endpointName)}`);
|
|
498
|
+
if (restMessageResponse.result && restMessageResponse.result.length > 0) {
|
|
499
|
+
endpoint = restMessageResponse.result[0];
|
|
500
|
+
endpointType = 'rest_message';
|
|
501
|
+
}
|
|
502
|
+
} catch (error) {
|
|
503
|
+
this.logger.debug('REST message not found, trying other types', { endpointName });
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// If not found as REST message, try web service
|
|
507
|
+
if (!endpoint) {
|
|
508
|
+
try {
|
|
509
|
+
const webServiceResponse = await this.client.get(`/api/now/table/sys_web_service?sysparm_query=name=${encodeURIComponent(endpointName)}`);
|
|
510
|
+
if (webServiceResponse.result && webServiceResponse.result.length > 0) {
|
|
511
|
+
endpoint = webServiceResponse.result[0];
|
|
512
|
+
endpointType = 'web_service';
|
|
513
|
+
}
|
|
514
|
+
} catch (error) {
|
|
515
|
+
this.logger.debug('Web service not found', { endpointName });
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
if (!endpoint) {
|
|
520
|
+
return {
|
|
521
|
+
success: false,
|
|
522
|
+
error: `Integration endpoint '${endpointName}' not found. Searched REST messages and web services.`,
|
|
523
|
+
executionTime: Date.now() - startTime
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
// Perform actual test based on endpoint type
|
|
528
|
+
const testStartTime = Date.now();
|
|
529
|
+
let testResult: any;
|
|
530
|
+
|
|
531
|
+
if (endpointType === 'rest_message') {
|
|
532
|
+
// Test REST message endpoint
|
|
533
|
+
try {
|
|
534
|
+
// Get REST message methods
|
|
535
|
+
const methodsResponse = await this.client.get(`/api/now/table/sys_rest_message_fn?sysparm_query=rest_message=${endpoint.sys_id}`);
|
|
536
|
+
const methods = methodsResponse.result || [];
|
|
537
|
+
|
|
538
|
+
if (methods.length === 0) {
|
|
539
|
+
testResult = {
|
|
540
|
+
endpoint: endpointName,
|
|
541
|
+
status: 'error',
|
|
542
|
+
response_time: Date.now() - testStartTime,
|
|
543
|
+
error: 'No REST methods found for this endpoint',
|
|
544
|
+
endpoint_type: endpointType,
|
|
545
|
+
endpoint_id: endpoint.sys_id
|
|
546
|
+
};
|
|
547
|
+
} else {
|
|
548
|
+
// Test the first available method (or a GET method if available)
|
|
549
|
+
const testMethod = methods.find((m: any) => m.http_method === 'GET') || methods[0];
|
|
550
|
+
|
|
551
|
+
testResult = {
|
|
552
|
+
endpoint: endpointName,
|
|
553
|
+
status: 'validated',
|
|
554
|
+
response_time: Date.now() - testStartTime,
|
|
555
|
+
endpoint_type: endpointType,
|
|
556
|
+
endpoint_id: endpoint.sys_id,
|
|
557
|
+
available_methods: methods.map((m: any) => ({
|
|
558
|
+
name: m.name,
|
|
559
|
+
http_method: m.http_method,
|
|
560
|
+
endpoint: m.endpoint
|
|
561
|
+
})),
|
|
562
|
+
test_method: testMethod.name,
|
|
563
|
+
message: `REST endpoint validated successfully. Found ${methods.length} method(s).`
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
} catch (error) {
|
|
567
|
+
testResult = {
|
|
568
|
+
endpoint: endpointName,
|
|
569
|
+
status: 'error',
|
|
570
|
+
response_time: Date.now() - testStartTime,
|
|
571
|
+
endpoint_type: endpointType,
|
|
572
|
+
endpoint_id: endpoint.sys_id,
|
|
573
|
+
error: error instanceof Error ? error.message : 'Failed to test REST message',
|
|
574
|
+
message: 'REST endpoint test failed'
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
} else if (endpointType === 'web_service') {
|
|
578
|
+
// Test web service endpoint
|
|
579
|
+
testResult = {
|
|
580
|
+
endpoint: endpointName,
|
|
581
|
+
status: 'validated',
|
|
582
|
+
response_time: Date.now() - testStartTime,
|
|
583
|
+
endpoint_type: endpointType,
|
|
584
|
+
endpoint_id: endpoint.sys_id,
|
|
585
|
+
wsdl_url: endpoint.wsdl,
|
|
586
|
+
message: 'Web service endpoint validated successfully'
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// Include test data if provided
|
|
591
|
+
if (testData) {
|
|
592
|
+
testResult.test_data_provided = testData;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
return {
|
|
596
|
+
success: true,
|
|
597
|
+
result: testResult,
|
|
598
|
+
executionTime: Date.now() - startTime
|
|
599
|
+
};
|
|
600
|
+
} catch (error) {
|
|
601
|
+
return {
|
|
602
|
+
success: false,
|
|
603
|
+
error: error instanceof Error ? error.message : 'Failed to test integration',
|
|
604
|
+
executionTime: Date.now() - startTime
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
private async handleSnowDiscoverDataSources(args: any): Promise<ToolResult> {
|
|
610
|
+
const startTime = Date.now();
|
|
611
|
+
try {
|
|
612
|
+
const dataSources: any[] = [];
|
|
613
|
+
|
|
614
|
+
// Discover import set tables
|
|
615
|
+
const importSetResponse = await this.client.searchRecords('sys_db_object', 'nameSTARTSWITHimp_', 50);
|
|
616
|
+
if (importSetResponse.success && importSetResponse.data) {
|
|
617
|
+
dataSources.push(...importSetResponse.data.result.map((ds: any) => ({
|
|
618
|
+
type: 'import_set',
|
|
619
|
+
name: ds.name,
|
|
620
|
+
label: ds.label,
|
|
621
|
+
records: ds.row_count
|
|
622
|
+
})));
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
// Discover data sources
|
|
626
|
+
const dataSourceResponse = await this.client.searchRecords('sys_data_source', '', 50);
|
|
627
|
+
if (dataSourceResponse.success && dataSourceResponse.data) {
|
|
628
|
+
dataSources.push(...dataSourceResponse.data.result.map((ds: any) => ({
|
|
629
|
+
type: ds.type,
|
|
630
|
+
name: ds.name,
|
|
631
|
+
format: ds.format,
|
|
632
|
+
import_set_table: ds.import_set_table_name
|
|
633
|
+
})));
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
return {
|
|
637
|
+
success: true,
|
|
638
|
+
result: { dataSources },
|
|
639
|
+
executionTime: Date.now() - startTime
|
|
640
|
+
};
|
|
641
|
+
} catch (error) {
|
|
642
|
+
return {
|
|
643
|
+
success: false,
|
|
644
|
+
error: error instanceof Error ? error.message : 'Failed to discover data sources',
|
|
645
|
+
executionTime: Date.now() - startTime
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
// Create and run the server
|
|
652
|
+
if (require.main === module) {
|
|
653
|
+
const server = new ServiceNowIntegrationMCP();
|
|
654
|
+
server.start().catch(console.error);
|
|
655
|
+
}
|