From a87d5b4dbbc344c5c22c1a6a458a6c57ac3afc71 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Mon, 9 Feb 2026 15:50:08 -0800 Subject: [PATCH] test fix --- .../components/mcp_tools/mcp_server_edit.tsx | 226 +----------------- 1 file changed, 10 insertions(+), 216 deletions(-) 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.tsx index 906f0bdfc3a..98ab6bf2f0f 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 @@ -458,222 +458,16 @@ const MCPServerEdit: React.FC = ({ )} {isOAuthAuthType && ( - <> - OAuth Flow Type} - name="oauth_flow_type" - > - - - - {/* M2M fields: client_id, client_secret, token_url required; scopes optional */} - {isM2MFlow && ( - <> - - Client ID - - - - - } - name={["credentials", "client_id"]} - rules={[{ required: true, message: "Client ID is required for M2M OAuth" }]} - > - - - - Client Secret - - - - - } - name={["credentials", "client_secret"]} - rules={[{ required: true, message: "Client Secret is required for M2M OAuth" }]} - > - - - - Token URL - - - - - } - name="token_url" - rules={[{ required: true, message: "Token URL is required for M2M OAuth" }]} - > - - - - Scopes (optional) - - - - - } - name={["credentials", "scopes"]} - > - - - - Authorization URL Override (optional) - - - - - } - name="authorization_url" - > - - - - Token URL Override (optional) - - - - - } - name="token_url" - > - - - - Registration URL Override (optional) - - - - - } - name="registration_url" - > - - -
-

Use OAuth to fetch a fresh access token and temporarily save it in the session as the authentication value.

- - {oauthError &&

{oauthError}

} - {oauthStatus === "success" && oauthTokenResponse?.access_token && ( -

- Token fetched. Expires in {oauthTokenResponse.expires_in ?? "?"} seconds. -

- )} -
- - )} - + )} {/* Permission Management / Access Control Section */}