Skip to content

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]

fix(ui): allow null for mcp_toolsets in the dashboard key response type

Tin Chi Lodce1b0d1fd0e
diff --git a/ui/litellm-dashboard/src/components/key_team_helpers/key_list.tsx b/ui/litellm-dashboard/src/components/key_team_helpers/key_list.tsx
index d4bd6756df2..ceff1809b7b 100644
--- a/ui/litellm-dashboard/src/components/key_team_helpers/key_list.tsx
+++ b/ui/litellm-dashboard/src/components/key_team_helpers/key_list.tsx
@@ -94,7 +94,7 @@ export interface KeyResponse {
object_permission_id: string;
mcp_servers: string[];
mcp_access_groups?: string[];
- mcp_toolsets?: string[];
+ mcp_toolsets?: string[] | null;
mcp_tool_permissions?: Record<string, string[]>;
vector_stores: string[];
agents?: string[];
diff --git a/ui/litellm-dashboard/src/components/object_permissions_view.tsx b/ui/litellm-dashboard/src/components/object_permissions_view.tsx
index be021a5b59d..b0ee38bd834 100644
--- a/ui/litellm-dashboard/src/components/object_permissions_view.tsx
+++ b/ui/litellm-dashboard/src/components/object_permissions_view.tsx
@@ -9,7 +9,7 @@ interface ObjectPermission {
mcp_servers: string[];
mcp_access_groups?: string[];
mcp_tool_permissions?: Record<string, string[]>;
- mcp_toolsets?: string[];
+ mcp_toolsets?: string[] | null;
vector_stores: string[];
agents?: string[];
agent_access_groups?: string[];