# MCPLoginCancelledError

> **Class** in `deepagents_code`

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

Raised by `MCPLoginScreen.action_cancel` when the user cancels the flow.

## Signature

```python
MCPLoginCancelledError()
```

## Extends

- `RuntimeError`

---

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