mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix(mcp): connect preflight skips the granted lookup when the caller has no single-server grant
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
01fbd9d6a1
commit
4f2b36323f
1 changed files with 6 additions and 2 deletions
|
|
@ -1633,8 +1633,12 @@ if MCP_AVAILABLE:
|
|||
if registry_pick and mcp_servers is not None and len(mcp_servers) == 1
|
||||
else ()
|
||||
)
|
||||
granted = operations.global_mcp_server_manager.get_mcp_server_answering_to(
|
||||
server_name, client_ip=client_ip, among=allowed_single
|
||||
granted = (
|
||||
operations.global_mcp_server_manager.get_mcp_server_answering_to(
|
||||
server_name, client_ip=client_ip, among=allowed_single
|
||||
)
|
||||
if allowed_single
|
||||
else None
|
||||
)
|
||||
server = granted if granted is not None else registry_pick
|
||||
granted_single = granted is not None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue