mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-03-18 00:13:08 +00:00
Found by n8n-mcp-tester agent: IF nodes in n8n store connections as: IF.main[0] (true branch) IF.main[1] (false branch) NOT as IF.true and IF.false Previous implementation (WRONG): - branch='true' → sourceOutput='true' Correct implementation (FIXED): - branch='true' → sourceIndex=0, sourceOutput='main' - branch='false' → sourceIndex=1, sourceOutput='main' Changes: - resolveSmartParameters(): branch now sets sourceIndex, not sourceOutput - Type definition comments updated to reflect correct mapping - All unit tests fixed to expect connections under 'main' with correct indices - All 141 tests passing with correct behavior This was caught by integration testing against real n8n API, not by unit tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>