Skip to Content
HeyBug docs
Troubleshooting

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 doctor

Lines 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 version

There 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/healthz

On 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

  1. Open Settings → MCP.
  2. Find heybug in the server list and switch it off.
  3. Wait a few seconds, then switch it on again and wait for the green status dot.
  4. If the tools still do not appear, press Cmd+Shift+P (Ctrl+Shift+P on Windows and Linux), run Developer: Reload Window.

VS Code

  1. Open .vscode/mcp.json in the project and check the heybug entry matches the block from /connect or heybug mcp-config vscode.
  2. Press Cmd+Shift+P (Ctrl+Shift+P on Windows and Linux), run MCP: List Servers, select heybug and restart it.
  3. 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:

  • heybug appears in the editor's MCP server list with a connected status.
  • Asking the agent to list HeyBug projects returns your projects.
  • heybug auth status shows 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:

  1. Cancel any run still in progress for the project. Do not start a second run until the first has finished or been cancelled.

  2. Start the run again from the CLI or the agent:

    heybug runs start --project <projectId>
  3. 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 your HEYBUG_INSTALL_DIR) is on your PATH.
  • 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 using sudo.

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 version and heybug 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.

On this page