mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-10 07:13:07 +00:00
Addresses code review feedback - rewireConnection now validates that a connection exists at the SPECIFIC sourceIndex, not just at any index. Problem: - Previous validation checked if connection existed at ANY index - Could cause confusing runtime errors instead of clear validation errors - Example: Connection exists at index 0, but rewireConnection uses index 1 Fix: - Resolve smart parameters to get actual sourceIndex - Validate connection exists at connections[sourceOutput][sourceIndex] - Provide clear error message with specific index Impact: - Better validation error messages - Prevents confusing runtime errors - Clearer feedback to AI agents Code Review: High priority fix from @agent-code-reviewer 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>