Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: increase limit for list mcp servers (#8674)
Ari Webb282df3a3fea3
diff --git a/letta/services/mcp_manager.py b/letta/services/mcp_manager.pyindex 9f653660b..db740a5eb 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.pyindex aeb87c8af..b5fd06d1a 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]