Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

1.4 KB
Raw Blame
---
id: doctor
title: Doctor (Reconfigure)
---

`mercury doctor` re-runs the setup wizard with your current values pre-filled. Press **Enter** on any field to keep it unchanged, or type a new value to replace it.

- **API keys** are shown masked: `sk-x••••4f2a`
- **Providers and models** can be reselected; Mercury fetches models again for changed credentials
- **Telegram token** — type `none` to disable Telegram, or paste a token to start the pairing-code flow
- **Daily budget** — change the token budget limit

```bash
mercury doctor
```

## Platform Diagnostics

Use `--platform` to run a non-destructive compatibility check for your current environment:

```bash
mercury doctor --platform
```

This prints:

- OS + architecture
- Node.js version
- Terminal + TTY/raw-mode capability
- SSH/CI detection
- Daemon status
- Spotify inline-art support status
- Keybinding fallbacks (`/view`, `/ws exit`, etc.)

## MCP Servers

Use `--mcp` to connect to every enabled [MCP server](../integrations/mcp) and report its health:

```bash
mercury doctor --mcp
```

Each server is listed as connected (with its tool count and how many tools are allowed), failed (with the reason and the end of the server's stderr), or disabled. Configuration problems, literal secrets in `mercury.yaml`, and tools skipped because their schema can't be used are listed too. The command exits with status 1 if any server fails, so it can be used in scripts.