diff --git a/ui/litellm-dashboard/src/components/mcp_tools/OpenAPIFormSection.tsx b/ui/litellm-dashboard/src/components/mcp_tools/OpenAPIFormSection.tsx index f9531bde50f..8719bac2441 100644 --- a/ui/litellm-dashboard/src/components/mcp_tools/OpenAPIFormSection.tsx +++ b/ui/litellm-dashboard/src/components/mcp_tools/OpenAPIFormSection.tsx @@ -37,6 +37,11 @@ const OpenAPIFormSection: React.FC = ({ updates.auth_type = AUTH_TYPE.OAUTH2; updates.authorization_url = entry.oauth.authorization_url; updates.token_url = entry.oauth.token_url; + } else { + // Clear stale OAuth config from previous preset selection + updates.auth_type = undefined; + updates.authorization_url = undefined; + updates.token_url = undefined; } form.setFieldsValue(updates); onValuesChange(updates); diff --git a/ui/litellm-dashboard/src/components/mcp_tools/mcp_tool_configuration.tsx b/ui/litellm-dashboard/src/components/mcp_tools/mcp_tool_configuration.tsx index e6b867591e2..360bb893b52 100644 --- a/ui/litellm-dashboard/src/components/mcp_tools/mcp_tool_configuration.tsx +++ b/ui/litellm-dashboard/src/components/mcp_tools/mcp_tool_configuration.tsx @@ -396,13 +396,23 @@ const MCPToolConfiguration: React.FC = ({ )} {/* No tools state */} - {!isLoadingTools && !toolsError && tools.length === 0 && canFetchTools && (!keyTools || keyTools.length === 0) && ( -
- - No tools available for configuration -
- Connect to an MCP server with tools to configure them -
+ {!isLoadingTools && !toolsError && tools.length === 0 && canFetchTools && ( + keyTools && keyTools.length > 0 ? ( +
+ + No tools loaded from spec + + Expected tools: {keyTools.map((t) => t.name).join(", ")} + +
+ ) : ( +
+ + No tools available for configuration +
+ Connect to an MCP server with tools to configure them +
+ ) )} {/* Incomplete form state */}