From 00127276d0cf8e1d7dd1c43623ee6008b5580bee Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Tue, 10 Mar 2026 14:14:07 -0700 Subject: [PATCH] fix(chat-ui): use AUTH_TYPE.OAUTH2 constant instead of hardcoded string --- ui/litellm-dashboard/src/components/chat/MCPAppsPanel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/litellm-dashboard/src/components/chat/MCPAppsPanel.tsx b/ui/litellm-dashboard/src/components/chat/MCPAppsPanel.tsx index 369e8375f9f..f3a387c02bd 100644 --- a/ui/litellm-dashboard/src/components/chat/MCPAppsPanel.tsx +++ b/ui/litellm-dashboard/src/components/chat/MCPAppsPanel.tsx @@ -4,7 +4,7 @@ import React, { useEffect, useState } from "react"; import { Switch, Spin, Input, Button } from "antd"; import { SearchOutlined, ArrowLeftOutlined, RightOutlined } from "@ant-design/icons"; import { fetchMCPServers, listMCPTools } from "../networking"; -import { MCPServer } from "../mcp_tools/types"; +import { AUTH_TYPE, MCPServer } from "../mcp_tools/types"; import { message } from "antd"; interface Props { @@ -261,7 +261,7 @@ const MCPAppsPanel: React.FC = ({ accessToken, selectedServers, onChange {isConnected && ( )} - {server.auth_type === "oauth2" && ( + {server.auth_type === AUTH_TYPE.OAUTH2 && (