Skip to Content
HeyBug docs
MCP

Copy-paste MCP config for each agent

Each coding agent reads its MCP servers from a config file.

Each coding agent reads its MCP servers from a config file. This page gives the exact snippet for each one, so you can paste it and restart the agent. The snippets match the setup page at /connect, which fills in your key for you.

Use the remote server for most agents. Use the local heybug mcp command when the tools must read your project folder or reach localhost.

Before you start

  1. Create a key. Open API keys (/settings/tokens), create one and copy it. It is shown once.
  2. Pick a snippet. Replace YOUR_KEY (or <your token> for the local command) with that key.
  3. Restart the agent, then ask it to check the account.

Never commit a file that holds your key. Add the config file to .gitignore, or keep the key in your user config.

Claude Code

Run this in a terminal. It adds the remote server to Claude Code.

claude mcp add --transport http heybug https://opentest.nagara.cloud/api/mcp \
  --header "Authorization: Bearer YOUR_KEY"

Claude Code stores the entry itself, so there is no file to edit by hand.

Cursor

Add this to .cursor/mcp.json in your project folder. On macOS, Linux and Windows the path is the same, with \ on Windows.

{
  "mcpServers": {
    "heybug": {
      "url": "https://opentest.nagara.cloud/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_KEY" }
    }
  }
}

VS Code

Add this to .vscode/mcp.json in your project folder. The key is servers, not mcpServers.

{
  "servers": {
    "heybug": {
      "type": "http",
      "url": "https://opentest.nagara.cloud/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_KEY" }
    }
  }
}

Codex (local command)

Codex runs the local command. Add this to your Codex config file, ~/.codex/config.toml on macOS and Linux, or %USERPROFILE%\.codex\config.toml on Windows.

[mcp_servers.heybug]
command = "heybug"
args = ["mcp"]

[mcp_servers.heybug.env]
HEYBUG_SERVER = "https://opentest.nagara.cloud"
HEYBUG_TOKEN = "<your token>"

The heybug command must be on your PATH. Run heybug version in a terminal to check.

Other clients

Clients that read a mcpServers block take the local command form:

{
  "mcpServers": {
    "heybug": {
      "command": "heybug",
      "args": ["mcp"],
      "env": { "HEYBUG_SERVER": "https://opentest.nagara.cloud", "HEYBUG_TOKEN": "YOUR_KEY" }
    }
  }
}

To print a block for any supported client from your terminal, run heybug mcp-config <client>. Supported clients are claude, cursor, trae, antigravity, vscode, codex, other and stdio. The output never includes your token: it carries the <KEY> placeholder, which you replace with the key you copied from /settings/tokens. stdio prints the local heybug mcp command; every other client prints the remote server config (the same block shown at /connect).

Working example

After you restart, paste this into the agent:

Check that HeyBug is connected.

The agent calls heybug_check_account and reports your user, workspace, role and plan. Then try:

Test https://staging.crate.so with HeyBug.

The agent calls heybug_run and reports the counts and each failing case. Every tool is listed in the MCP guide.

Where each file lives

ClientFilemacOS, Linux, Windows
Claude CodeWritten by claude mcp addSame command on all three
Cursor.cursor/mcp.jsonIn the project folder
VS Code.vscode/mcp.jsonIn the project folder
Codexconfig.toml~/.codex/ on macOS and Linux, %USERPROFILE%\.codex\ on Windows

On Windows PowerShell, set the token first with $env:HEYBUG_TOKEN = "YOUR_KEY", then run heybug mcp in the same window.

When it fails

  • 401. The key is missing, wrong or revoked. Create a new key at /settings/tokens and paste it again.
  • 403. The request Origin does not match the server. Native clients send no origin, so check for a browser-based client.
  • The tool list is empty or old. Restart the agent. Compare with GET https://opentest.nagara.cloud/api/mcp/tools.
  • heybug: command not found. Put the CLI on your PATH, then open a new terminal.
  • Setup page does not show a key. Sign in and open /connect again, or read the full steps in MCP.

Related guides: Getting started, CLI, Troubleshooting.

On this page