feat(v2.7.0): add n8n_update_partial_workflow with transactional updates
BREAKING CHANGES: - Renamed n8n_update_workflow to n8n_update_full_workflow for clarity NEW FEATURES: - Added n8n_update_partial_workflow tool for diff-based workflow editing - Implemented WorkflowDiffEngine with 13 operation types - Added transactional updates with two-pass processing - Maximum 5 operations per request for reliability - Operations can be in any order - engine handles dependencies - Added validateOnly mode for testing changes before applying - 80-90% token savings by only sending changes IMPROVEMENTS: - Enhanced tool description with comprehensive parameter documentation - Added clear examples for simple and complex use cases - Improved error messages and validation - Added extensive test coverage for all operations DOCUMENTATION: - Added workflow-diff-examples.md with usage patterns - Added transactional-updates-example.md showing before/after - Updated README.md with v2.7.0 features - Updated CLAUDE.md with latest changes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
20
README.md
20
README.md
@@ -2,7 +2,7 @@
|
||||
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
[](https://github.com/czlonkowski/n8n-mcp)
|
||||
[](https://github.com/czlonkowski/n8n-mcp)
|
||||
[](https://github.com/czlonkowski/n8n-mcp)
|
||||
[](https://github.com/czlonkowski/n8n-mcp/pkgs/container/n8n-mcp)
|
||||
|
||||
A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations. Deploy in minutes to give Claude and other AI assistants deep knowledge about n8n's 525+ workflow automation nodes.
|
||||
@@ -218,7 +218,8 @@ These tools allow you to manage n8n workflows directly. Configure with `N8N_API_
|
||||
- **`n8n_get_workflow_details`** - Get workflow with execution statistics
|
||||
- **`n8n_get_workflow_structure`** - Get simplified workflow structure
|
||||
- **`n8n_get_workflow_minimal`** - Get minimal workflow info (ID, name, active status)
|
||||
- **`n8n_update_workflow`** - Update existing workflows
|
||||
- **`n8n_update_full_workflow`** - Update entire workflow (complete replacement)
|
||||
- **`n8n_update_partial_workflow`** - Update workflow using diff operations (NEW in v2.7.0!)
|
||||
- **`n8n_delete_workflow`** - Delete workflows permanently
|
||||
- **`n8n_list_workflows`** - List workflows with filtering and pagination
|
||||
- **`n8n_validate_workflow`** - Validate workflows already in n8n by ID (NEW in v2.6.3)
|
||||
@@ -475,6 +476,16 @@ Current database coverage (n8n v1.99.1):
|
||||
|
||||
## 🔄 Recent Updates
|
||||
|
||||
### v2.7.0 - Diff-Based Workflow Editing with Transactional Updates
|
||||
- ✅ **NEW**: `n8n_update_partial_workflow` tool - Update workflows using diff operations
|
||||
- ✅ **RENAMED**: `n8n_update_workflow` → `n8n_update_full_workflow` for clarity
|
||||
- ✅ **80-90% TOKEN SAVINGS**: Only send changes, not entire workflow JSON
|
||||
- ✅ **13 OPERATIONS**: addNode, removeNode, updateNode, moveNode, enable/disable, connections, settings, tags
|
||||
- ✅ **TRANSACTIONAL**: Two-pass processing allows adding nodes and connections in any order
|
||||
- ✅ **5 OPERATION LIMIT**: Ensures reliability and atomic updates
|
||||
- ✅ **VALIDATION MODE**: Test changes with `validateOnly: true` before applying
|
||||
- ✅ **IMPROVED DOCS**: Comprehensive parameter documentation and examples
|
||||
|
||||
### v2.6.3 - n8n Instance Workflow Validation
|
||||
- ✅ **NEW**: `n8n_validate_workflow` tool - Validate workflows directly from n8n instance by ID
|
||||
- ✅ **FETCHES**: Retrieves workflow from n8n API and runs comprehensive validation
|
||||
@@ -641,8 +652,9 @@ You are an expert in n8n automation software. Your role is to answer questions a
|
||||
1. n8n_list_workflows() // see existing workflows
|
||||
2. n8n_get_workflow({id: 'workflow-id'}) // fetch specific workflow
|
||||
3. n8n_validate_workflow({id: 'workflow-id'}) // validate existing workflow
|
||||
4. n8n_update_workflow() // update if validation shows issues
|
||||
5. n8n_trigger_webhook_workflow() // execute via webhook
|
||||
4. n8n_update_partial_workflow() // NEW! Update using diff operations (v2.7.0)
|
||||
5. n8n_update_full_workflow() // Replace entire workflow
|
||||
6. n8n_trigger_webhook_workflow() // execute via webhook
|
||||
|
||||
## Important Rules
|
||||
|
||||
|
||||
Reference in New Issue
Block a user