Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: fix mcp server status is not right (#31826)
wangxiaoleiec7ccd800c60
diff --git a/web/app/components/tools/mcp/detail/content.tsx b/web/app/components/tools/mcp/detail/content.tsxindex 2476973fa51..23d408706d5 100644--- a/web/app/components/tools/mcp/detail/content.tsx+++ b/web/app/components/tools/mcp/detail/content.tsx@@ -103,15 +103,22 @@ const MCPDetailContent: FC<Props> = ({returnif (!detail)return- const res = await authorizeMcp({- provider_id: detail.id,- })- if (res.result === 'success')- handleUpdateTools()+ try {+ const res = await authorizeMcp({+ provider_id: detail.id,+ })+ if (res.result === 'success')+ handleUpdateTools()- else if (res.authorization_url)- openOAuthPopup(res.authorization_url, handleOAuthCallback)- }, [onFirstCreate, isCurrentWorkspaceManager, detail, authorizeMcp, handleUpdateTools, handleOAuthCallback])+ else if (res.authorization_url)+ openOAuthPopup(res.authorization_url, handleOAuthCallback)+ }+ catch {+ // On authorization error, refresh the parent component state+ // to update the connection status indicator+ onUpdate()+ }+ }, [onFirstCreate, isCurrentWorkspaceManager, detail, authorizeMcp, handleUpdateTools, handleOAuthCallback, onUpdate])const handleUpdate = useCallback(async (data: any) => {if (!detail)