Skip to content

armgit / dify

Public Imported from GitHub
0

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.

fix: mcp server card button display (#22141)

非法操作c51b4290dc77
diff --git a/web/app/components/tools/mcp/mcp-service-card.tsx b/web/app/components/tools/mcp/mcp-service-card.tsx
index 443d7a1d1fd..c0c542da262 100644
--- a/web/app/components/tools/mcp/mcp-service-card.tsx
+++ b/web/app/components/tools/mcp/mcp-service-card.tsx
@@ -1,9 +1,7 @@
'use client'
import React, { useEffect, useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next'
-import {
- RiLoopLeftLine,
-} from '@remixicon/react'
+import { RiEditLine, RiLoopLeftLine } from '@remixicon/react'
import {
Mcp,
} from '@/app/components/base/icons/src/vender/other'
@@ -209,7 +207,11 @@ function MCPServiceCard({
variant='ghost'
onClick={() => setShowMCPServerModal(true)}
>
- {serverPublished ? t('tools.mcp.server.edit') : t('tools.mcp.server.addDescription')}
+
+ <div className="flex items-center justify-center gap-[1px]">
+ <RiEditLine className="h-3.5 w-3.5" />
+ <div className="system-xs-medium px-[3px] text-text-tertiary">{serverPublished ? t('tools.mcp.server.edit') : t('tools.mcp.server.addDescription')}</div>
+ </div>
</Button>
</div>
</div>