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]

fix: use check_db_only=True in _assert_can_manage_team_mcp_server

yuneng-jiangdfc4401e1c30
diff --git a/litellm/proxy/management_endpoints/mcp_management_endpoints.py b/litellm/proxy/management_endpoints/mcp_management_endpoints.py
index 522a533d43f..a3b0b3ab286 100644
--- a/litellm/proxy/management_endpoints/mcp_management_endpoints.py
+++ b/litellm/proxy/management_endpoints/mcp_management_endpoints.py
@@ -179,7 +179,7 @@ if MCP_AVAILABLE:
team_id=resolved_team_id,
prisma_client=prisma_client,
user_api_key_cache=user_api_key_cache,
- check_db_only=False,
+ check_db_only=True, # bypass cache to get fresh object_permission
)
if not _is_user_team_mcp_manager(user_api_key_dict, team_obj):