From 6ed14e006a030cdff76c84564ff4fd4d83d40a01 Mon Sep 17 00:00:00 2001 From: Ace Data Cloud Dev Date: Sun, 18 Oct 2026 16:38:51 +0800 Subject: [PATCH] fix(mcp): keep token guard within lint condition budget --- ui/litellm-dashboard/src/hooks/useTestMCPConnection.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/hooks/useTestMCPConnection.tsx b/ui/litellm-dashboard/src/hooks/useTestMCPConnection.tsx index 0a771dcf24f..8ecbb63dcd1 100644 --- a/ui/litellm-dashboard/src/hooks/useTestMCPConnection.tsx +++ b/ui/litellm-dashboard/src/hooks/useTestMCPConnection.tsx @@ -82,7 +82,10 @@ export const useTestMCPConnection = ({ const credentialsKey = JSON.stringify(formValues.credentials ?? {}); const fetchTools = async () => { - if (!accessToken || !hasRequiredAuthValue || (!formValues.url && !formValues.spec_path)) { + if (!hasRequiredAuthValue) { + return; + } + if (!accessToken || (!formValues.url && !formValues.spec_path)) { return; }