This commit is contained in:
Ishaan Jaffer 2026-02-09 15:53:23 -08:00
parent a87d5b4dbb
commit c15c71bb17
2 changed files with 1 additions and 2 deletions

View file

@ -54,7 +54,6 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({
const shouldShowAuthValueField = authType ? AUTH_TYPES_REQUIRING_AUTH_VALUE.includes(authType) : false;
const isOAuthAuthType = authType === AUTH_TYPE.OAUTH2;
const isM2MFlow = isOAuthAuthType && formValues.oauth_flow_type === OAUTH_FLOW.M2M;
const isInteractiveFlow = isOAuthAuthType && formValues.oauth_flow_type !== OAUTH_FLOW.M2M;
const persistCreateUiState = () => {
if (typeof window === "undefined") {

View file

@ -44,7 +44,6 @@ const MCPServerEdit: React.FC<MCPServerEditProps> = ({
const isOAuthAuthType = authType === AUTH_TYPE.OAUTH2;
const oauthFlowTypeValue = Form.useWatch("oauth_flow_type", form) as string | undefined;
const isM2MFlow = isOAuthAuthType && oauthFlowTypeValue === OAUTH_FLOW.M2M;
const isInteractiveFlow = isOAuthAuthType && oauthFlowTypeValue !== OAUTH_FLOW.M2M;
const [oauthAccessToken, setOauthAccessToken] = useState<string | null>(null);
@ -493,6 +492,7 @@ const MCPServerEdit: React.FC<MCPServerEditProps> = ({
transport: mcpServer.transport,
auth_type: mcpServer.auth_type,
mcp_info: mcpServer.mcp_info,
oauth_flow_type: mcpServer.token_url ? OAUTH_FLOW.M2M : OAUTH_FLOW.INTERACTIVE,
}}
allowedTools={allowedTools}
existingAllowedTools={mcpServer.allowed_tools || null}