fix(mcp_manager): remove timeout from MCP connection attempts and handle registration cleanup

This commit is contained in:
Boody
2026-07-12 07:18:27 +03:00
committed by RaresKeY
parent 5971b091db
commit c1d6287e32
2 changed files with 81 additions and 64 deletions
+1 -1
View File
@@ -1048,7 +1048,7 @@ async def _startup_event():
except BaseException as e:
logger.warning(f"Built-in MCP registration failed (non-critical): {type(e).__name__}: {e}")
try:
await asyncio.wait_for(mcp_manager.connect_all_enabled(), timeout=20)
await mcp_manager.connect_all_enabled()
except asyncio.TimeoutError:
logger.warning("User MCP startup timed out (non-critical)")
except BaseException as e: