mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
[MCP Gateway] Added route check for internal users (#13350)
* added route check * fix ruff
This commit is contained in:
parent
c3cc10387e
commit
b7325f4765
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ class RouteChecks:
|
|||
route=route, allowed_routes=LiteLLMRoutes.self_managed_routes.value
|
||||
): # routes that manage their own allowed/disallowed logic
|
||||
pass
|
||||
elif route.startswith("/v1/mcp/"):
|
||||
elif route.startswith("/v1/mcp/") or route.startswith("/mcp-rest/"):
|
||||
pass # authN/authZ handled by api itself
|
||||
else:
|
||||
user_role = "unknown"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue