Add auto-reconnect to MCP client on call_tool/list_tools
- McpClient._ensure_connected() reconnects if session is dead
- list_tools() and call_tool() try reconnect + one retry on failure
- Fixes crash when MCP server restarts between calls

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 0d4e55b commit 3a227c969229ca8886c3907614ed14e800291fd1
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 12 May
Showing 1 changed file
View
navi/mcp/client.py