snow-flow 5.0.2 → 5.0.5

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/.mcp.json CHANGED
@@ -1,220 +1,22 @@
1
1
  {
2
- "mcpServers": {
3
- "servicenow-deployment": {
2
+ "servers": {
3
+ "servicenow-unified": {
4
4
  "command": "node",
5
- "args": [
6
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-deployment-mcp.js"
7
- ],
8
- "description": "Widget and artifact deployment with COHERENCE VALIDATION - ensures HTML template, client script, server script work together perfectly. Tools: snow_deploy, snow_update, snow_validate_deployment, snow_rollback_deployment, snow_deployment_status, snow_export_artifact, snow_import_artifact, snow_preview_widget, snow_widget_test, snow_create_solution_package",
5
+ "args": ["/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-mcp-unified/index.js"],
6
+ "description": "Unified ServiceNow MCP Server - ALL 235+ ServiceNow tools in ONE server including: deployment, operations, automation, platform dev, integrations, properties, update sets, dev assistant, security, reporting, ML, knowledge, catalog, change management, virtual agent, PA, flows, workspaces, mobile, UI Builder, CMDB, events, HR, CSM, DevOps, advanced features, and local development",
9
7
  "env": {
10
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
11
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
12
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}",
13
- "SNOW_DEPLOYMENT_TIMEOUT": "${SNOW_DEPLOYMENT_TIMEOUT}",
14
- "MCP_DEPLOYMENT_TIMEOUT": "${MCP_DEPLOYMENT_TIMEOUT}"
8
+ "SERVICENOW_INSTANCE_URL": "${SNOW_INSTANCE}",
9
+ "SERVICENOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
10
+ "SERVICENOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
15
11
  }
16
12
  },
17
- "servicenow-operations": {
13
+ "snow-flow-orchestration": {
18
14
  "command": "node",
19
- "args": [
20
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-operations-mcp.js"
21
- ],
22
- "description": "Core ServiceNow operations - universal table query (snow_query_table), CRUD operations, incident/request/problem management, CMDB search, user/group management, catalog items, knowledge search, field discovery (snow_discover_table_fields), get by sys_id",
23
- "env": {
24
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
25
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
26
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
27
- }
28
- },
29
- "servicenow-automation": {
30
- "command": "node",
31
- "args": [
32
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-automation-mcp.js"
33
- ],
34
- "description": "Script execution with output capture (snow_execute_script_with_output), scheduled jobs, event rules, notifications, SLA definitions, workflow activities, script history, REST testing, system logs (snow_get_logs), execution tracing, background scripts with autoConfirm option",
35
- "env": {
36
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
37
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
38
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
39
- }
40
- },
41
- "servicenow-platform-development": {
42
- "command": "node",
43
- "args": [
44
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-platform-development-mcp.js"
45
- ],
46
- "description": "Platform development - create UI pages, script includes, business rules, client scripts, UI policies/actions, ACLs, dictionary entries, catalog items, workflows, transform maps",
47
- "env": {
48
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
49
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
50
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
51
- }
52
- },
53
- "servicenow-integration": {
54
- "command": "node",
55
- "args": [
56
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-integration-mcp.js"
57
- ],
58
- "description": "Integration management - REST messages, SOAP messages, transform maps, import sets, web services, email configuration, OAuth providers, endpoint discovery, integration testing",
59
- "env": {
60
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
61
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
62
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
63
- }
64
- },
65
- "servicenow-system-properties": {
66
- "command": "node",
67
- "args": [
68
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-system-properties-mcp.js"
69
- ],
70
- "description": "System property management - get/set/list/delete properties (snow_property_get, snow_property_set), bulk operations, import/export JSON, validate values, search by pattern, categories, audit history",
71
- "env": {
72
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
73
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
74
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
75
- }
76
- },
77
- "servicenow-update-set": {
78
- "command": "node",
79
- "args": [
80
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-update-set-mcp.js"
81
- ],
82
- "description": "Update set management - create/switch/complete update sets, preview changes, export/import XML, ensure active update set, add artifacts to sets, batch operations",
83
- "env": {
84
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
85
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
86
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
87
- }
88
- },
89
- "servicenow-development-assistant": {
90
- "command": "node",
91
- "args": [
92
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-development-assistant-mcp.js"
93
- ],
94
- "description": "Development assistance - code generation, best practices, pattern recommendations, code review, performance optimization, ES5 conversion, documentation generation, requirement analysis (snow_find_artifact, snow_edit_artifact, snow_analyze_artifact)",
95
- "env": {
96
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
97
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
98
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
99
- }
100
- },
101
- "servicenow-security-compliance": {
102
- "command": "node",
103
- "args": [
104
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-security-compliance-mcp.js"
105
- ],
106
- "description": "Security and compliance - security policies, compliance rules (SOX/GDPR/HIPAA), audit trails, access control review, vulnerability scanning, risk assessment, encryption settings",
107
- "env": {
108
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
109
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
110
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
111
- }
112
- },
113
- "servicenow-reporting-analytics": {
114
- "command": "node",
115
- "args": [
116
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-reporting-analytics-mcp.js"
117
- ],
118
- "description": "Reporting and analytics - create reports/dashboards/KPIs, data visualization, performance analytics, scheduled reports, data quality analysis, metrics collection, trend analysis",
119
- "env": {
120
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
121
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
122
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
123
- }
124
- },
125
- "servicenow-machine-learning": {
126
- "command": "node",
127
- "args": [
128
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-machine-learning-mcp.js"
129
- ],
130
- "description": "Machine learning - train/classify incidents (snow_train_classifier), change risk prediction, anomaly detection, forecast incidents, sentiment analysis, process optimization, hybrid recommendations with TensorFlow.js",
131
- "env": {
132
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
133
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
134
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
135
- }
136
- },
137
- "servicenow-knowledge-catalog": {
138
- "command": "node",
139
- "args": [
140
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-knowledge-catalog-mcp.js"
141
- ],
142
- "description": "Knowledge and catalog management - CORRECTED v3.6.10 with proper catalog UI policy creation (2-table system: policy with embedded conditions string, separate actions table). Create/search/update knowledge articles, catalog items, variables, UI policies with conditions as query string and actions array",
143
- "env": {
144
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
145
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
146
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
147
- }
148
- },
149
- "servicenow-change-virtualagent-pa": {
150
- "command": "node",
151
- "args": [
152
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-change-virtualagent-pa-mcp.js"
153
- ],
154
- "description": "Change management, Virtual Agent, and Performance Analytics - create/manage change requests, CAB meetings, VA topics/blocks, conversations, PA indicators/widgets/breakdowns, thresholds, data collection",
155
- "env": {
156
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
157
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
158
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
159
- }
160
- },
161
- "servicenow-flow-workspace-mobile": {
162
- "command": "node",
163
- "args": [
164
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-flow-workspace-mobile-mcp.js"
165
- ],
166
- "description": "Flow Designer, Workspace, and Mobile - create flows/actions/subflows/triggers, test flows, workspaces/tabs/lists, contextual panels, mobile app config, layouts, push notifications, offline sync",
167
- "env": {
168
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
169
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
170
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
171
- }
172
- },
173
- "servicenow-cmdb-event-hr-csm-devops": {
174
- "command": "node",
175
- "args": [
176
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-cmdb-event-hr-csm-devops-mcp.js"
177
- ],
178
- "description": "CMDB, Event Management, HR, CSM, and DevOps - create CIs/relationships, discovery, impact analysis, events/alerts, HR cases/onboarding, customer cases/accounts, DevOps pipelines/deployments",
179
- "env": {
180
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
181
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
182
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
183
- }
184
- },
185
- "servicenow-advanced-features": {
186
- "command": "node",
187
- "args": [
188
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/advanced/servicenow-advanced-features-mcp.js"
189
- ],
190
- "description": "Advanced features - batch API operations (80% reduction), table relationships analysis, query optimization, field usage analysis, code pattern detection, process discovery, workflow analysis, documentation generation",
191
- "env": {
192
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
193
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
194
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
195
- }
196
- },
197
- "servicenow-local-development": {
198
- "command": "node",
199
- "args": [
200
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/servicenow-local-development-mcp.js"
201
- ],
202
- "description": "UNIVERSAL ARTIFACT DETECTION v3.6.6 - finds ANY ServiceNow record by sys_id using sys_metadata! Pull any artifact (even custom tables) to local files with Claude Code native tools. Supports all tables, generic artifact creation for unknown types, smart chunking, ES5 validation, coherence checking. Tools: snow_pull_artifact, snow_push_artifact, snow_validate_artifact_coherence",
203
- "env": {
204
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
205
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
206
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
207
- }
208
- },
209
- "snow-flow": {
210
- "command": "node",
211
- "args": [
212
- "/Users/nielsvanderwerf/.nvm/versions/node/v20.15.0/lib/node_modules/snow-flow/dist/mcp/snow-flow-mcp.js"
213
- ],
214
- "description": "Snow-Flow orchestration - swarm init/status, agent spawn/discover, task orchestrate/categorize, neural train/patterns (TensorFlow.js), memory store/search (timeout-protected), performance reports, token usage tracking",
15
+ "args": ["/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/snow-flow-mcp.js"],
16
+ "description": "Snow-Flow orchestration - swarm coordination, agent spawning, task orchestration, neural training (TensorFlow.js), memory management, performance tracking",
215
17
  "env": {
216
18
  "SNOW_FLOW_ENV": "${SNOW_FLOW_ENV}"
217
19
  }
218
20
  }
219
21
  }
220
- }
22
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "mcpServers": {
2
+ "servers": {
3
3
  "servicenow-unified": {
4
4
  "command": "node",
5
5
  "args": ["{{PROJECT_ROOT}}/dist/mcp/servicenow-mcp-unified/index.js"],
package/README.md CHANGED
@@ -80,16 +80,31 @@ snow-flow auth status
80
80
 
81
81
  #### ServiceNow OAuth Configuration
82
82
 
83
- To set up OAuth in your ServiceNow instance:
84
-
85
- 1. **Navigate to System OAuth → Application Registry**
86
- 2. **Click "New" → "Create an OAuth API endpoint"** (not client credentials)
87
- 3. **Fill required fields:**
88
- - Name: `Snow-Flow Integration`
89
- - Client ID: `snow-flow-client`
90
- - Redirect URL: `http://localhost:3000/callback`
91
- 4. **Save and copy the Client ID and Client Secret**
92
- 5. **Run `snow-flow auth login`** - this opens browser for authentication
83
+ ⚠️ **IMPORTANT:** Snow-Flow uses OAuth 2.0 Authorization Code Flow with browser authentication. Follow these exact steps:
84
+
85
+ 1. **Navigate to:** System OAuth → Application Registry
86
+ 2. **Click:** New → **"Create an OAuth API endpoint for external clients"**
87
+ 3. **Configure OAuth Application:**
88
+ - **Name:** `Snow-Flow Integration` (or any name you prefer)
89
+ - **Redirect URL:** `http://localhost:3005/callback` ⚠️ **MUST be exactly this!**
90
+ - **Refresh Token Lifespan:** `0` (unlimited - recommended)
91
+ - **Access Token Lifespan:** `1800` (30 minutes)
92
+ 4. **Save** - ServiceNow will auto-generate:
93
+ - Client ID (copy this)
94
+ - Client Secret (copy this - shown only once!)
95
+ 5. **Create `.env` file** in your project with:
96
+ ```bash
97
+ SNOW_INSTANCE=your-instance.service-now.com
98
+ SNOW_CLIENT_ID=<your_client_id>
99
+ SNOW_CLIENT_SECRET=<your_client_secret>
100
+ ```
101
+ 6. **Run:** `snow-flow auth login`
102
+ - Opens browser automatically for ServiceNow login
103
+ - Redirects to `http://localhost:3005/callback` after authentication
104
+ - Stores OAuth tokens locally for future use
105
+
106
+ **Why this exact redirect URL?**
107
+ Snow-Flow starts a local OAuth callback server on port 3005. ServiceNow must redirect to **exactly** `http://localhost:3005/callback` - any mismatch (wrong port, missing `/callback`) will cause "Invalid redirect_uri" errors.
93
108
 
94
109
  #### Common Authentication Issues
95
110
 
package/dist/cli.js CHANGED
@@ -574,7 +574,7 @@ async function executeClaudeCode(prompt) {
574
574
  // SDK automatically initializes MCP servers from configuration
575
575
  if (hasMcpConfig) {
576
576
  console.log(chalk_1.default.blue('ℹ️ MCP servers managed by Claude Agent SDK v0.1.1'));
577
- console.log(chalk_1.default.green('✅ 448 ServiceNow tools available via SDK integration'));
577
+ console.log(chalk_1.default.green('✅ 235+ ServiceNow tools available via unified MCP server'));
578
578
  }
579
579
  // Launch Claude Code with MCP config and skip permissions to avoid raw mode issues
580
580
  const claudeArgs = hasMcpConfig
@@ -1720,14 +1720,14 @@ program
1720
1720
  console.log(chalk_1.default.green.bold('\n✅ Snow-Flow project initialized successfully!'));
1721
1721
  console.log('\n📋 Created Snow-Flow configuration:');
1722
1722
  console.log(' ✓ .claude/ - Claude Code MCP configuration');
1723
- console.log(' ✓ .mcp.json - 20+ ServiceNow MCP servers (240+ tools including complete UX Workspace workflow)');
1723
+ console.log(' ✓ .mcp.json - 2 unified MCP servers (235+ tools including complete UX Workspace workflow)');
1724
1724
  console.log(' ✓ CLAUDE.md - Complete development guide');
1725
1725
  console.log(' ✓ README.md - Current capabilities documentation');
1726
1726
  console.log(' ✓ .snow-flow/ - Project workspace and memory');
1727
1727
  if (!options.skipMcp) {
1728
1728
  // NOTE: MCP servers now managed by Claude Agent SDK (v4.7.0+)
1729
1729
  console.log(chalk_1.default.blue('\nℹ️ MCP servers now managed by Claude Agent SDK v0.1.1'));
1730
- console.log(chalk_1.default.green('✅ 448 ServiceNow tools automatically available via SDK'));
1730
+ console.log(chalk_1.default.green('✅ 235+ ServiceNow tools automatically available via unified server'));
1731
1731
  console.log(chalk_1.default.blue('📋 SDK handles MCP server lifecycle automatically'));
1732
1732
  }
1733
1733
  console.log(chalk_1.default.blue.bold('\n🎯 Next steps:'));
@@ -1736,7 +1736,7 @@ program
1736
1736
  console.log('2. Authenticate Snow-Flow: ' + chalk_1.default.cyan('snow-flow auth login'));
1737
1737
  console.log('3. Start developing: ' + chalk_1.default.cyan('snow-flow swarm "create incident dashboard"'));
1738
1738
  console.log('\n📚 Complete documentation: ' + chalk_1.default.blue('https://snow-flow.dev'));
1739
- console.log('💡 Complete 6-step UX Workspace creation, UI Builder, and 240+ tools now available');
1739
+ console.log('💡 Complete UX Workspace creation, UI Builder, and 235+ unified tools now available');
1740
1740
  // Force exit to prevent hanging
1741
1741
  process.exit(0);
1742
1742
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "5.0.2",
4
- "description": "CLAUDE AGENT SDK INTEGRATION - v5.0.2 with @anthropic-ai/claude-agent-sdk@0.1.1 (official latest) featuring 86% code reduction (2832→400 lines), unified MCP server (235+ tools), SDK-native execution, intelligent orchestration, advanced memory, and 2.8-4.4x parallelization speedup.",
3
+ "version": "5.0.5",
4
+ "description": "CLAUDE AGENT SDK INTEGRATION - v5.0.5 with @anthropic-ai/claude-agent-sdk@0.1.1 (official latest) featuring 86% code reduction (2832→400 lines), unified MCP server (235+ tools), SDK-native execution, intelligent orchestration, advanced memory, and 2.8-4.4x parallelization speedup.",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
7
7
  "bin": {