fix: filter flow JSON from component JSON in MCP Servers (#8023)
filter for flows with ic_component as False
This commit is contained in:
parent
d2f2f9074d
commit
fa3d1855e9
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue