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 search results include only MCP providers (#36871)

御风c7c3296572b1
diff --git a/web/app/components/tools/mcp/index.tsx b/web/app/components/tools/mcp/index.tsx
index a9012d0652e..c634085c54f 100644
--- a/web/app/components/tools/mcp/index.tsx
+++ b/web/app/components/tools/mcp/index.tsx
@@ -23,7 +23,7 @@ const MCPList = ({
const filteredList = useMemo(() => {
return list.filter((collection) => {
if (searchText)
- return Object.values(collection.name).some(value => (value as string).toLowerCase().includes(searchText.toLowerCase()))
+ return collection.type === 'mcp' && Object.values(collection.name).some(value => (value as string).toLowerCase().includes(searchText.toLowerCase()))
return collection.type === 'mcp'
}) as ToolWithProvider[]
}, [list, searchText])