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: npm build error

Yuta Saito0dc8c1441f91
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/hooks/mcpServers/useMCPServerHealth.ts b/ui/litellm-dashboard/src/app/(dashboard)/hooks/mcpServers/useMCPServerHealth.ts
index ad3c633eb91..95d7f3bcee0 100644
--- a/ui/litellm-dashboard/src/app/(dashboard)/hooks/mcpServers/useMCPServerHealth.ts
+++ b/ui/litellm-dashboard/src/app/(dashboard)/hooks/mcpServers/useMCPServerHealth.ts
@@ -13,7 +13,7 @@ interface MCPServerHealth {
export const useMCPServerHealth = (serverIds?: string[]) => {
const { accessToken } = useAuthorized();
return useQuery<MCPServerHealth[]>({
- queryKey: mcpServerHealthKeys.list({ serverIds }),
+ queryKey: [...mcpServerHealthKeys.lists(), { serverIds }],
queryFn: async () => await fetchMCPServerHealth(accessToken!, serverIds),
enabled: !!accessToken,
// Refetch health status every 30 seconds to keep it up to date