MCPServerHeaderItem(
self,
server: MCPServerInfo,
indicator_glyph: str,
indicator_color: str,
visible_tools:Static| Name | Type | Description |
|---|---|---|
server* | MCPServerInfo | Server metadata used to re-render content on selection state changes. |
indicator_glyph* | str | Pre-computed status glyph character. |
indicator_color* | str | Pre-computed status hex color string. |
visible_tools* | tuple[MCPToolInfo, ...] | |
glyphs* | Glyphs | |
index* | int | |
classes | str | Default: '' |
| Name | Type |
|---|---|
| server | MCPServerInfo |
| indicator_glyph | str |
| indicator_color | str |
| visible_tools | tuple[MCPToolInfo, ...] |
| glyphs | Glyphs |
| index | int |
| classes | str |
A selectable server-header row in the MCP viewer.
Cursor-selectable so users can navigate to every server — even those
in unauthenticated or error states which have no tool rows by the
MCPServerInfo invariant — and read the full status / error text on
the line. Not expandable: Enter and Ctrl+E are no-ops here.
Filtered tool tuple — used for the count label.
Active glyph table.
Flat row index inside MCPViewerScreen._row_widgets.
CSS classes — should include mcp-server-header, and
optionally mcp-header-selected for the initial selection.