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
noneto disable Telegram, or paste a token to start the pairing-code flow - Daily budget — change the token budget limit
mercury doctor
Platform Diagnostics
Use --platform to run a non-destructive compatibility check for your current environment:
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 and report its health:
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.