Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

refactor(mcp): drop control-flow comment in import registry refresh

yassin3b1266260e65
diff --git a/litellm/proxy/management_endpoints/mcp_management_endpoints.py b/litellm/proxy/management_endpoints/mcp_management_endpoints.py
index 6583d5405f8..7fe6aa9384c 100644
--- a/litellm/proxy/management_endpoints/mcp_management_endpoints.py
+++ b/litellm/proxy/management_endpoints/mcp_management_endpoints.py
@@ -1705,8 +1705,6 @@ if MCP_AVAILABLE:
imported: Final = tuple(entry for entry in outcomes if isinstance(entry, MCPConnectorImportResult))
if imported:
- # Best-effort registry refresh, mirroring add_mcp_server: rows are
- # already committed, so a refresh failure must not surface as a 500.
try:
await global_mcp_server_manager.reload_servers_from_database()
except Exception as e: # noqa: BLE001 # rows are committed; a refresh failure must not surface as a 500