mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
fix(mcp): do not leak server credentials in 403 'tool not allowed' error
This commit is contained in:
parent
e182a5e0ba
commit
ed48714145
1 changed files with 1 additions and 1 deletions
|
|
@ -2077,7 +2077,7 @@ if MCP_AVAILABLE:
|
|||
):
|
||||
raise HTTPException(
|
||||
status_code=403,
|
||||
detail=f"User not allowed to call this tool. Allowed MCP servers: {allowed_mcp_servers}",
|
||||
detail=f"User not allowed to call this tool. Allowed MCP servers: {[server.name for server in allowed_mcp_servers]}",
|
||||
)
|
||||
|
||||
standard_logging_mcp_tool_call: StandardLoggingMCPToolCall = (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue