mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-03-19 00:43:07 +00:00
Add intuitive semantic parameters for working with IF and Switch nodes: - branch='true'|'false' for IF nodes (maps to sourceOutput) - case=N for Switch nodes (maps to sourceIndex) - Smart parameters resolve to technical parameters automatically - Explicit parameters always override smart parameters Implementation: - Added branch and case parameters to AddConnectionOperation and RewireConnectionOperation interfaces - Created resolveSmartParameters() helper method to map semantic to technical parameters - Updated applyAddConnection() to use smart parameter resolution - Updated applyRewireConnection() to use smart parameter resolution - Updated validateRewireConnection() to validate with resolved smart parameters Tests: - Added 8 comprehensive tests for smart parameters feature - All 141 workflow diff engine tests passing - Coverage: 91.7% overall 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>