MCPViewerScreen(
self,
server_info: list[MCPServerInfo],
*,
connecting: bool = False
ModalScreen[None]| Name | Type | Description |
|---|---|---|
server_info* | list[MCPServerInfo] | |
connecting | bool | Default: False |
| Name | Type |
|---|---|
| server_info | list[MCPServerInfo] |
| connecting | bool |
Modal viewer for active MCP servers and their tools.
Displays servers grouped by name with transport type and tool count. Navigate with arrow keys, Enter to expand/collapse tool descriptions, Escape to close.
List of MCP server metadata to display.
When True and server_info is empty, show a
"connecting..." placeholder instead of the "no servers"
message; the screen refreshes when refresh_server_info
is called after the server startup completes.
Replace the displayed server list; typically after server startup.
Rebuilds the modal body in place so a user who opened /mcp before
tools finished loading sees them appear without closing/reopening.
Compose the screen layout.
Build the body once the screen is mounted.
Move selection up.
Move selection down.
Toggle expand/collapse on the selected tool.
Scroll up by one page.
Scroll down by one page.
Close the viewer.