mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
The core issue: when a dashboard user has team_id='litellm-dashboard' (the UI session token placeholder) and a non-admin role like 'internal_user', the MCP server listing and health check endpoints only returned servers with allow_all_keys=True. DB-created MCP servers were filtered out because: 1. The admin check (_user_has_admin_view) fails for internal_user role 2. The team permission check fails because 'litellm-dashboard' is not a real team in the DB 3. With no team or key permissions, only allow_all_keys servers survive Fix: In fetch_all_mcp_servers and health_check_servers, detect UI session tokens (team_id == UI_SESSION_TOKEN_TEAM_ID) and use the unfiltered server listing path. Dashboard users need full visibility of all MCP servers for management purposes. Co-authored-by: Ishaan Jaff <ishaan-jaff@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| policy_endpoints | ||
| scim | ||
| search_endpoints | ||
| usage_endpoints | ||
| test_access_group_endpoints.py | ||
| test_access_group_management.py | ||
| test_budget_endpoints.py | ||
| test_cache_settings_endpoints.py | ||
| test_callback_management_endpoints.py | ||
| test_common_daily_activity.py | ||
| test_common_utils.py | ||
| test_compliance_endpoints.py | ||
| test_cost_tracking_settings.py | ||
| test_customer_budget.py | ||
| test_customer_endpoints.py | ||
| test_delete_callbacks_endpoint.py | ||
| test_delete_verification_tokens_failed.py | ||
| test_entraid_app_roles.py | ||
| test_internal_user_endpoints.py | ||
| test_key_management_endpoints.py | ||
| test_mcp_management_endpoints.py | ||
| test_model_management_endpoints.py | ||
| test_organization_endpoints.py | ||
| test_policy_endpoints.py | ||
| test_router_settings_endpoints.py | ||
| test_tag_management_endpoints.py | ||
| test_team_endpoints.py | ||
| test_tool_management_endpoints.py | ||
| test_ui_sso.py | ||