# MCPReconnectPromptScreen

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/mcp_reconnect/MCPReconnectPromptScreen)

Modal asking whether to restart the server after an MCP login.

Dismisses with `"reconnect"` when the user accepts the restart and
`"later"` when the user defers. Esc is treated as "later" so the
user is never forced into a reconnect they did not explicitly choose.

## Signature

```python
MCPReconnectPromptScreen(
    self,
    server_name: str,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `server_name` | `str` | Yes | Server whose login just succeeded. |

## Extends

- `_ReconnectPromptScreen`

## Constructors

```python
__init__(
    self,
    server_name: str,
) -> None
```

| Name | Type |
|------|------|
| `server_name` | `str` |


---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/6a8d452d70f9bcb978e6bd44831dda093ecbe928/libs/code/deepagents_code/tui/widgets/mcp_reconnect.py#L147)