diff --git a/ui/litellm-dashboard/src/components/mcp_tools/OpenAPIFormSection.tsx b/ui/litellm-dashboard/src/components/mcp_tools/OpenAPIFormSection.tsx index 68412ea21bc..9aea93df48a 100644 --- a/ui/litellm-dashboard/src/components/mcp_tools/OpenAPIFormSection.tsx +++ b/ui/litellm-dashboard/src/components/mcp_tools/OpenAPIFormSection.tsx @@ -43,6 +43,10 @@ const OpenAPIFormSection: React.FC = ({ // setFieldsValue with undefined silently skips undefined keys. form.resetFields(["auth_type", "authorization_url", "token_url"]); form.setFieldsValue(updates); + // Propagate cleared values so parent formValues stays in sync with the form. + updates.auth_type = undefined; + updates.authorization_url = undefined; + updates.token_url = undefined; } onValuesChange(updates); };