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.

remove node-info for non mcp (#22595)

znn3826b5742497
diff --git a/web/app/components/workflow/nodes/_base/node.tsx b/web/app/components/workflow/nodes/_base/node.tsx
index b969702dd78..68f2e3d572c 100644
--- a/web/app/components/workflow/nodes/_base/node.tsx
+++ b/web/app/components/workflow/nodes/_base/node.tsx
@@ -46,6 +46,7 @@ import cn from '@/utils/classnames'
import BlockIcon from '@/app/components/workflow/block-icon'
import Tooltip from '@/app/components/base/tooltip'
import useInspectVarsCrud from '../../hooks/use-inspect-vars-crud'
+import { ToolTypeEnum } from '../../block-selector/types'
type BaseNodeProps = {
children: ReactElement
@@ -322,7 +323,7 @@ const BaseNode: FC<BaseNodeProps> = ({
</div>
)
}
- {data.type === BlockEnum.Tool && (
+ {data.type === BlockEnum.Tool && data.provider_type === ToolTypeEnum.MCP && (
<div className='px-3 pb-2'>
<CopyID content={data.provider_id || ''} />
</div>