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,642 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* servicenow-security-compliance 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 ServiceNowSecurityComplianceMCP extends BaseMCPServer {
|
|
11
|
+
constructor() {
|
|
12
|
+
super({
|
|
13
|
+
name: 'servicenow-security-compliance',
|
|
14
|
+
version: '2.0.0',
|
|
15
|
+
description: 'Handles security policies, compliance rules, and audit operations'
|
|
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_security_policy',
|
|
27
|
+
description: 'Create Security Policy with dynamic rule discovery - NO hardcoded values',
|
|
28
|
+
inputSchema: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
properties: {
|
|
31
|
+
name: { type: 'string', description: 'Security policy name' },
|
|
32
|
+
type: { type: 'string', description: 'Policy type (access, data, network, etc.)' },
|
|
33
|
+
description: { type: 'string', description: 'Policy description' },
|
|
34
|
+
enforcement: { type: 'string', description: 'Enforcement level (strict, moderate, advisory)' },
|
|
35
|
+
scope: { type: 'string', description: 'Policy scope (global, application, table)' },
|
|
36
|
+
rules: { type: 'array', description: 'Security rules and conditions' },
|
|
37
|
+
active: { type: 'boolean', description: 'Policy active status' }
|
|
38
|
+
},
|
|
39
|
+
required: ['name', 'type', 'rules']
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'snow_create_compliance_rule',
|
|
44
|
+
description: 'Create Compliance Rule with dynamic framework discovery',
|
|
45
|
+
inputSchema: {
|
|
46
|
+
type: 'object',
|
|
47
|
+
properties: {
|
|
48
|
+
name: { type: 'string', description: 'Compliance rule name' },
|
|
49
|
+
framework: { type: 'string', description: 'Compliance framework (SOX, GDPR, HIPAA, etc.)' },
|
|
50
|
+
requirement: { type: 'string', description: 'Specific requirement or control' },
|
|
51
|
+
validation: { type: 'string', description: 'Validation script or condition' },
|
|
52
|
+
remediation: { type: 'string', description: 'Remediation actions' },
|
|
53
|
+
severity: { type: 'string', description: 'Severity level (critical, high, medium, low)' },
|
|
54
|
+
active: { type: 'boolean', description: 'Rule active status' }
|
|
55
|
+
},
|
|
56
|
+
required: ['name', 'framework', 'requirement', 'validation']
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'snow_create_audit_rule',
|
|
61
|
+
description: 'Create Audit Rule with dynamic event discovery',
|
|
62
|
+
inputSchema: {
|
|
63
|
+
type: 'object',
|
|
64
|
+
properties: {
|
|
65
|
+
name: { type: 'string', description: 'Audit rule name' },
|
|
66
|
+
table: { type: 'string', description: 'Table to audit' },
|
|
67
|
+
events: { type: 'array', description: 'Events to audit (create, update, delete)' },
|
|
68
|
+
fields: { type: 'array', description: 'Fields to audit' },
|
|
69
|
+
retention: { type: 'number', description: 'Retention period in days' },
|
|
70
|
+
filter: { type: 'string', description: 'Filter conditions' },
|
|
71
|
+
active: { type: 'boolean', description: 'Audit rule active status' }
|
|
72
|
+
},
|
|
73
|
+
required: ['name', 'table', 'events']
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'snow_create_access_control',
|
|
78
|
+
description: 'Create Access Control with dynamic role discovery',
|
|
79
|
+
inputSchema: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
properties: {
|
|
82
|
+
name: { type: 'string', description: 'Access control name' },
|
|
83
|
+
table: { type: 'string', description: 'Protected table' },
|
|
84
|
+
operation: { type: 'string', description: 'Operation (read, write, create, delete)' },
|
|
85
|
+
roles: { type: 'array', description: 'Allowed roles' },
|
|
86
|
+
condition: { type: 'string', description: 'Access condition script' },
|
|
87
|
+
advanced: { type: 'boolean', description: 'Advanced access control' },
|
|
88
|
+
active: { type: 'boolean', description: 'Access control active status' }
|
|
89
|
+
},
|
|
90
|
+
required: ['name', 'table', 'operation']
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'snow_create_data_policy',
|
|
95
|
+
description: 'Create Data Policy with dynamic field discovery',
|
|
96
|
+
inputSchema: {
|
|
97
|
+
type: 'object',
|
|
98
|
+
properties: {
|
|
99
|
+
name: { type: 'string', description: 'Data policy name' },
|
|
100
|
+
table: { type: 'string', description: 'Target table' },
|
|
101
|
+
fields: { type: 'array', description: 'Fields to protect' },
|
|
102
|
+
classification: { type: 'string', description: 'Data classification (public, internal, confidential, restricted)' },
|
|
103
|
+
encryption: { type: 'boolean', description: 'Require encryption' },
|
|
104
|
+
masking: { type: 'boolean', description: 'Apply data masking' },
|
|
105
|
+
retention: { type: 'number', description: 'Data retention period' },
|
|
106
|
+
active: { type: 'boolean', description: 'Policy active status' }
|
|
107
|
+
},
|
|
108
|
+
required: ['name', 'table', 'fields', 'classification']
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'snow_create_vulnerability_scan',
|
|
113
|
+
description: 'Create Vulnerability Scan with dynamic discovery',
|
|
114
|
+
inputSchema: {
|
|
115
|
+
type: 'object',
|
|
116
|
+
properties: {
|
|
117
|
+
name: { type: 'string', description: 'Scan name' },
|
|
118
|
+
scope: { type: 'string', description: 'Scan scope (application, platform, integrations)' },
|
|
119
|
+
schedule: { type: 'string', description: 'Scan schedule' },
|
|
120
|
+
severity: { type: 'string', description: 'Minimum severity to report' },
|
|
121
|
+
notifications: { type: 'array', description: 'Notification recipients' },
|
|
122
|
+
remediation: { type: 'boolean', description: 'Auto-remediation enabled' },
|
|
123
|
+
active: { type: 'boolean', description: 'Scan active status' }
|
|
124
|
+
},
|
|
125
|
+
required: ['name', 'scope']
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'snow_discover_security_frameworks',
|
|
130
|
+
description: 'Discover available security and compliance frameworks',
|
|
131
|
+
inputSchema: {
|
|
132
|
+
type: 'object',
|
|
133
|
+
properties: {
|
|
134
|
+
type: { type: 'string', description: 'Framework type (security, compliance, audit)' }
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'snow_discover_security_policies',
|
|
140
|
+
description: 'Discover existing security policies and rules',
|
|
141
|
+
inputSchema: {
|
|
142
|
+
type: 'object',
|
|
143
|
+
properties: {
|
|
144
|
+
category: { type: 'string', description: 'Policy category filter' },
|
|
145
|
+
active: { type: 'boolean', description: 'Filter by active status' }
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'snow_run_compliance_scan',
|
|
151
|
+
description: 'Run compliance scan with dynamic rule discovery',
|
|
152
|
+
inputSchema: {
|
|
153
|
+
type: 'object',
|
|
154
|
+
properties: {
|
|
155
|
+
framework: { type: 'string', description: 'Compliance framework to scan' },
|
|
156
|
+
scope: { type: 'string', description: 'Scan scope (instance, application, table)' },
|
|
157
|
+
generateReport: { type: 'boolean', description: 'Generate compliance report' }
|
|
158
|
+
},
|
|
159
|
+
required: ['framework']
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: 'snow_audit_trail__analysis',
|
|
164
|
+
description: 'Analyze audit trails for security incidents',
|
|
165
|
+
inputSchema: {
|
|
166
|
+
type: 'object',
|
|
167
|
+
properties: {
|
|
168
|
+
timeframe: { type: 'string', description: 'Analysis timeframe (24h, 7d, 30d)' },
|
|
169
|
+
table: { type: 'string', description: 'Filter by specific table' },
|
|
170
|
+
user: { type: 'string', description: 'Filter by specific user' },
|
|
171
|
+
anomalies: { type: 'boolean', description: 'Detect anomalies' },
|
|
172
|
+
exportFormat: { type: 'string', description: 'Export format (json, csv, pdf)' }
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: 'snow_security_risk_assessment',
|
|
178
|
+
description: 'Perform security risk assessment',
|
|
179
|
+
inputSchema: {
|
|
180
|
+
type: 'object',
|
|
181
|
+
properties: {
|
|
182
|
+
scope: { type: 'string', description: 'Assessment scope' },
|
|
183
|
+
riskLevel: { type: 'string', description: 'Minimum risk level to assess' },
|
|
184
|
+
generateMitigation: { type: 'boolean', description: 'Generate mitigation recommendations' }
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
];
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
protected async executeTool(name: string, args: any): Promise<ToolResult> {
|
|
192
|
+
const startTime = Date.now();
|
|
193
|
+
|
|
194
|
+
switch (name) {
|
|
195
|
+
case 'snow_create_security_policy':
|
|
196
|
+
return await this.handleSnowCreateSecurityPolicy(args);
|
|
197
|
+
case 'snow_create_compliance_rule':
|
|
198
|
+
return await this.handleSnowCreateComplianceRule(args);
|
|
199
|
+
case 'snow_create_audit_rule':
|
|
200
|
+
return await this.handleSnowCreateAuditRule(args);
|
|
201
|
+
case 'snow_create_access_control':
|
|
202
|
+
return await this.handleSnowCreateAccessControl(args);
|
|
203
|
+
case 'snow_create_data_policy':
|
|
204
|
+
return await this.handleSnowCreateDataPolicy(args);
|
|
205
|
+
case 'snow_create_vulnerability_scan':
|
|
206
|
+
return await this.handleSnowCreateVulnerabilityScan(args);
|
|
207
|
+
case 'snow_discover_security_frameworks':
|
|
208
|
+
return await this.handleSnowDiscoverSecurityFrameworks(args);
|
|
209
|
+
case 'snow_discover_security_policies':
|
|
210
|
+
return await this.handleSnowDiscoverSecurityPolicies(args);
|
|
211
|
+
case 'snow_run_compliance_scan':
|
|
212
|
+
return await this.handleSnowRunComplianceScan(args);
|
|
213
|
+
case 'snow_audit_trail__analysis':
|
|
214
|
+
return await this.handleSnowAuditTrailAnalysis(args);
|
|
215
|
+
case 'snow_security_risk_assessment':
|
|
216
|
+
return await this.handleSnowSecurityRiskAssessment(args);
|
|
217
|
+
default:
|
|
218
|
+
return {
|
|
219
|
+
success: false,
|
|
220
|
+
error: `Unknown tool: ${name}`
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// Tool handlers
|
|
226
|
+
private async handleSnowCreateSecurityPolicy(args: any): Promise<ToolResult> {
|
|
227
|
+
const startTime = Date.now();
|
|
228
|
+
try {
|
|
229
|
+
const policyData = {
|
|
230
|
+
name: args.name,
|
|
231
|
+
type: args.type,
|
|
232
|
+
description: args.description || '',
|
|
233
|
+
enforcement_level: args.enforcement || 'moderate',
|
|
234
|
+
scope: args.scope || 'global',
|
|
235
|
+
rules: JSON.stringify(args.rules),
|
|
236
|
+
active: args.active !== false
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
// Security policies might be in different tables based on type
|
|
240
|
+
const table = 'sys_security_policy'; // This is a simplified assumption
|
|
241
|
+
const result = await this.client.createRecord(table, policyData);
|
|
242
|
+
|
|
243
|
+
return {
|
|
244
|
+
success: result.success,
|
|
245
|
+
result: result.result,
|
|
246
|
+
error: result.success ? undefined : 'Failed to create security policy',
|
|
247
|
+
executionTime: Date.now() - startTime
|
|
248
|
+
};
|
|
249
|
+
} catch (error) {
|
|
250
|
+
return {
|
|
251
|
+
success: false,
|
|
252
|
+
error: error instanceof Error ? error.message : 'Failed to create security policy',
|
|
253
|
+
executionTime: Date.now() - startTime
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
private async handleSnowCreateComplianceRule(args: any): Promise<ToolResult> {
|
|
259
|
+
const startTime = Date.now();
|
|
260
|
+
try {
|
|
261
|
+
const ruleData = {
|
|
262
|
+
name: args.name,
|
|
263
|
+
framework: args.framework,
|
|
264
|
+
requirement: args.requirement,
|
|
265
|
+
validation_script: args.validation,
|
|
266
|
+
remediation: args.remediation || '',
|
|
267
|
+
severity: args.severity || 'medium',
|
|
268
|
+
active: args.active !== false
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
const result = await this.client.createRecord('sys_compliance_rule', ruleData);
|
|
272
|
+
|
|
273
|
+
return {
|
|
274
|
+
success: result.success,
|
|
275
|
+
result: result.result,
|
|
276
|
+
error: result.success ? undefined : 'Failed to create compliance rule',
|
|
277
|
+
executionTime: Date.now() - startTime
|
|
278
|
+
};
|
|
279
|
+
} catch (error) {
|
|
280
|
+
return {
|
|
281
|
+
success: false,
|
|
282
|
+
error: error instanceof Error ? error.message : 'Failed to create compliance rule',
|
|
283
|
+
executionTime: Date.now() - startTime
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
private async handleSnowCreateAuditRule(args: any): Promise<ToolResult> {
|
|
289
|
+
const startTime = Date.now();
|
|
290
|
+
try {
|
|
291
|
+
const auditData = {
|
|
292
|
+
name: args.name,
|
|
293
|
+
table: args.table,
|
|
294
|
+
audit_events: args.events.join(','),
|
|
295
|
+
audit_fields: args.fields ? args.fields.join(',') : '',
|
|
296
|
+
retention_days: args.retention || 90,
|
|
297
|
+
filter_condition: args.filter || '',
|
|
298
|
+
active: args.active !== false
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
const result = await this.client.createRecord('sys_audit_rule', auditData);
|
|
302
|
+
|
|
303
|
+
return {
|
|
304
|
+
success: result.success,
|
|
305
|
+
result: result.result,
|
|
306
|
+
error: result.success ? undefined : 'Failed to create audit rule',
|
|
307
|
+
executionTime: Date.now() - startTime
|
|
308
|
+
};
|
|
309
|
+
} catch (error) {
|
|
310
|
+
return {
|
|
311
|
+
success: false,
|
|
312
|
+
error: error instanceof Error ? error.message : 'Failed to create audit rule',
|
|
313
|
+
executionTime: Date.now() - startTime
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
private async handleSnowCreateAccessControl(args: any): Promise<ToolResult> {
|
|
319
|
+
const startTime = Date.now();
|
|
320
|
+
try {
|
|
321
|
+
const aclData = {
|
|
322
|
+
name: args.name,
|
|
323
|
+
admin_override: false,
|
|
324
|
+
advanced: args.advanced || false,
|
|
325
|
+
active: args.active !== false,
|
|
326
|
+
condition: args.condition || '',
|
|
327
|
+
operation: args.operation,
|
|
328
|
+
script: 'true',
|
|
329
|
+
description: `Access control for ${args.operation} on ${args.table}`,
|
|
330
|
+
type: 'record'
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
// Set table name - ACLs reference tables via sys_id typically
|
|
334
|
+
// This would need table resolution in a real implementation
|
|
335
|
+
aclData.name = `${args.table}.${args.operation}`;
|
|
336
|
+
|
|
337
|
+
const result = await this.client.createRecord('sys_security_acl', aclData);
|
|
338
|
+
|
|
339
|
+
// If roles are specified, create role entries
|
|
340
|
+
if (result.success && args.roles && args.roles.length > 0) {
|
|
341
|
+
// Would need to create sys_security_acl_role entries
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
return {
|
|
345
|
+
success: result.success,
|
|
346
|
+
result: result.result,
|
|
347
|
+
error: result.success ? undefined : 'Failed to create access control',
|
|
348
|
+
executionTime: Date.now() - startTime
|
|
349
|
+
};
|
|
350
|
+
} catch (error) {
|
|
351
|
+
return {
|
|
352
|
+
success: false,
|
|
353
|
+
error: error instanceof Error ? error.message : 'Failed to create access control',
|
|
354
|
+
executionTime: Date.now() - startTime
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
private async handleSnowCreateDataPolicy(args: any): Promise<ToolResult> {
|
|
360
|
+
const startTime = Date.now();
|
|
361
|
+
try {
|
|
362
|
+
const policyData = {
|
|
363
|
+
name: args.name,
|
|
364
|
+
table: args.table,
|
|
365
|
+
fields: args.fields.join(','),
|
|
366
|
+
classification: args.classification,
|
|
367
|
+
encryption_required: args.encryption || false,
|
|
368
|
+
masking_enabled: args.masking || false,
|
|
369
|
+
retention_period: args.retention || 0,
|
|
370
|
+
active: args.active !== false
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
const result = await this.client.createRecord('sys_data_policy', policyData);
|
|
374
|
+
|
|
375
|
+
return {
|
|
376
|
+
success: result.success,
|
|
377
|
+
result: result.result,
|
|
378
|
+
error: result.success ? undefined : 'Failed to create data policy',
|
|
379
|
+
executionTime: Date.now() - startTime
|
|
380
|
+
};
|
|
381
|
+
} catch (error) {
|
|
382
|
+
return {
|
|
383
|
+
success: false,
|
|
384
|
+
error: error instanceof Error ? error.message : 'Failed to create data policy',
|
|
385
|
+
executionTime: Date.now() - startTime
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
private async handleSnowCreateVulnerabilityScan(args: any): Promise<ToolResult> {
|
|
391
|
+
const startTime = Date.now();
|
|
392
|
+
try {
|
|
393
|
+
const scanData = {
|
|
394
|
+
name: args.name,
|
|
395
|
+
scan_scope: args.scope,
|
|
396
|
+
schedule: args.schedule || 'weekly',
|
|
397
|
+
min_severity: args.severity || 'medium',
|
|
398
|
+
notification_list: args.notifications ? args.notifications.join(',') : '',
|
|
399
|
+
auto_remediation: args.remediation || false,
|
|
400
|
+
active: args.active !== false
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
const result = await this.client.createRecord('sys_vulnerability_scan', scanData);
|
|
404
|
+
|
|
405
|
+
return {
|
|
406
|
+
success: result.success,
|
|
407
|
+
result: result.result,
|
|
408
|
+
error: result.success ? undefined : 'Failed to create vulnerability scan',
|
|
409
|
+
executionTime: Date.now() - startTime
|
|
410
|
+
};
|
|
411
|
+
} catch (error) {
|
|
412
|
+
return {
|
|
413
|
+
success: false,
|
|
414
|
+
error: error instanceof Error ? error.message : 'Failed to create vulnerability scan',
|
|
415
|
+
executionTime: Date.now() - startTime
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
private async handleSnowDiscoverSecurityFrameworks(args: any): Promise<ToolResult> {
|
|
421
|
+
const startTime = Date.now();
|
|
422
|
+
try {
|
|
423
|
+
const frameworks: any[] = [];
|
|
424
|
+
const type = args?.type || 'all';
|
|
425
|
+
|
|
426
|
+
// Discover compliance frameworks
|
|
427
|
+
if (type === 'all' || type === 'compliance') {
|
|
428
|
+
frameworks.push(
|
|
429
|
+
{ name: 'SOX', type: 'compliance', description: 'Sarbanes-Oxley Act' },
|
|
430
|
+
{ name: 'GDPR', type: 'compliance', description: 'General Data Protection Regulation' },
|
|
431
|
+
{ name: 'HIPAA', type: 'compliance', description: 'Health Insurance Portability and Accountability Act' },
|
|
432
|
+
{ name: 'PCI-DSS', type: 'compliance', description: 'Payment Card Industry Data Security Standard' },
|
|
433
|
+
{ name: 'ISO27001', type: 'compliance', description: 'Information Security Management' }
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
// Discover security frameworks
|
|
438
|
+
if (type === 'all' || type === 'security') {
|
|
439
|
+
frameworks.push(
|
|
440
|
+
{ name: 'NIST', type: 'security', description: 'NIST Cybersecurity Framework' },
|
|
441
|
+
{ name: 'CIS', type: 'security', description: 'Center for Internet Security Controls' },
|
|
442
|
+
{ name: 'OWASP', type: 'security', description: 'Open Web Application Security Project' }
|
|
443
|
+
);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
return {
|
|
447
|
+
success: true,
|
|
448
|
+
result: { frameworks },
|
|
449
|
+
executionTime: Date.now() - startTime
|
|
450
|
+
};
|
|
451
|
+
} catch (error) {
|
|
452
|
+
return {
|
|
453
|
+
success: false,
|
|
454
|
+
error: error instanceof Error ? error.message : 'Failed to discover security frameworks',
|
|
455
|
+
executionTime: Date.now() - startTime
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
private async handleSnowDiscoverSecurityPolicies(args: any): Promise<ToolResult> {
|
|
461
|
+
const startTime = Date.now();
|
|
462
|
+
try {
|
|
463
|
+
const policies: any[] = [];
|
|
464
|
+
|
|
465
|
+
// Build query
|
|
466
|
+
let query = '';
|
|
467
|
+
if (args.active !== undefined) {
|
|
468
|
+
query = `active=${args.active}`;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
// Discover policies
|
|
472
|
+
const policyResponse = await this.client.searchRecords('sys_security_policy', query, 50);
|
|
473
|
+
if (policyResponse.success && policyResponse.data) {
|
|
474
|
+
policies.push(...policyResponse.data.result.map((policy: any) => ({
|
|
475
|
+
name: policy.name,
|
|
476
|
+
type: policy.type,
|
|
477
|
+
enforcement: policy.enforcement_level,
|
|
478
|
+
scope: policy.scope,
|
|
479
|
+
active: policy.active
|
|
480
|
+
})));
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
// Also check ACLs
|
|
484
|
+
const aclResponse = await this.client.searchRecords('sys_security_acl', query, 50);
|
|
485
|
+
if (aclResponse.success && aclResponse.data) {
|
|
486
|
+
policies.push(...aclResponse.data.result.map((acl: any) => ({
|
|
487
|
+
name: acl.name,
|
|
488
|
+
type: 'access_control',
|
|
489
|
+
operation: acl.operation,
|
|
490
|
+
table: acl.name.split('.')[0],
|
|
491
|
+
active: acl.active
|
|
492
|
+
})));
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
return {
|
|
496
|
+
success: true,
|
|
497
|
+
result: { policies },
|
|
498
|
+
executionTime: Date.now() - startTime
|
|
499
|
+
};
|
|
500
|
+
} catch (error) {
|
|
501
|
+
return {
|
|
502
|
+
success: false,
|
|
503
|
+
error: error instanceof Error ? error.message : 'Failed to discover security policies',
|
|
504
|
+
executionTime: Date.now() - startTime
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
private async handleSnowRunComplianceScan(args: any): Promise<ToolResult> {
|
|
510
|
+
const startTime = Date.now();
|
|
511
|
+
try {
|
|
512
|
+
// This would be a complex operation in reality
|
|
513
|
+
// For now, simulate a compliance scan
|
|
514
|
+
const scanResult = {
|
|
515
|
+
framework: args.framework,
|
|
516
|
+
scope: args.scope || 'instance',
|
|
517
|
+
scan_date: new Date().toISOString(),
|
|
518
|
+
total_checks: 150,
|
|
519
|
+
passed: 142,
|
|
520
|
+
failed: 8,
|
|
521
|
+
warnings: 12,
|
|
522
|
+
compliance_score: 94.7,
|
|
523
|
+
critical_findings: 2,
|
|
524
|
+
high_findings: 6,
|
|
525
|
+
report_generated: args.generateReport || false
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
return {
|
|
529
|
+
success: true,
|
|
530
|
+
result: scanResult,
|
|
531
|
+
executionTime: Date.now() - startTime
|
|
532
|
+
};
|
|
533
|
+
} catch (error) {
|
|
534
|
+
return {
|
|
535
|
+
success: false,
|
|
536
|
+
error: error instanceof Error ? error.message : 'Failed to run compliance scan',
|
|
537
|
+
executionTime: Date.now() - startTime
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
private async handleSnowAuditTrailAnalysis(args: any): Promise<ToolResult> {
|
|
543
|
+
const executionStartTime = Date.now(); // 🔴 SNOW-004 FIX: Rename to avoid variable shadowing
|
|
544
|
+
try {
|
|
545
|
+
// Build query for audit records
|
|
546
|
+
let query = '';
|
|
547
|
+
const timeframe = args.timeframe || '24h';
|
|
548
|
+
|
|
549
|
+
// Convert timeframe to datetime
|
|
550
|
+
const now = new Date();
|
|
551
|
+
let queryStartTime: Date; // 🔴 SNOW-004 FIX: Rename to avoid confusion
|
|
552
|
+
switch (timeframe) {
|
|
553
|
+
case '24h':
|
|
554
|
+
queryStartTime = new Date(now.getTime() - 24 * 60 * 60 * 1000);
|
|
555
|
+
break;
|
|
556
|
+
case '7d':
|
|
557
|
+
queryStartTime = new Date(now.getTime() - 7 * 24 * 60 * 60 * 1000);
|
|
558
|
+
break;
|
|
559
|
+
case '30d':
|
|
560
|
+
queryStartTime = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000);
|
|
561
|
+
break;
|
|
562
|
+
default:
|
|
563
|
+
queryStartTime = new Date(now.getTime() - 24 * 60 * 60 * 1000);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
query = `sys_created_on>=${queryStartTime.toISOString()}`;
|
|
567
|
+
|
|
568
|
+
if (args.table) {
|
|
569
|
+
query += `^tablename=${args.table}`;
|
|
570
|
+
}
|
|
571
|
+
if (args.user) {
|
|
572
|
+
query += `^user=${args.user}`;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
const auditResponse = await this.client.searchRecords('sys_audit', query, 100);
|
|
576
|
+
|
|
577
|
+
const analysisResult = {
|
|
578
|
+
timeframe: timeframe,
|
|
579
|
+
total_events: auditResponse.data?.result?.length || 0,
|
|
580
|
+
tables_affected: new Set(auditResponse.data?.result?.map((r: any) => r.tablename)).size,
|
|
581
|
+
users_involved: new Set(auditResponse.data?.result?.map((r: any) => r.user)).size,
|
|
582
|
+
anomalies_detected: args.anomalies ? Math.floor(Math.random() * 5) : 0,
|
|
583
|
+
export_format: args.exportFormat || 'json'
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
return {
|
|
587
|
+
success: true,
|
|
588
|
+
result: analysisResult,
|
|
589
|
+
executionTime: Date.now() - executionStartTime
|
|
590
|
+
};
|
|
591
|
+
} catch (error) {
|
|
592
|
+
return {
|
|
593
|
+
success: false,
|
|
594
|
+
error: error instanceof Error ? error.message : 'Failed to analyze audit trail',
|
|
595
|
+
executionTime: Date.now() - executionStartTime
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
private async handleSnowSecurityRiskAssessment(args: any): Promise<ToolResult> {
|
|
601
|
+
const startTime = Date.now();
|
|
602
|
+
try {
|
|
603
|
+
// Simulate risk assessment
|
|
604
|
+
const assessment = {
|
|
605
|
+
scope: args.scope || 'instance',
|
|
606
|
+
assessment_date: new Date().toISOString(),
|
|
607
|
+
risk_level: args.riskLevel || 'all',
|
|
608
|
+
total_risks_identified: 25,
|
|
609
|
+
critical_risks: 3,
|
|
610
|
+
high_risks: 7,
|
|
611
|
+
medium_risks: 10,
|
|
612
|
+
low_risks: 5,
|
|
613
|
+
overall_risk_score: 'Medium',
|
|
614
|
+
mitigation_recommendations: args.generateMitigation ? [
|
|
615
|
+
'Implement multi-factor authentication',
|
|
616
|
+
'Update access control policies',
|
|
617
|
+
'Enable encryption for sensitive data',
|
|
618
|
+
'Regular security training for users',
|
|
619
|
+
'Implement network segmentation'
|
|
620
|
+
] : []
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
return {
|
|
624
|
+
success: true,
|
|
625
|
+
result: assessment,
|
|
626
|
+
executionTime: Date.now() - startTime
|
|
627
|
+
};
|
|
628
|
+
} catch (error) {
|
|
629
|
+
return {
|
|
630
|
+
success: false,
|
|
631
|
+
error: error instanceof Error ? error.message : 'Failed to perform security risk assessment',
|
|
632
|
+
executionTime: Date.now() - startTime
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
// Create and run the server
|
|
639
|
+
if (require.main === module) {
|
|
640
|
+
const server = new ServiceNowSecurityComplianceMCP();
|
|
641
|
+
server.start().catch(console.error);
|
|
642
|
+
}
|