Test execution issues
Use this guide when tests fail to start, an agent cannot reach the HeyBug MCP server, or a run behaves differently from the last one.
Use this guide when tests fail to start, an agent cannot reach the HeyBug MCP server, or a run behaves differently from the last one. Work through the sections in order. If the app itself is not reachable, start with Application detection.
Start with doctor
heybug doctor checks the CLI, your sign-in, the server, the project config, the tunnel and the agent setup, and stops at the first failure with a plain-English fix:
heybug doctorLines that end in ok passed. Fix the first line that ends in fail, then run doctor again.
Check the install and the server
Confirm the CLI is installed and which version it is:
heybug versionThere is no --version flag; use the version command. If the command is not found, see Install.
Confirm the HeyBug API answers from your machine:
curl https://opentest.nagara.cloud/api/healthzOn Windows PowerShell:
Invoke-RestMethod -Uri "https://opentest.nagara.cloud/api/healthz"A healthy server replies with its version. Doctor fails when that version and your CLI version disagree; upgrade the CLI with the install one-liner.
Reconnect the MCP server in your editor
Most "the tools disappeared" problems are a stale MCP connection in the editor, not a HeyBug fault.
Cursor
- Open Settings → MCP.
- Find
heybugin the server list and switch it off. - Wait a few seconds, then switch it on again and wait for the green status dot.
- If the tools still do not appear, press
Cmd+Shift+P(Ctrl+Shift+Pon Windows and Linux), run Developer: Reload Window.
VS Code
- Open
.vscode/mcp.jsonin the project and check theheybugentry matches the block from/connectorheybug mcp-config vscode. - Press
Cmd+Shift+P(Ctrl+Shift+Pon Windows and Linux), run MCP: List Servers, selectheybugand restart it. - If it still fails, run Developer: Reload Window.
Claude Code and other clients
Remove and add the server again with the block from MCP clients. To print a fresh block for any supported client, run:
heybug mcp-config <client>The output carries a <KEY> placeholder, never your token. Replace it with a key from API keys (/settings/tokens).
Verify the connection
After reconnecting:
heybugappears in the editor's MCP server list with a connected status.- Asking the agent to list HeyBug projects returns your projects.
heybug auth statusshows the workspace and the scopes of the key in use.
A 401 or "auth error" means the key is missing, expired or lacks a scope. See Token errors.
Start the run again from a clean state
When a run keeps failing in the same odd way, start fresh rather than patching it:
-
Cancel any run still in progress for the project. Do not start a second run until the first has finished or been cancelled.
-
Start the run again from the CLI or the agent:
heybug runs start --project <projectId> -
If the saved tests no longer match the app, regenerate the affected case instead of rerunning it. See Key terms for the difference between rerun and regenerate.
Common error messages
command not found: heybug
- Check that
~/.local/bin(or yourHEYBUG_INSTALL_DIR) is on yourPATH. - Open a new terminal, or restart the editor so it picks up the new
PATH.
Server connection failed
- Check your internet connection and any proxy or firewall rules for
opentest.nagara.cloud. - Check that the key in your MCP config is complete and has no surrounding spaces or quotes.
Permission denied when installing
- Install to a folder you own, for example
HEYBUG_INSTALL_DIR=$HOME/.local/bin, rather than usingsudo.
The run timed out or results are still pending
See Troubleshooting, which covers run timeouts, missing results, tunnels and plan limits.
When to contact support
If doctor passes and runs still fail, contact support with:
- the output of
heybug versionandheybug doctor; - your editor or agent name and version, and your operating system;
- the run URL and the time it failed;
- your MCP config with the key removed.
Never send passwords, tokens or API keys.