# CliOAuthInteraction

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/mcp_oauth_ui/CliOAuthInteraction)

Default `OAuthInteraction` that drives the flow via stdin/stdout.

Preserves the previous `dcode mcp login` behavior — paste-back input,
plain-text prompts, success messages printed to stdout.

## Signature

```python
CliOAuthInteraction()
```

## Methods

- [`show_authorize_url()`](https://reference.langchain.com/python/deepagents-code/mcp_oauth_ui/CliOAuthInteraction/show_authorize_url)
- [`request_callback_url()`](https://reference.langchain.com/python/deepagents-code/mcp_oauth_ui/CliOAuthInteraction/request_callback_url)
- [`show_device_code()`](https://reference.langchain.com/python/deepagents-code/mcp_oauth_ui/CliOAuthInteraction/show_device_code)
- [`prompt_slack_team_id()`](https://reference.langchain.com/python/deepagents-code/mcp_oauth_ui/CliOAuthInteraction/prompt_slack_team_id)
- [`show_success()`](https://reference.langchain.com/python/deepagents-code/mcp_oauth_ui/CliOAuthInteraction/show_success)
- [`show_notice()`](https://reference.langchain.com/python/deepagents-code/mcp_oauth_ui/CliOAuthInteraction/show_notice)
- [`show_error()`](https://reference.langchain.com/python/deepagents-code/mcp_oauth_ui/CliOAuthInteraction/show_error)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/d1c6946218b4f0f86ab7b02b6bb6af1e4b75cede/libs/code/deepagents_code/mcp_oauth_ui.py#L97)