snow-flow 4.2.0 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +186 -554
  2. package/cloudbuild-npm.yaml +132 -0
  3. package/cloudbuild-website.yaml +92 -0
  4. package/cloudbuild.yaml +141 -0
  5. package/dist/agent/interactive.d.ts +11 -0
  6. package/dist/agent/interactive.js +190 -0
  7. package/dist/agent/session.d.ts +12 -0
  8. package/dist/agent/session.js +106 -0
  9. package/dist/cli/auth.d.ts +3 -0
  10. package/dist/cli/auth.js +59 -0
  11. package/dist/cli/session.d.ts +3 -0
  12. package/dist/cli/session.js +46 -0
  13. package/dist/cli.js +81 -0
  14. package/dist/config/llm-config-loader.d.ts +45 -0
  15. package/dist/config/llm-config-loader.js +49 -0
  16. package/dist/index.js +1 -3
  17. package/dist/intelligence/performance-recommendations-engine.js +0 -1
  18. package/dist/llm/keys.d.ts +5 -0
  19. package/dist/llm/keys.js +29 -0
  20. package/dist/llm/providers.d.ts +11 -0
  21. package/dist/llm/providers.js +77 -0
  22. package/dist/mcp/advanced/servicenow-advanced-features-mcp.js +12 -12
  23. package/dist/mcp/bridge.d.ts +10 -0
  24. package/dist/mcp/bridge.js +31 -0
  25. package/dist/mcp/servicenow-development-assistant-mcp.js +1 -1
  26. package/dist/mcp/servicenow-machine-learning-mcp.js +2 -2
  27. package/dist/mcp/servicenow-reporting-analytics-mcp.js +1 -1
  28. package/dist/mcp/shared/mcp-types.d.ts +37 -0
  29. package/dist/mcp/shared/mcp-types.js +7 -0
  30. package/dist/mcp/shared/response-limiter.js +1 -1
  31. package/dist/memory/hierarchical-memory-system.d.ts +42 -0
  32. package/dist/memory/hierarchical-memory-system.js +60 -0
  33. package/dist/memory/memory-system.d.ts +34 -0
  34. package/dist/memory/memory-system.js +36 -0
  35. package/dist/memory/snow-flow-memory-patterns.d.ts +47 -28
  36. package/dist/memory/snow-flow-memory-patterns.js +46 -25
  37. package/dist/session/store.d.ts +47 -0
  38. package/dist/session/store.js +74 -0
  39. package/dist/snow-flow-system.js +0 -1
  40. package/dist/testing/integration-test-suite.js +0 -1
  41. package/dist/utils/artifact-local-sync.js +17 -0
  42. package/dist/utils/artifact-sync/artifact-registry.js +11 -11
  43. package/dist/utils/chunking-manager.d.ts +39 -0
  44. package/dist/utils/chunking-manager.js +143 -0
  45. package/dist/utils/smart-field-fetcher.js +11 -9
  46. package/package.json +3 -3
  47. package/website/Dockerfile +3 -2
  48. package/website/cloudbuild.yaml +4 -3
  49. package/website/complete-mcp-reference.html +1040 -0
  50. package/website/components/hero/Hero.html +9 -9
  51. package/website/components/hero/Hero.jsx +3 -3
  52. package/website/css/button-contrast-fixes.css +133 -0
  53. package/website/css/button-fixes.css +49 -0
  54. package/website/css/enterprise-section-update.css +38 -0
  55. package/website/css/font-standardization.css +54 -0
  56. package/website/css/footer-hero-styling.css +73 -0
  57. package/website/css/hero-compact-spacing.css +60 -0
  58. package/website/css/hero-contrast-fixes.css +195 -0
  59. package/website/css/hero-inspired-design.css +135 -0
  60. package/website/css/hero-size-optimization.css +146 -0
  61. package/website/css/hero-spacing-improvements.css +139 -0
  62. package/website/css/hero-stats-visibility.css +98 -0
  63. package/website/css/mobile-hero-fix.css +215 -0
  64. package/website/css/navbar-hero-styling.css +70 -0
  65. package/website/css/reference-text-contrast.css +101 -0
  66. package/website/css/scroll-overlap-nuclear-fix.css +127 -0
  67. package/website/css/section-layering-fix.css +85 -0
  68. package/website/css/style.css +37 -10
  69. package/website/css/title-layout-fix.css +58 -0
  70. package/website/css/ultimate-overlap-fix.css +101 -0
  71. package/website/css/website-hero-consistency.css +101 -0
  72. package/website/enterprise-features.html +147 -0
  73. package/website/index.html +268 -43
  74. package/website/js/animations.js +20 -23
  75. package/website/js/main.js +73 -7
  76. package/website/mcp-reference-link.html +16 -0
  77. package/website/mcp-servers.html +2 -2
  78. package/website/tools.js +125 -6
  79. package/website/what-is-snow-flow-section.html +142 -0
  80. package/assets/logo.txt +0 -8
  81. package/assets/snow-flow-logo.svg +0 -51
package/README.md CHANGED
@@ -1,635 +1,267 @@
1
- <div align="center">
2
- <img src="assets/snow-flow-logo.svg" alt="Snow-Flow Logo" width="200" height="200">
3
-
4
- # ❄️ Snow-Flow v3.6.25 ❄️
5
-
6
- <p align="center">
7
- <strong>🚀 Revolutionary ServiceNow Development Framework with AI-Powered Automation</strong>
8
- </p>
9
-
10
- <p align="center">
11
- <a href="https://www.npmjs.com/package/snow-flow"><img src="https://img.shields.io/npm/v/snow-flow.svg?style=for-the-badge&logo=npm&color=CB3837" alt="npm version"></a>
12
- <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge" alt="License: MIT"></a>
13
- <a href="https://nodejs.org"><img src="https://img.shields.io/node/v/snow-flow.svg?style=for-the-badge&logo=node.js&color=339933" alt="Node.js Version"></a>
14
- <a href="https://github.com/groeimetai/snow-flow"><img src="https://img.shields.io/github/stars/groeimetai/snow-flow?style=for-the-badge&logo=github" alt="GitHub Stars"></a>
15
- </p>
16
-
17
- <p align="center">
18
- <strong>18 MCP Servers</strong> • <strong>200+ Specialized Tools</strong> • <strong>100% Real Implementation</strong>
19
- </p>
20
- </div>
1
+ # 🏔️ Snow-Flow
21
2
 
22
- ---
3
+ **Conversational ServiceNow Development Platform**
4
+
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
6
+ [![Node.js](https://img.shields.io/node/v/snow-flow.svg?style=for-the-badge&logo=node.js&color=339933)](https://nodejs.org)
23
7
 
24
- ## 🎉 What's New in v3.6.25
25
-
26
- <div align="center">
27
- <table>
28
- <tr>
29
- <td align="center" width="50%">
30
- <h3>🚀 Major Features</h3>
31
- <ul align="left">
32
- <li><strong>Catalog UI Policy Deployment</strong><br/>Deploy via unified <code>snow_deploy</code> tool</li>
33
- <li><strong>Knowledge Base Verification</strong><br/>Prevents orphaned articles with strict validation</li>
34
- <li><strong>Catalog Variable Table Fix</strong><br/>Variables now use correct <code>item_option_new</code></li>
35
- <li><strong>Enhanced UI Policy Debugging</strong><br/>Comprehensive reference field debugging</li>
36
- <li><strong>18th MCP Server</strong><br/>Local Development Server for artifact syncing</li>
37
- </ul>
38
- </td>
39
- <td align="center" width="50%">
40
- <h3>🔧 Critical Fixes</h3>
41
- <ul align="left">
42
- <li>✅ Catalog variables now visible in ServiceNow</li>
43
- <li>✅ UI policy actions reference fields fixed</li>
44
- <li>✅ Non-existent KB error handling added</li>
45
- <li>✅ MCP transport 3x faster operations</li>
46
- <li>✅ Widget coherence validation improved</li>
47
- </ul>
48
- </td>
49
- </tr>
50
- </table>
51
- </div>
52
-
53
- ## 📚 Table of Contents
54
-
55
- <table>
56
- <tr>
57
- <td><a href="#-quick-start">⚡ Quick Start</a></td>
58
- <td><a href="#-installation">📦 Installation</a></td>
59
- <td><a href="#️-configuration">⚙️ Configuration</a></td>
60
- <td><a href="#-claude-code-setup">🤖 Claude Code Setup</a></td>
61
- </tr>
62
- <tr>
63
- <td><a href="#️-mcp-servers">🖥️ MCP Servers</a></td>
64
- <td><a href="#-usage-examples">💡 Usage Examples</a></td>
65
- <td><a href="#-commands">🔧 Commands</a></td>
66
- <td><a href="#️-troubleshooting">🛠️ Troubleshooting</a></td>
67
- </tr>
68
- </table>
8
+ **Talk to your ServiceNow instance through Claude Code • 20+ MCP Servers • 200+ ServiceNow Tools • Multi-Agent Orchestration**
69
9
 
70
10
  ---
71
11
 
72
- ## Quick Start
12
+ ## What is Snow-Flow?
73
13
 
74
- ```bash
75
- # Install Snow-Flow globally
76
- npm install -g snow-flow
14
+ Snow-Flow is a conversational ServiceNow development platform that bridges Claude Code with ServiceNow through specialized MCP (Model Context Protocol) servers. Instead of navigating ServiceNow's web interface, you develop through natural conversation with Claude Code, which orchestrates multi-agent workflows to handle complex ServiceNow operations.
77
15
 
78
- # Initialize in your project
79
- snow-flow init
16
+ ### Core Architecture
80
17
 
81
- # Configure your ServiceNow instance
82
- # Edit .env with your credentials
18
+ - **Multi-Agent Orchestration**: Specialized agents coordinate parallel ServiceNow operations
19
+ - **MCP Server Integration**: 20+ servers provide direct ServiceNow API access through Claude Code
20
+ - **Local Development Bridge**: Edit ServiceNow artifacts locally with native development tools
21
+ - **Machine Learning**: TensorFlow.js neural networks for ServiceNow data analysis
22
+ - **Conversational Interface**: Develop ServiceNow solutions through natural language
83
23
 
84
- # Start using with Claude Code!
85
- ```
24
+ ### Key Capabilities
86
25
 
87
- ## 📦 Installation
26
+ - **Universal ServiceNow Operations**: Query any table, manage incidents, deploy widgets
27
+ - **Local Artifact Editing**: Pull ServiceNow artifacts to local files, edit with native tools, push back
28
+ - **Multi-Agent Coordination**: Complex tasks handled by coordinated specialist agents
29
+ - **Real Machine Learning**: Neural networks for incident classification and anomaly detection
30
+ - **Comprehensive API Coverage**: 200+ tools across all major ServiceNow modules
88
31
 
89
- <div align="center">
90
- <h3>📋 Prerequisites</h3>
91
- <table>
92
- <tr>
93
- <td align="center">🟢 Node.js 18+</td>
94
- <td align="center">📦 npm 9+</td>
95
- <td align="center">☁️ ServiceNow Instance</td>
96
- <td align="center">🤖 Claude Code Desktop</td>
97
- </tr>
98
- </table>
99
- </div>
32
+ ## Quick Start
100
33
 
101
- ### Install from NPM
34
+ ### Installation
102
35
 
103
36
  ```bash
104
- # Install globally
105
37
  npm install -g snow-flow
106
-
107
- # Verify installation
108
- snow-flow --version
109
38
  ```
110
39
 
111
- ### Install from Source
40
+ ### Basic Usage
112
41
 
113
42
  ```bash
114
- # Clone repository
115
- git clone https://github.com/groeimetai/snow-flow.git
116
- cd snow-flow
117
-
118
- # Install dependencies
119
- npm install
43
+ # Initialize configuration
44
+ snow-flow init
120
45
 
121
- # Build project
122
- npm run build
46
+ # Create a ServiceNow widget with AI agents
47
+ snow-flow swarm "create incident dashboard widget with real-time charts" --max-agents 3
123
48
 
124
- # Link globally (optional)
125
- npm link
49
+ # Deploy and test
50
+ snow-flow deploy
126
51
  ```
127
52
 
128
- ## ⚙️ Configuration
129
-
130
- ### Step 1: Initialize Snow-Flow
53
+ ### Authentication
131
54
 
132
55
  ```bash
133
- # Create project directory
134
- mkdir my-servicenow-project
135
- cd my-servicenow-project
56
+ # Authenticate with ServiceNow
57
+ snow-flow auth login
136
58
 
137
- # Initialize Snow-Flow
138
- snow-flow init
59
+ # Verify connection
60
+ snow-flow auth status
139
61
  ```
140
62
 
141
- <details>
142
- <summary><strong>📁 Created Files & Directories</strong></summary>
63
+ ## Core Features
143
64
 
144
- | File/Directory | Purpose |
145
- |----------------|----------|
146
- | `.env` | ServiceNow credentials |
147
- | `.snow-flow/` | Configuration directory |
148
- | `.claude/` | MCP server configurations |
149
- | `CLAUDE.md` | Comprehensive documentation |
150
- | `.mcp.json` | MCP server registry |
65
+ ### 🤖 Intelligent Agent Coordination
151
66
 
152
- </details>
67
+ Snow-Flow's Queen Agent makes strategic decisions about task execution:
68
+ - **Solo Mode**: Simple tasks handled directly
69
+ - **Team Mode**: Complex tasks spawn specialized agent teams
70
+ - **Parallel Execution**: Multiple agents work simultaneously for maximum speed
153
71
 
154
- ### Step 2: Configure ServiceNow Credentials
72
+ **Available Agent Types:**
73
+ - `widget-creator` - Service Portal widget development
74
+ - `security-specialist` - ACL and compliance validation
75
+ - `ml-specialist` - Machine learning model training
76
+ - `performance-optimizer` - Code and query optimization
77
+ - `integration-specialist` - REST/SOAP integrations
155
78
 
156
- Edit the `.env` file with your ServiceNow instance details:
79
+ ### Machine Learning Integration
157
80
 
158
- ```env
159
- # ServiceNow Instance Configuration
160
- SNOW_INSTANCE=your-instance.service-now.com
161
- SNOW_USERNAME=admin.username
162
- SNOW_PASSWORD=admin.password
81
+ Snow-Flow includes TensorFlow.js neural networks for ServiceNow data analysis:
82
+
83
+ ```bash
84
+ # Train incident classifier using ServiceNow data
85
+ snow-flow ml train-classifier --table incident --features "short_description,category"
86
+
87
+ # Predict change risks based on historical data
88
+ snow-flow ml predict-risk --change-id CHG0000123
163
89
 
164
- # OAuth Configuration (recommended for production)
165
- SNOW_CLIENT_ID=your-oauth-client-id
166
- SNOW_CLIENT_SECRET=your-oauth-client-secret
90
+ # Detect anomalies in ServiceNow data patterns
91
+ snow-flow ml detect-anomalies --monitor incidents
167
92
  ```
168
93
 
169
- ### Step 3: Verify Configuration
94
+ **ML Capabilities:**
95
+ - **Incident Classification**: LSTM networks for categorizing incidents
96
+ - **Change Risk Assessment**: Neural networks for change management
97
+ - **Anomaly Detection**: Autoencoder models for identifying unusual patterns
98
+ - **Time Series Analysis**: Forecasting for ServiceNow metrics
170
99
 
171
- ```bash
172
- # Test connection
173
- snow-flow test-connection
100
+ ### MCP Server Architecture
174
101
 
175
- # Check MCP server status
176
- snow-flow mcp status
177
- ```
102
+ **20+ Specialized MCP Servers:**
103
+ - **Operations**: Universal queries, incident management, CMDB search
104
+ - **Local Development**: Pull/push ServiceNow artifacts for local editing
105
+ - **Deployment**: Widget and artifact deployment with validation
106
+ - **Machine Learning**: TensorFlow.js neural network training and inference
107
+ - **Security & Compliance**: Automated security scanning and compliance checks
108
+ - **Integration**: REST/SOAP endpoints, transform maps, import sets
109
+ - **Advanced Features**: Process mining, batch operations, analytics
178
110
 
179
- ## 🤖 Claude Code Setup
111
+ **Essential Tools:**
112
+ - `snow_query_table` - Query any ServiceNow table with flexible filtering
113
+ - `snow_pull_artifact` - Pull ServiceNow artifacts to local files for editing
114
+ - `snow_deploy` - Deploy widgets and artifacts with coherence validation
115
+ - `ml_train_incident_classifier` - Train neural networks on ServiceNow data
116
+ - `snow_execute_script_with_output` - Execute ServiceNow background scripts
180
117
 
181
- ### Fix Permission Errors
118
+ ### Local Development Workflow
182
119
 
183
- **IMPORTANT:** If you encounter "dangerously skip permissions" errors in Claude Code, you must first authenticate with Claude:
120
+ Snow-Flow bridges ServiceNow with local development tools:
184
121
 
185
122
  ```bash
186
- # 1. First, login to Claude (required for MCP servers to work)
187
- claude login
123
+ # Pull any ServiceNow artifact to local files
124
+ snow_pull_artifact({ sys_id: 'widget_sys_id', table: 'sp_widget' })
125
+
126
+ # Edit locally using Claude Code's native file tools:
127
+ # - Full search and replace across all files
128
+ # - Multi-file editing and refactoring
129
+ # - Git integration and version control
130
+ # - Advanced code navigation
188
131
 
189
- # 2. Then start Claude Code with MCP servers
190
- claude --mcp-config .claude/claude_desktop_config.json
132
+ # Push changes back with validation
133
+ snow_push_artifact({ sys_id: 'widget_sys_id' })
191
134
  ```
192
135
 
193
- The `claude login` step is crucial - without it, MCP servers cannot authenticate with ServiceNow.
136
+ **Local Development Features:**
137
+ - **Native Editing**: Use Claude Code's full editing capabilities
138
+ - **File-based Development**: Work with ServiceNow artifacts as local files
139
+ - **Validation**: Coherence checking before pushing back to ServiceNow
140
+ - **Version Control**: Integrate with Git workflows
141
+ - **Multi-artifact Support**: Widgets, scripts, flows, and more
194
142
 
195
- ### Automatic MCP Server Activation
143
+ ## Architecture
196
144
 
197
- During `snow-flow init`, you'll be prompted to automatically activate all MCP servers:
145
+ ### Multi-Agent Coordination
198
146
 
199
- ```bash
200
- 🚀 Would you like to start Claude Code with MCP servers? (Y/n)
147
+ ```
148
+ Queen Agent (Coordinator)
149
+ ├── Widget Creator Agent
150
+ ├── Security Specialist Agent
151
+ ├── ML Specialist Agent
152
+ └── Performance Optimizer Agent
201
153
  ```
202
154
 
203
- Selecting **Y** will:
204
- - Configure all 18 MCP servers
205
- - Auto-approve server permissions
206
- - Launch Claude Code with servers ready
207
-
208
- ### Manual MCP Server Activation
155
+ ### MCP Server Integration
209
156
 
210
- If you need to manually activate MCP servers:
157
+ Snow-Flow integrates 16 specialized MCP servers:
158
+ - **Core**: Operations, deployment, automation
159
+ - **Platform**: Development, integration, properties
160
+ - **Intelligence**: Machine learning, analytics, security
161
+ - **Enterprise**: Compliance, reporting, knowledge management
211
162
 
212
- ```bash
213
- # Mac/Linux
214
- claude --mcp-config .claude/claude_desktop_config.json
163
+ ## Examples
215
164
 
216
- # Windows
217
- claude.exe --mcp-config .claude/claude_desktop_config.json
218
- ```
165
+ ### Widget Development
219
166
 
220
- ## 🖥️ MCP Servers
221
-
222
- <div align="center">
223
- <h3>🎯 18 Specialized MCP Servers • 200+ Tools • Complete ServiceNow Coverage</h3>
224
- </div>
225
-
226
- <details>
227
- <summary><strong>🚀 Click to see all 18 MCP Servers and their capabilities</strong></summary>
228
-
229
- ### 1️⃣ **Deployment Server** (10 tools)
230
- 🎯 **Purpose:** Widget and artifact deployment with coherence validation
231
-
232
- | Tool | Description |
233
- |------|-------------|
234
- | `snow_deploy` | Create new artifacts with support for 15+ types including `catalog_ui_policy` |
235
- | `snow_update` | Update existing artifacts with validation |
236
- | `snow_delete` | Delete artifacts safely |
237
- | `snow_validate_deployment` | Pre-deployment validation |
238
- | `snow_rollback_deployment` | Rollback failed deployments |
239
- | `snow_preview_widget` | Preview widget before deployment |
240
- | `snow_widget_test` | Test widget functionality |
241
- | `snow_deployment_status` | Get deployment status |
242
- | `snow_deployment_debug` | Debug deployment issues |
243
-
244
- ### 2️⃣ **Operations Server** (15+ tools)
245
- 🎯 **Purpose:** Core ServiceNow operations and queries
246
-
247
- | Tool | Description |
248
- |------|-------------|
249
- | `snow_query_table` | Universal table querying with pagination |
250
- | `snow_create_incident` | Create and manage incidents |
251
- | `snow_update_record` | Update any table record |
252
- | `snow_delete_record` | Delete records with validation |
253
- | `snow_discover_table_fields` | Discover table schema |
254
- | `snow_cmdb_search` | Search Configuration Management Database |
255
- | `snow_user_lookup` | Find users and groups |
256
- | `snow_operational_metrics` | Get operational metrics |
257
- | `snow_knowledge_search` | Search knowledge base |
258
-
259
- ### 3️⃣ **Automation Server** (20+ tools)
260
- 🎯 **Purpose:** Script execution and automation
261
-
262
- | Tool | Description |
263
- |------|-------------|
264
- | `snow_execute_script_with_output` | Execute scripts with full output capture |
265
- | `snow_execute_background_script` | Execute background scripts with autoConfirm option |
266
- | `snow_get_script_output` | Retrieve script execution history |
267
- | `snow_get_logs` | Access system logs |
268
- | `snow_test_rest_connection` | Test REST integrations |
269
- | `snow_trace_execution` | Trace script execution |
270
- | `snow_schedule_job` | Create scheduled jobs |
271
- | `snow_create_event` | Trigger system events |
272
-
273
- ### 4️⃣ **Platform Development Server** (12+ tools)
274
- 🎯 **Purpose:** Platform development artifacts
275
-
276
- | Tool | Description |
277
- |------|-------------|
278
- | `snow_create_script_include` | Create reusable scripts |
279
- | `snow_create_business_rule` | Create business rules |
280
- | `snow_create_client_script` | Create client-side scripts |
281
- | `snow_create_ui_policy` | Create UI policies |
282
- | `snow_create_ui_action` | Create UI actions |
283
- | `snow_create_ui_page` | Create UI pages |
284
-
285
- ### 5️⃣ **Integration Server** (10+ tools)
286
- 🎯 **Purpose:** Integration and data management
287
-
288
- | Tool | Description |
289
- |------|-------------|
290
- | `snow_create_rest_message` | Create REST integrations |
291
- | `snow_create_transform_map` | Create data transformation maps |
292
- | `snow_create_import_set` | Manage import sets |
293
- | `snow_test_web_service` | Test web services |
294
- | `snow_configure_email` | Configure email settings |
295
-
296
- ### 6️⃣ **System Properties Server** (12 tools)
297
- 🎯 **Purpose:** System property management
298
-
299
- | Tool | Description |
300
- |------|-------------|
301
- | `snow_property_get` | Retrieve property values |
302
- | `snow_property_set` | Set property values |
303
- | `snow_property_list` | List properties by pattern |
304
- | `snow_property_delete` | Remove properties |
305
- | `snow_property_bulk_update` | Bulk operations |
306
- | `snow_property_export` | Export to JSON |
307
- | `snow_property_import` | Import from JSON |
308
-
309
- ### 7️⃣ **Update Set Server** (6 tools)
310
- 🎯 **Purpose:** Change management and deployment
311
-
312
- | Tool | Description |
313
- |------|-------------|
314
- | `snow_update_set_create` | Create new update sets |
315
- | `snow_update_set_switch` | Switch active update set |
316
- | `snow_update_set_complete` | Mark as complete |
317
- | `snow_update_set_export` | Export as XML |
318
- | `snow_ensure_active_update_set` | Ensure update set is active |
319
-
320
- ### 8️⃣ **Development Assistant Server** (8+ tools)
321
- 🎯 **Purpose:** Intelligent artifact search and management
322
-
323
- | Tool | Description |
324
- |------|-------------|
325
- | `snow_find_artifact` | Find any ServiceNow artifact |
326
- | `snow_edit_artifact` | Edit existing artifacts |
327
- | `snow_get_by_sysid` | Get artifact by sys_id |
328
- | `snow_analyze_artifact` | Analyze dependencies |
329
- | `snow_comprehensive_search` | Deep search across tables |
330
-
331
- ### 9️⃣ **Security & Compliance Server** (10+ tools)
332
- 🎯 **Purpose:** Security and compliance management
333
-
334
- | Tool | Description |
335
- |------|-------------|
336
- | `snow_create_security_policy` | Create security policies |
337
- | `snow_audit_compliance` | Compliance auditing |
338
- | `snow_scan_vulnerabilities` | Vulnerability scanning |
339
- | `snow_review_access_control` | ACL review |
340
-
341
- ### 🔟 **Reporting & Analytics Server** (10+ tools)
342
- 🎯 **Purpose:** Reporting and data visualization
343
-
344
- | Tool | Description |
345
- |------|-------------|
346
- | `snow_create_report` | Create reports |
347
- | `snow_create_dashboard` | Create dashboards |
348
- | `snow_define_kpi` | Define KPIs |
349
- | `snow_schedule_report` | Schedule report delivery |
350
-
351
- ### 1️⃣1️⃣ **Machine Learning Server** (10+ tools)
352
- 🎯 **Purpose:** AI/ML capabilities with TensorFlow.js
353
-
354
- | Tool | Description |
355
- |------|-------------|
356
- | `ml_train_incident_classifier` | Train incident classifier |
357
- | `ml_predict_change_risk` | Predict change risks |
358
- | `ml_detect_anomalies` | Anomaly detection |
359
- | `ml_forecast_incidents` | Incident forecasting |
360
-
361
- ### 1️⃣2️⃣ **Knowledge & Catalog Server** (15+ tools)
362
- 🎯 **Purpose:** Knowledge base and service catalog management
363
-
364
- | Tool | Description |
365
- |------|-------------|
366
- | `snow_create_knowledge_article` | Create knowledge articles with KB validation |
367
- | `snow_search_knowledge` | Search knowledge base |
368
- | `snow_create_catalog_item` | Create catalog items |
369
- | `snow_create_catalog_variable` | Create catalog variables in correct table |
370
- | `snow_create_catalog_ui_policy` | Create UI policies with full support |
371
- | `snow_order_catalog_item` | Order catalog items |
372
-
373
- ### 1️⃣3️⃣ **Change, Virtual Agent & PA Server** (15+ tools)
374
- 🎯 **Purpose:** Change management, Virtual Agent, and Performance Analytics
375
-
376
- | Tool | Description |
377
- |------|-------------|
378
- | `snow_create_change_request` | Create change requests |
379
- | `snow_schedule_cab_meeting` | Schedule CAB meetings |
380
- | `snow_create_va_topic` | Create Virtual Agent topics |
381
- | `snow_create_pa_indicator` | Create PA indicators |
382
-
383
- ### 1️⃣4️⃣ **Flow, Workspace & Mobile Server** (12+ tools)
384
- 🎯 **Purpose:** Flow Designer, Workspace, and Mobile management
385
-
386
- | Tool | Description |
387
- |------|-------------|
388
- | `snow_list_flows` | List Flow Designer flows |
389
- | `snow_execute_flow` | Execute flows programmatically |
390
- | `snow_create_workspace` | Create workspaces |
391
- | `snow_configure_mobile_app` | Configure mobile app |
392
-
393
- ### 1️⃣5️⃣ **CMDB, Event, HR, CSM & DevOps Server** (20+ tools)
394
- 🎯 **Purpose:** CMDB, Events, HR, Customer Service, DevOps
395
-
396
- | Tool | Description |
397
- |------|-------------|
398
- | `snow_create_ci` | Create Configuration Items |
399
- | `snow_create_event` | Create events |
400
- | `snow_create_hr_case` | Create HR cases |
401
- | `snow_create_customer_case` | Create customer cases |
402
- | `snow_create_devops_pipeline` | Create DevOps pipelines |
403
-
404
- ### 1️⃣6️⃣ **Advanced Features Server** (15+ tools)
405
- 🎯 **Purpose:** Advanced optimization and analysis
406
-
407
- | Tool | Description |
408
- |------|-------------|
409
- | `snow_batch_api` | Batch API operations (80% reduction) |
410
- | `snow_analyze_query` | Query optimization |
411
- | `snow_detect_code_patterns` | Code pattern detection |
412
- | `snow_generate_documentation` | Auto-documentation |
413
-
414
- ### 1️⃣7️⃣ **Local Development Server** (10+ tools)
415
- 🎯 **Purpose:** Bridge between ServiceNow and Claude Code
416
-
417
- | Tool | Description |
418
- |------|-------------|
419
- | `snow_pull_artifact` | Pull artifacts to local files |
420
- | `snow_push_artifact` | Push changes back with validation |
421
- | `snow_validate_artifact_coherence` | Validate relationships |
422
- | `snow_convert_to_es5` | Convert modern JS to ES5 |
423
-
424
- ### 1️⃣8️⃣ **Snow-Flow Orchestration Server** (8 tools)
425
- 🎯 **Purpose:** Multi-agent coordination and task management
426
-
427
- | Tool | Description |
428
- |------|-------------|
429
- | `swarm_init` | Initialize agent swarms |
430
- | `agent_spawn` | Create specialized agents |
431
- | `task_orchestrate` | Orchestrate complex tasks |
432
- | `memory_search` | Search persistent memory |
433
- | `neural_train` | Train neural networks (TensorFlow.js) |
434
- | `performance_report` | Generate performance reports |
435
-
436
- </details>
437
-
438
- ## 💡 Usage Examples
439
-
440
- ### 🔍 Basic Queries
441
-
442
- ```javascript
443
- // Query any table
444
- await snow_query_table({
445
- table: 'incident',
446
- query: 'active=true^priority=1',
447
- fields: ['number', 'short_description', 'assigned_to'],
448
- limit: 10
449
- });
450
-
451
- // Find users
452
- await snow_user_lookup({
453
- name: 'John Doe',
454
- include_groups: true
455
- });
167
+ ```bash
168
+ # Create a complete incident dashboard
169
+ snow-flow swarm "create incident dashboard with:
170
+ - Real-time incident counts by priority
171
+ - ML-powered trend analysis
172
+ - Interactive charts and filtering
173
+ - Mobile-responsive design" --max-agents 4
456
174
  ```
457
175
 
458
- ### 🎯 Widget Deployment
459
-
460
- ```javascript
461
- // Deploy new widget
462
- await snow_deploy({
463
- type: 'widget',
464
- config: {
465
- name: 'my_dashboard',
466
- title: 'My Dashboard',
467
- template: '<div>{{data.message}}</div>',
468
- server_script: 'data.message = "Hello World";',
469
- client_script: 'function($scope) { var c = this; }'
470
- }
471
- });
472
- ```
176
+ ### Process Mining
473
177
 
474
- ### 📦 Script Execution
475
-
476
- ```javascript
477
- // Execute script with output capture
478
- await snow_execute_script_with_output({
479
- script: `
480
- var count = new GlideAggregate('incident');
481
- count.addQuery('active', true);
482
- count.query();
483
- if (count.next()) {
484
- gs.info('Active incidents: ' + count.getAggregate('COUNT'));
485
- }
486
- `
487
- });
178
+ ```bash
179
+ # Discover and optimize incident management process
180
+ snow-flow analyze process incident_management --optimize --ml-insights
488
181
  ```
489
182
 
490
- ### 📖 Knowledge Management
183
+ ### Security Automation
491
184
 
492
- ```javascript
493
- // Create knowledge article with KB validation
494
- await snow_create_knowledge_article({
495
- kb_knowledge_base: 'IT Knowledge Base',
496
- short_description: 'How to reset password',
497
- text: 'Step-by-step guide...',
498
- keywords: ['password', 'reset', 'security']
499
- });
185
+ ```bash
186
+ # Automated compliance audit
187
+ snow-flow audit compliance --framework SOX --auto-remediation
500
188
  ```
501
189
 
502
- ### 🛒 Catalog Management
503
-
504
- ```javascript
505
- // Create catalog item with variables
506
- await snow_create_catalog_item({
507
- name: 'New Laptop Request',
508
- category: 'Hardware',
509
- short_description: 'Request a new laptop'
510
- });
511
-
512
- // Create catalog UI policy
513
- await snow_deploy({
514
- type: 'catalog_ui_policy',
515
- config: {
516
- catalog_item: 'item_sys_id',
517
- short_description: 'Manager Approval Required',
518
- conditions: [{
519
- catalog_variable: 'cost',
520
- operation: 'greater_than',
521
- value: '1000'
522
- }],
523
- actions: [{
524
- catalog_variable: 'manager_approval',
525
- type: 'set_mandatory',
526
- mandatory: true
527
- }]
190
+ ## Configuration
191
+
192
+ ### Basic Configuration
193
+
194
+ Snow-Flow configuration is stored in `snow-flow.config.json`:
195
+
196
+ ```json
197
+ {
198
+ "servicenow": {
199
+ "instance": "your-instance.service-now.com",
200
+ "authentication": "oauth"
201
+ },
202
+ "agents": {
203
+ "maxConcurrent": 5,
204
+ "defaultStrategy": "parallel"
205
+ },
206
+ "ml": {
207
+ "enableTraining": true,
208
+ "modelStorage": "local"
528
209
  }
529
- });
210
+ }
530
211
  ```
531
212
 
532
- ## 🔧 Commands
213
+ ### Environment Variables
533
214
 
534
- <details>
535
- <summary><strong>🚀 Core System Commands</strong></summary>
215
+ ```bash
216
+ # ServiceNow instance
217
+ SNOW_INSTANCE=your-instance.service-now.com
536
218
 
537
- ### Core System
538
- - `snow-flow start` - Start orchestration system
539
- - `snow-flow status` - Show comprehensive system status
540
- - `snow-flow monitor` - Real-time monitoring dashboard
541
- - `snow-flow test-connection` - Test ServiceNow connection
219
+ # OAuth credentials
220
+ SNOW_CLIENT_ID=your-client-id
221
+ SNOW_CLIENT_SECRET=your-client-secret
542
222
 
543
- ### MCP Management
544
- - `snow-flow mcp start` - Start MCP servers
545
- - `snow-flow mcp status` - Show MCP server status
546
- - `snow-flow mcp tools` - List available MCP tools
223
+ # Optional: AI provider settings
224
+ AI_PROVIDER=claude # or openai, gemini
225
+ ```
547
226
 
548
- ### Configuration
549
- - `snow-flow init` - Initialize Snow-Flow project
550
- - `snow-flow config show` - Show current configuration
551
- - `snow-flow config set <key> <value>` - Set configuration value
227
+ ## Use Cases
552
228
 
553
- ### Development
554
- - `snow-flow agent spawn <type>` - Create AI agents
555
- - `snow-flow task create` - Create tasks
556
- - `snow-flow memory store <key> <data>` - Store persistent data
229
+ ### Development Teams
230
+ - **Conversational Development**: Build ServiceNow solutions through natural language
231
+ - **Local Tool Integration**: Use familiar development environments
232
+ - **Multi-agent Coordination**: Complex tasks handled by specialized agents
233
+ - **Real-time Validation**: Immediate feedback on ServiceNow artifacts
557
234
 
558
- ### Orchestration
559
- - `snow-flow swarm "<objective>"` - Multi-agent coordination
560
- - `snow-flow sparc "<task>"` - SPARC mode orchestration
561
- - `snow-flow sparc tdd "<feature>"` - Test-driven development
235
+ ### ServiceNow Administrators
236
+ - **Universal Operations**: Query and manage any ServiceNow table or process
237
+ - **Automated Analysis**: ML-powered insights from ServiceNow data
238
+ - **Batch Operations**: Handle large-scale ServiceNow operations efficiently
239
+ - **Process Intelligence**: Understand ServiceNow workflows through data analysis
562
240
 
563
- </details>
241
+ ### Solution Architects
242
+ - **Conversational Architecture**: Design ServiceNow solutions through discussion with Claude
243
+ - **Pattern Recognition**: Identify and apply ServiceNow best practices automatically
244
+ - **Cross-module Integration**: Coordinate development across ServiceNow modules
245
+ - **Risk Assessment**: Analyze impact of changes before implementation
564
246
 
565
- ## 🛠️ Troubleshooting
247
+ ## Requirements
566
248
 
567
- <details>
568
- <summary><strong>🆘 Common Issues & Solutions</strong></summary>
249
+ - **Node.js**: 18.0.0 or higher
250
+ - **ServiceNow**: Any supported version
251
+ - **Memory**: 4GB RAM recommended for ML training
252
+ - **Storage**: 1GB free space for models and artifacts
569
253
 
570
- ### Common Issues
254
+ ## Support
571
255
 
572
- **Permission Errors**
573
- ```bash
574
- Error: "dangerously skip permissions"
575
- Solution: Run 'claude login' before starting Claude Code
576
- ```
256
+ - **Documentation**: Comprehensive guides included
257
+ - **GitHub**: https://github.com/groeimetai/snow-flow
258
+ - **NPM**: https://www.npmjs.com/package/snow-flow
259
+ - **Issues**: Bug reports and feature requests welcome
577
260
 
578
- **Connection Failed**
579
- ```bash
580
- Error: "Unable to connect to ServiceNow"
581
- Solution: Check .env credentials and instance URL
582
- ```
261
+ ## License
583
262
 
584
- **MCP Server Not Found**
585
- ```bash
586
- Error: "MCP server not responding"
587
- Solution: Restart Claude Code with --mcp-config flag
588
- ```
263
+ MIT License - see [LICENSE](LICENSE) file for details.
589
264
 
590
- **Large Widget Errors**
591
- ```bash
592
- Error: "Content exceeds maximum allowed tokens"
593
- Solution: Use snow_pull_artifact instead of snow_query_table
594
- ```
265
+ ---
595
266
 
596
- ### Debugging Tips
597
-
598
- 1. **Check Logs**
599
- ```bash
600
- # View MCP server logs
601
- tail -f .snow-flow/logs/mcp-*.log
602
- ```
603
-
604
- 2. **Test Connection**
605
- ```bash
606
- # Verify ServiceNow connectivity
607
- snow-flow test-connection
608
- ```
609
-
610
- 3. **Validate Configuration**
611
- ```bash
612
- # Check all settings
613
- snow-flow config validate
614
- ```
615
-
616
- ### Getting Help
617
-
618
- - GitHub Issues: [https://github.com/groeimetai/snow-flow/issues](https://github.com/groeimetai/snow-flow/issues)
619
- - Documentation: Run `snow-flow --help`
620
- - MCP Server Logs: Check `.snow-flow/logs/`
621
-
622
- </details>
623
-
624
- ## 📄 License
625
-
626
- <div align="center">
627
- <p>MIT License. See <a href="LICENSE">LICENSE</a> file for details.</p>
628
- <p>Made with ❤️ by the Snow-Flow Team</p>
629
- <br/>
630
- <p>
631
- <a href="https://github.com/groeimetai/snow-flow">GitHub</a> •
632
- <a href="https://www.npmjs.com/package/snow-flow">NPM</a> •
633
- <a href="https://groeimetai.github.io/snow-flow/">Documentation</a>
634
- </p>
635
- </div>
267
+ **Snow-Flow: Conversational ServiceNow development through Claude Code.**