fix: increase limit for list mcp servers (#8674)
This commit is contained in:
@@ -309,6 +309,9 @@ class MCPManager:
|
||||
mcp_servers = await MCPServerModel.list_async(
|
||||
db_session=session,
|
||||
organization_id=actor.organization_id,
|
||||
# SqlalchemyBase.list_async defaults to limit=50; MCP servers should not be capped.
|
||||
# Use a higher limit until we implement proper pagination in the API/SDK.
|
||||
limit=200,
|
||||
)
|
||||
|
||||
return [mcp_server.to_pydantic() for mcp_server in mcp_servers]
|
||||
|
||||
@@ -405,6 +405,9 @@ class MCPServerManager:
|
||||
mcp_servers = await MCPServerModel.list_async(
|
||||
db_session=session,
|
||||
organization_id=actor.organization_id,
|
||||
# SqlalchemyBase.list_async defaults to limit=50; MCP servers should not be capped.
|
||||
# Use a higher limit until we implement proper pagination in the API/SDK.
|
||||
limit=200,
|
||||
)
|
||||
|
||||
return [mcp_server.to_pydantic() for mcp_server in mcp_servers]
|
||||
|
||||
Reference in New Issue
Block a user