diff --git a/letta/services/mcp_manager.py b/letta/services/mcp_manager.py index 9f653660..db740a5e 100644 --- a/letta/services/mcp_manager.py +++ b/letta/services/mcp_manager.py @@ -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] diff --git a/letta/services/mcp_server_manager.py b/letta/services/mcp_server_manager.py index aeb87c8a..b5fd06d1 100644 --- a/letta/services/mcp_server_manager.py +++ b/letta/services/mcp_server_manager.py @@ -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]