fix: filter flow JSON from component JSON in MCP Servers (#8023)

filter for flows with ic_component as False
This commit is contained in:
Edwin Jose 2025-05-14 15:51:55 -04:00 committed by GitHub
commit fa3d1855e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: