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]

style: black format mcp server.py

Ishaan Jaffer65061b1e3cc3
diff --git a/litellm/proxy/_experimental/mcp_server/server.py b/litellm/proxy/_experimental/mcp_server/server.py
index adeacc06f8a..cefe2ef763b 100644
--- a/litellm/proxy/_experimental/mcp_server/server.py
+++ b/litellm/proxy/_experimental/mcp_server/server.py
@@ -1045,7 +1045,9 @@ if MCP_AVAILABLE:
except (ValueError, TypeError):
pass
ttl = _compute_per_user_token_ttl(server, raw_expires)
- await mcp_per_user_token_cache.set(user_id, server_id, access_token, ttl)
+ await mcp_per_user_token_cache.set(
+ user_id, server_id, access_token, ttl
+ )
return {"Authorization": f"Bearer {access_token}"}
except Exception as e: