feat: implement Phase 2 validation improvements
Phase 2 Professional Validation Features: 1. Validation Profiles: - minimal: Only required fields - runtime: Critical errors + security warnings - ai-friendly: Balanced (default) - strict: All checks + best practices 2. New Node Validators: - Webhook: Path validation, response modes, auth warnings - PostgreSQL: SQL injection detection, query safety - MySQL: Similar to Postgres with MySQL-specific checks 3. New Tools: - validate_node_minimal: Lightning-fast required field checking - Updated validate_node_operation with profile support 4. SQL Safety Features: - Detects template expressions vulnerable to injection - Warns about DELETE/UPDATE without WHERE - Catches dangerous operations (DROP, TRUNCATE) - Suggests parameterized queries 5. Enhanced Coverage: - Now supports 7+ major nodes with specific validators - Flexible validation based on use case - Professional-grade safety checks This completes the major validation system overhaul from the original plan. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -10,11 +10,15 @@ n8n-mcp is a comprehensive documentation and knowledge server that provides AI a
|
||||
|
||||
### Update (v2.4.2) - Enhanced Node Configuration Validation:
|
||||
- ✅ **NEW: validate_node_operation tool** - Operation-aware validation with 80%+ fewer false positives
|
||||
- ✅ **NEW: validate_node_minimal tool** - Lightning-fast validation for just required fields
|
||||
- ✅ **NEW: Validation profiles** - Choose between minimal, runtime, ai-friendly, or strict validation
|
||||
- ✅ **NEW: EnhancedConfigValidator** - Smart validation that only checks relevant properties
|
||||
- ✅ **NEW: Node-specific validators** - Custom logic for Slack, Google Sheets, OpenAI, MongoDB
|
||||
- ✅ **NEW: Node-specific validators** - Custom logic for Slack, Google Sheets, OpenAI, MongoDB, Webhook, Postgres, MySQL
|
||||
- ✅ **NEW: SQL safety features** - Detects SQL injection risks, unsafe DELETE/UPDATE queries
|
||||
- ✅ Added operation context filtering (only validates properties for selected operation)
|
||||
- ✅ Integrated working examples in validation responses when errors found
|
||||
- ✅ Added actionable next steps and auto-fix suggestions
|
||||
- ✅ Basic code syntax validation for JavaScript/Python in Code node
|
||||
- ✅ Dramatic improvement for complex multi-operation nodes
|
||||
- ✅ Test results: Slack validation reduced from 45 errors to 1 error!
|
||||
|
||||
@@ -258,7 +262,8 @@ The project implements MCP (Model Context Protocol) to expose n8n node documenta
|
||||
- `search_node_properties` - **NEW** Search for specific properties within a node
|
||||
- `get_node_for_task` - **NEW** Get pre-configured node settings for common tasks
|
||||
- `list_tasks` - **NEW** List all available task templates
|
||||
- `validate_node_operation` - **NEW v2.4.2** Verify node configuration is correct before use
|
||||
- `validate_node_operation` - **NEW v2.4.2** Verify node configuration with operation awareness and profiles
|
||||
- `validate_node_minimal` - **NEW v2.4.2** Quick validation for just required fields
|
||||
- `get_property_dependencies` - **NEW** Analyze property dependencies and visibility conditions
|
||||
- `list_ai_tools` - List all AI-capable nodes (usableAsTool: true)
|
||||
- `get_node_documentation` - Get parsed documentation from n8n-docs
|
||||
|
||||
Reference in New Issue
Block a user