Package Exports
- snow-flow
- snow-flow/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (snow-flow) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Snow-Flow: Multi-Agent ServiceNow Development Platform đ
Snow-Flow is a powerful multi-agent AI platform that revolutionizes ServiceNow development through intelligent automation, natural language processing, and autonomous deployment capabilities. Built with 11 specialized MCP (Model Context Protocol) servers, Snow-Flow enables developers to create, manage, and deploy ServiceNow artifacts using simple natural language commands.
đ What's New in v1.1.50
đ¯ CRITICAL FIXES - All User Issues Resolved!
- ROOT CAUSE SOLVED: Flow Designer validation failures completely eliminated
- JSON SCHEMA FLEXIBILITY: Accepts both "steps" and "activities" arrays with auto-conversion
- DOCUMENTATION SYNC: Init command now creates comprehensive CLAUDE.md (373 lines vs 15)
- COMPLETE GUIDE: New users get full Snow-Flow development environment from day one
đ§ Intelligent Error Recovery (v1.1.48-1.1.49)
- AUTOMATIC FALLBACKS: Flow Designer â Business Rule conversion when deployment fails
- SMART SESSIONS: Update Sets auto-create when none exist - no more "no active session" errors
- ZERO MANUAL WORK: All systematic errors from user feedback now automatically handled
- COMPREHENSIVE TESTING: Enhanced flow testing with Business Rule fallback detection
đ Enhanced Swarm Command (v1.1.42+)
Most intelligent features are now enabled by default - ÊÊn command voor alles!
- DEFAULT TRUE:
--smart-discovery,--live-testing,--auto-deploy,--auto-rollback,--shared-memory,--progress-monitoring - INTELLIGENT ORCHESTRATION: Uses
snow_orchestrate_developmentMCP tool automatically - NO FLAGS NEEDED: Just run
snow-flow swarm "create widget"and everything works!
đ Real-Time ServiceNow Integration (v1.1.41+)
- LIVE VALIDATION:
snow_validate_live_connection- real-time auth and permission checking - SMART PREVENTION:
snow_discover_existing_flows- prevents duplicate flows - LIVE TESTING:
snow_test_flow_execution- real flow testing in live instances - BATCH VALIDATION:
batch_deployment_validator- comprehensive multi-artifact validation - AUTO ROLLBACK:
deployment_rollback_manager- automatic rollback with backup creation
đ Key Features
đ¤ 11 Specialized MCP Servers
Each server provides autonomous capabilities for different aspects of ServiceNow development:
- Deployment MCP - Autonomous widget, flow, and application deployment
- Flow Composer MCP - Natural language flow creation with intelligent analysis
- Update Set MCP - Professional change tracking and deployment management
- Intelligent MCP - AI-powered artifact discovery and editing
- Graph Memory MCP - Relationship tracking and impact analysis
- Platform Development MCP - Development workflow automation
- Integration MCP - Third-party system integration
- Operations MCP - Operations and monitoring management
- Automation MCP - Workflow and process automation
- Security & Compliance MCP - Security auditing and compliance
- Reporting & Analytics MCP - Data analysis and reporting
đ¯ Core Capabilities
- Natural Language Processing: Create complex ServiceNow artifacts using plain English/Dutch commands
- Intelligent Decision Making: Automatically determines optimal architecture (flow vs subflow)
- Zero Configuration: All values dynamically discovered from your ServiceNow instance
- Autonomous Deployment: Direct deployment to ServiceNow with automatic error handling
- Update Set Management: Professional change tracking like ServiceNow pros use
- Global Scope Strategy: Intelligent scope selection with fallback mechanisms
- Multi-Agent Coordination: Parallel execution for complex tasks
đ Quick Start
Prerequisites
- Node.js 18+ and npm
- ServiceNow instance with admin access
- OAuth application configured in ServiceNow
Installation
# Install Snow-Flow globally
npm install -g snow-flow
# Initialize Snow-Flow in your project directory
snow-flow init --sparcAlternative: Install from source
# Clone the repository
git clone https://github.com/groeimetai/snow-flow.git
cd snow-flow
# Install dependencies
npm install
# Build the project
npm run build
# Link globally (optional)
npm linkConfiguration
- Create a
.envfile in the project root:
SNOW_INSTANCE=your-instance.service-now.com
SNOW_CLIENT_ID=your-oauth-client-id
SNOW_CLIENT_SECRET=your-oauth-client-secret
SNOW_USERNAME=your-username
SNOW_PASSWORD=your-passwordSet up OAuth in ServiceNow (see SERVICENOW-OAUTH-SETUP.md)
Authenticate with ServiceNow:
snow-flow auth loginđ¯ MCP Server Activation (v1.1.25+)
Snow-Flow now includes automatic MCP server activation for Claude Code! During initialization, you'll be prompted to automatically start Claude Code with all 11 MCP servers pre-loaded:
snow-flow init --sparc
# You'll see:
# đ Would you like to start Claude Code with MCP servers automatically? (Y/n)
# Press Y to launch Claude Code with all MCP servers ready to use!The MCP servers are automatically:
- â Configured with correct paths for global npm installations
- â Registered in Claude Code's settings
- â Activated without manual approval steps
- â Ready to use immediately after initialization
If you need to manually activate MCP servers later:
# For Mac/Linux:
claude --mcp-config .mcp.json .
# For Windows:
claude.exe --mcp-config .mcp.json .đĄ Usage Examples
Create a Complex Flow with Natural Language
snow-flow sparc "Create an approval workflow for iPhone 6 orders that notifies managers, creates tasks, and updates inventory"Deploy a Widget Directly to ServiceNow
snow-flow sparc "Create and deploy a widget that shows all critical incidents with real-time updates"Start a Multi-Agent Swarm for Complex Projects
# Most intelligent features are enabled by default!
snow-flow swarm "Build a complete incident management system with dashboard, workflows, and notifications"
# Default settings:
# â
--smart-discovery (true) - Reuses existing artifacts
# â
--live-testing (true) - Tests in real-time
# â
--auto-deploy (true) - Deploys automatically (safe with update sets)
# â
--auto-rollback (true) - Rollbacks on failures
# â
--shared-memory (true) - Agents share context
# â
--progress-monitoring (true) - Real-time status
# Add --auto-permissions to enable automatic permission escalation
snow-flow swarm "Create enterprise workflow" --auto-permissions
# Disable specific features with --no- prefix
snow-flow swarm "Test workflow" --no-auto-deploy --no-live-testingIntelligent Artifact Discovery
snow-flow sparc "Find and modify the approval workflow to add an extra approval step for orders over $1000"Create Flows in Dutch
snow-flow sparc "Maak een flow voor het automatisch toewijzen van incidenten aan de juiste groep op basis van categorie"đ ī¸ Advanced Features
Flow vs Subflow Intelligence
Snow-Flow automatically analyzes your requirements and decides whether to create a main flow or break it into reusable subflows:
- Complexity analysis
- Reusability assessment
- Performance optimization
- Maintainability considerations
Update Set Management
Professional change tracking just like ServiceNow developers use:
# Create a new update set for your feature
snow-flow sparc "Create update set for new approval features"
# All subsequent changes are automatically tracked
snow-flow sparc "Add approval widget to portal"Global Scope Strategy
Intelligent deployment scope selection:
- Automatic permission validation
- Fallback mechanisms for restricted environments
- Environment-aware deployment (dev/test/prod)
Template Matching
Recognizes common patterns and applies best practices:
- Approval workflows
- Fulfillment processes
- Notification systems
- Integration patterns
đ§ New MCP Tools (v1.1.44+)
Catalog Item Search with Fuzzy Matching
Find catalog items even when you don't know the exact name:
// In Claude Code with MCP tools
snow_catalog_item_search({
query: "iPhone", // Finds iPhone 6S, iPhone 7, etc.
fuzzy_match: true, // Intelligent variations
category_filter: "mobile devices",
include_variables: true // Get catalog variables
});Flow Testing with Mock Data
Test flows without affecting production data:
snow_test_flow_with_mock({
flow_id: "equipment_provisioning_flow",
create_test_user: true, // Auto-creates test user
mock_catalog_items: true, // Creates test items
mock_catalog_data: [
{
name: "Test iPhone 6S",
price: "699.00"
}
],
simulate_approvals: true, // Auto-approves
cleanup_after_test: true // Removes test data
});Direct Catalog-Flow Linking
Link catalog items directly to flows for automated fulfillment:
snow_link_catalog_to_flow({
catalog_item_id: "iPhone 6S",
flow_id: "mobile_provisioning_flow",
link_type: "flow_catalog_process", // Modern approach
variable_mapping: [
{
catalog_variable: "phone_model",
flow_input: "device_type"
},
{
catalog_variable: "user_department",
flow_input: "department"
}
],
trigger_condition: 'current.stage == "request_approved"',
execution_options: {
run_as: "system",
wait_for_completion: true
},
test_link: true // Creates test request
});Bulk Deployment
Deploy multiple artifacts in a single transaction:
snow_bulk_deploy({
artifacts: [
{ type: "widget", data: widgetData },
{ type: "flow", data: flowData },
{ type: "script", data: scriptData }
],
transaction_mode: true, // All-or-nothing deployment
parallel: true, // Deploy simultaneously
dry_run: false
});đ Project Structure
snow-flow/
âââ src/
â âââ mcp/ # 11 MCP server implementations
â âââ orchestrator/ # Flow composition and intelligence
â âââ strategies/ # Deployment and scope strategies
â âââ api/ # ServiceNow API integration
â âââ managers/ # Resource and scope management
â âââ utils/ # Utilities and helpers
âââ .snow-flow/ # Snow-Flow configuration
âââ .claude/ # Claude configuration
âââ memory/ # Persistent agent memory
âââ coordination/ # Multi-agent coordinationđ§ Development Commands
# Run tests
npm test
# Run linting
npm run lint
# Type checking
npm run typecheck
# Development mode
npm run dev
# Build for production
npm run buildđ Documentation
- MCP Server Documentation - Detailed info on all 11 MCP servers
- OAuth Setup Guide - ServiceNow OAuth configuration
- Flow Composer Guide - Advanced flow creation
- Update Set Guide - Professional change management
- API Integration Guide - ServiceNow API details
đ¤ Contributing
We welcome contributions! Please see our contributing guidelines (coming soon).
đ Security
- All credentials stored securely in environment variables
- OAuth 2.0 authentication with ServiceNow
- No hardcoded values - everything discovered dynamically
- Secure token management with automatic refresh
đ¯ Use Cases
For ServiceNow Developers
- Rapidly prototype flows and workflows
- Automate repetitive development tasks
- Ensure consistency across implementations
- Reduce development time by 80%
For ServiceNow Architects
- Validate architectural decisions
- Ensure best practices are followed
- Analyze impact of changes
- Optimize performance and maintainability
For ServiceNow Administrators
- Quick deployments and updates
- Professional change tracking
- Automated testing and validation
- Simplified migration between instances
đĻ Roadmap
- Visual flow designer integration
- Enhanced Neo4j graph visualization
- Multi-instance synchronization
- AI-powered code review
- Automated testing framework
- Performance optimization recommendations
đ What's New in v1.1.25
Automatic MCP Server Activation đ¯
- Interactive Prompt: During
snow-flow init --sparc, you're now prompted to automatically start Claude Code with all MCP servers - Zero Manual Steps: No more manual MCP approval in Claude Code - servers load automatically using
claude --mcp-config - Cross-Platform Support: Works on Mac, Linux, and Windows with platform-specific activation scripts
- Instant Availability: All 11 ServiceNow MCP servers are immediately available in Claude Code after initialization
Previous Updates
- v1.1.24: Added
snow-flow mcp debugcommand for troubleshooting MCP configurations - v1.1.23: Fixed .npmignore to include essential .claude configuration files
- v1.1.22: Verified global npm installation correctly registers all MCP servers
- v1.1.20: Added enabledMcpjsonServers to ensure MCP visibility in Claude Code
đ License
This project is licensed under the MIT License - see the LICENSE file for details.
đ Acknowledgments
Built with the power of Claude AI and the ServiceNow platform. Special thanks to the ServiceNow developer community for inspiration and best practices.
Ready to revolutionize your ServiceNow development? Start with snow-flow init --sparc and experience the future of ServiceNow automation! đ