Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/mcp_agent/mcp/mcp_aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,14 @@ async def __aenter__(self):
await self.context._connection_manager.__aenter__()
self._persistent_connection_manager = self.context._connection_manager

await self.load_servers()
# Import the display component here to avoid circular imports
from mcp_agent.ui.console_display import ConsoleDisplay

# Initialize the display component
self.display = ConsoleDisplay(config=self.context.config)

await self.load_servers()

return self

async def __aexit__(self, exc_type, exc_val, exc_tb):
Expand Down
Loading