mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 10:50:35 +08:00
fix: filter flow JSON from component JSON in MCP Servers (#8023)
filter for flows with ic_component as False
This commit is contained in:
@ -76,7 +76,7 @@ async def list_project_tools(
|
||||
raise HTTPException(status_code=404, detail="Project not found")
|
||||
|
||||
# Query flows in the project
|
||||
flows_query = select(Flow).where(Flow.folder_id == project_id)
|
||||
flows_query = select(Flow).where(Flow.folder_id == project_id, Flow.is_component == False) # noqa: E712
|
||||
|
||||
# Optionally filter for MCP-enabled flows only
|
||||
if mcp_enabled:
|
||||
|
||||
Reference in New Issue
Block a user