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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(ui): restore the wide Add MCP Server dialog
Yuneng Jiangecc491756a23
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_discovery.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_discovery.test.tsxindex 4e2456ab7a4..4d84fef9266 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_discovery.test.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_discovery.test.tsx@@ -110,6 +110,17 @@ describe("MCPDiscovery", () => {expect(await screen.findByText(/No servers found/)).toBeInTheDocument();});+ it("keeps the wide dialog width the antd modal had", async () => {+ render(<MCPDiscovery {...defaultProps} />);+ await screen.findByText("GitHub");++ const dialog = document.querySelector("[data-slot='dialog-content']");+ const width = Array.from(dialog?.classList ?? []).filter((c) => c.includes("max-w-"));++ expect(width).toContain("sm:max-w-[1000px]");+ expect(width).not.toContain("sm:max-w-md");+ });+it("does not fetch while hidden", () => {render(<MCPDiscovery {...defaultProps} isVisible={false} />);diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_discovery.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_discovery.tsxindex b2c181a9112..45632f4b775 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_discovery.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_discovery.tsx@@ -103,7 +103,7 @@ const MCPDiscovery: React.FC<MCPDiscoveryProps> = ({return (<Dialog open={isVisible} onOpenChange={(open) => !open && onClose()}>- <DialogContent className="max-w-[1000px]">+ <DialogContent className="sm:max-w-[1000px]"><DialogHeader><div className="flex items-center justify-between border-b border-border pb-4"><div className="flex items-center space-x-3">