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): extra_headers not persisting on MCP server edit
Ryan Crabbec28877757cf9
diff --git a/ui/litellm-dashboard/src/components/mcp_tools/MCPPermissionManagement.tsx b/ui/litellm-dashboard/src/components/mcp_tools/MCPPermissionManagement.tsxindex 89aa756cb27..dcb7298c830 100644--- a/ui/litellm-dashboard/src/components/mcp_tools/MCPPermissionManagement.tsx+++ b/ui/litellm-dashboard/src/components/mcp_tools/MCPPermissionManagement.tsx@@ -27,10 +27,6 @@ const MCPPermissionManagement: React.FC<MCPPermissionManagementProps> = ({// Set initial values when mcpServer changesuseEffect(() => {if (mcpServer) {- // Set extra_headers if they exist- if (mcpServer.extra_headers) {- form.setFieldValue("extra_headers", mcpServer.extra_headers);- }if (mcpServer.static_headers) {const staticHeaders = Object.entries(mcpServer.static_headers).map(([header, value]) => ({header,diff --git a/ui/litellm-dashboard/src/components/mcp_tools/mcp_server_edit.tsx b/ui/litellm-dashboard/src/components/mcp_tools/mcp_server_edit.tsxindex 574e7871759..e97222acbd0 100644--- a/ui/litellm-dashboard/src/components/mcp_tools/mcp_server_edit.tsx+++ b/ui/litellm-dashboard/src/components/mcp_tools/mcp_server_edit.tsx@@ -189,6 +189,7 @@ const MCPServerEdit: React.FC<MCPServerEditProps> = ({...mcpServer,transport: effectiveTransport,static_headers: initialStaticHeaders,+ extra_headers: mcpServer.extra_headers || [],oauth_flow_type: mcpServer.token_url ? OAUTH_FLOW.M2M : OAUTH_FLOW.INTERACTIVE,token_validation_json: mcpServer.token_validation? JSON.stringify(mcpServer.token_validation, null, 2)@@ -563,7 +564,7 @@ const MCPServerEdit: React.FC<MCPServerEditProps> = ({mcp_access_groups: accessGroups,alias: restValues.alias,// Include permission management fields- extra_headers: restValues.extra_headers || [],+ extra_headers: restValues.extra_headers?.length ? restValues.extra_headers : undefined,allowed_tools: allowedTools.length > 0 ? allowedTools : null,tool_name_to_display_name: Object.keys(toolNameToDisplayName).length > 0 ? toolNameToDisplayName : null,tool_name_to_description: Object.keys(toolNameToDescription).length > 0 ? toolNameToDescription : null,