MCPDisableReconnectPromptScreen(
self,
server_names: Sequence[str],
*,
on_choice: Callable[[ReconnectChoice_ReconnectPromptScreen| Name | Type | Description |
|---|---|---|
server_names* | Sequence[str] | |
on_choice | Callable[[ReconnectChoice], None] | None | Default: None |
| Name | Type |
|---|---|
| server_names | Sequence[str] |
| on_choice | Callable[[ReconnectChoice], None] | None |
Modal asking whether to reconnect after /mcp disable/enable toggles.
Shown when the user closes the /mcp viewer with pending F2
disable-state changes but without pressing Ctrl+R, so the toggles
do not silently sit unapplied. Dismisses with "reconnect" when the
user accepts the restart and "later" when the user defers; Esc is
treated as "later".
Servers whose disabled state changed and are waiting on a reconnect. Must be non-empty — the caller only opens this modal when at least one toggle is pending, and the body would otherwise name no server.
Optional callback invoked for an explicit reconnect
or defer choice before the screen dismisses. This supports
an atomic switch_screen transition from the MCP viewer,
whose original result callback is removed by the switch.
Report and dismiss with "reconnect".
Report and dismiss with "later".