mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-01-30 06:22:04 +00:00
## Critical Bugs Fixed ### 1. addConnection sourceIndex Bug - Multi-output nodes (IF, Switch) now work correctly - Changed || to ?? for proper 0 handling - Added defensive array validation - Improves multi-output node rating from 3/10 to 8/10 ### 2. updateConnection Runtime Validation - Prevents crashes when 'updates' object missing - Provides helpful error with examples and suggestions - Validates updates is an object type - Fixes server crashes from malformed AI requests ## Testing - Added 8 comprehensive tests (all passing) - Covers updateConnection validation (2 tests) - Covers sourceIndex handling (5 tests) - Complex multi-output scenarios (1 test) - All 126 tests passing (91.16% coverage) ## Documentation - Updated tool docs with Phase 0 fix notes - Added pitfalls about updateConnection limitations - Enhanced CHANGELOG with detailed fix descriptions - References hands-on testing analysis ## Impact - Based on n8n-mcp-tester hands-on testing - Overall rating improved from 4.5/10 to 6/10 - Resolves Issue #272 (updateConnection confusion) - Resolves Issue #204 (server crashes) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>