split_mcp_server_info(
server_info: Sequence[MCPServerInfo]
) -> tuple[list[ToolGroup]| Name | Type | Description |
|---|---|---|
server_info* | Sequence[MCPServerInfo] |
Split loaded MCP server metadata into tool groups and unavailable servers.
Pure function shared by the CLI discovery path (collect_mcp_catalog) and
the interactive /tools command, which passes the app's already-loaded
MCPServerInfo list rather than re-discovering (Textual's running event
loop forbids the asyncio.run discovery path).
Servers that loaded but expose no tools are reported as UnavailableServers
(errored, needing login, or disabled) rather than silently dropped —
surfacing exactly what a user debugging a missing tool needs to see.
Loaded MCP server metadata.