From dce1b0d1fd0e5483efb112c4da8dff0f11f07c04 Mon Sep 17 00:00:00 2001 From: Tin Chi Lo Date: Thu, 23 Jul 2026 18:33:08 -0700 Subject: [PATCH] fix(ui): allow null for mcp_toolsets in the dashboard key response type The generated schema declares object_permission.mcp_toolsets as string[] | null; the handwritten KeyResponse shape omitted the null. ObjectPermissionsView consumes the same value, so its prop type widens with it --- .../src/components/key_team_helpers/key_list.tsx | 2 +- ui/litellm-dashboard/src/components/object_permissions_view.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; 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; - mcp_toolsets?: string[]; + mcp_toolsets?: string[] | null; vector_stores: string[]; agents?: string[]; agent_access_groups?: string[];