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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
[MCP Gateway] add fix to update object permission on update/delete key/team (#12701)
Jugal D. Bhatt842af61a05ec
diff --git a/ui/litellm-dashboard/src/components/all_keys_table.tsx b/ui/litellm-dashboard/src/components/all_keys_table.tsxindex ec5dea08234..dd5b469d7d6 100644--- a/ui/litellm-dashboard/src/components/all_keys_table.tsx+++ b/ui/litellm-dashboard/src/components/all_keys_table.tsx@@ -614,9 +614,11 @@ export function AllKeysTable({}return key}))+ if (refresh) refresh(); // Minimal fix: refresh the full key list after an update}}onDelete={() => {setKeys(keys => keys.filter(key => key.token !== selectedKeyId))+ if (refresh) refresh(); // Minimal fix: refresh the full key list after a delete}}accessToken={accessToken}userID={userID}diff --git a/ui/litellm-dashboard/src/components/team/team_info.tsx b/ui/litellm-dashboard/src/components/team/team_info.tsxindex fd53761e635..6c6e6cc09cc 100644--- a/ui/litellm-dashboard/src/components/team/team_info.tsx+++ b/ui/litellm-dashboard/src/components/team/team_info.tsx@@ -550,10 +550,11 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({organization_id: info.organization_id,vector_stores: info.object_permission?.vector_stores || [],mcp_servers: info.object_permission?.mcp_servers || [],- mcp_access_groups:- info.object_permission?.mcp_servers || [],- mcp_servers_and_groups:- info.object_permission?.mcp_servers || [],+ mcp_access_groups: info.object_permission?.mcp_access_groups || [],+ mcp_servers_and_groups: {+ servers: info.object_permission?.mcp_servers || [],+ accessGroups: info.object_permission?.mcp_access_groups || [],+ },}}layout="vertical">diff --git a/ui/litellm-dashboard/src/components/teams.tsx b/ui/litellm-dashboard/src/components/teams.tsxindex ef6ecd42e1d..218f614e4ab 100644--- a/ui/litellm-dashboard/src/components/teams.tsx+++ b/ui/litellm-dashboard/src/components/teams.tsx@@ -567,14 +567,17 @@ const Teams: React.FC<TeamProps> = ({if (teams == null) {return teams;}-- return teams.map((team) => {+ const updated = teams.map((team) => {if (data.team_id === team.team_id) {return updateExistingKeys(team, data);}-return team;});+ // Minimal fix: refresh the full team list after an update+ if (accessToken) {+ fetchTeams(accessToken, userID, userRole, currentOrg, setTeams);+ }+ return updated;});}}onClose={() => {