Skip to content
BadBit Documentation
Sign in Download the beta

Connect your AI assistant

This guide shows, step by step, how to connect to BadBit CAD the AI assistants that run on your computer: Claude Desktop, Claude Code, Codex (OpenAI), Cursor, VS Code (GitHub Copilot), Windsurf, Gemini CLI and Zed. For each one: the easiest way (from BadBit itself), the manual way (the exact file, on each system), how to tell it connected and the common problems.

What the AI can do once connected, the modes and security are in the guide Controlling BadBit with AI (MCP).

Cloud-only services (such as ChatGPT on the web and its developer-mode connectors) only reach servers on the internet: they cannot reach BadBit, which only answers on your computer.

Before you start (once)

  1. Install BadBit CAD 2027.0.0-beta.8 or newer.
  2. Open BadBit and turn the AI on: Options > AI (MCP) > Allow AI assistants to control BadBit (MCP) (or the AI button on the status bar). Read the window about what the AI will be able to do and the risks, tick I understand the risks and authorize it and click Turn on AI (MCP).
  3. Install your AI assistant, if you do not have it yet.

The easiest way: from BadBit

Since 2027.0.0-beta.11

In Options > AI (MCP), right below the switch, there is Connect to an assistant, with a button for each assistant:

  1. Click your assistant's button. A window opens with the short steps and the settings ready for this computer (with the right path to BadBit).
  2. Click Set up automatically. BadBit tells you which file it will change and asks first; when you confirm, it keeps a copy of the file next to it (<file>.badbit-backup-YYYYMMDD-HHMMSS) and adds only the badbit server: the other servers and settings stay as they are. For Claude Code, BadBit runs the claude mcp add command for you.
    • Prefer to do it by hand? Click Copy and paste into the file the window shows.
  3. Follow steps 2 and 3 in the window (usually: reopen the assistant and check its list of servers).

To check the BadBit side, click Test the connection (in the same section): it tells you whether the local channel is answering, whether AI (MCP) is on, which assistant connected last (with its name) and the local HTTP address, if on. With an assistant connected, the status bar shows "AI connected" and its name.

Options > AI (MCP) > Connect to an assistant
The Connect to Claude Desktop window, with the settings ready

The settings, in any assistant

All the assistants below call the same program, with the same arguments:

  • the program: the full path of BadBit:

    SystemPath (default install)
    macOS/Applications/BadBit CAD.app/Contents/MacOS/badbit-shell
    WindowsC:\Users\<you>\AppData\Local\Programs\BadBit\CAD\BadBit CAD.exe
    Linux/home/<you>/.local/share/badbit/programas/cad/badbit-cad
  • the arguments: mcp --aceito-ia 2. mcp is the automatic mode: with BadBit open, the assistant works in it and you see everything; with BadBit closed, it runs without a window. --aceito-ia 2 is your acceptance of the risks (the number is the notice version), which the windowless mode requires. To use only the open BadBit, use mcp --anexar instead.

In Windows JSON files, the backslashes of the path are doubled: "C:\\Users\\Ana\\AppData\\Local\\Programs\\BadBit\\CAD\\BadBit CAD.exe". In the examples below, replace <program> with the path for your system.

Step by step for each assistant

Claude Desktop

With the package (double click). Download BadBit-CAD-<version>.mcpb from the downloads page, double-click it, tick the required box I understand the risks and authorize it and confirm. The package finds BadBit by itself. Use the package of version 2027.0.0-beta.11 or newer: older ones did not connect in Claude Desktop (it waited until it gave up).

From BadBit or by hand. The file is claude_desktop_config.json:

SystemFile
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Windows (Claude from the Microsoft Store)%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json

In Claude Desktop, Settings > Developer > Edit Config opens that file. BadBit's Set up automatically writes both Windows files when Claude is the Microsoft Store one.

JSON
{
  "mcpServers": {
    "badbit": {
      "command": "<program>",
      "args": ["mcp", "--aceito-ia", "2"]
    }
  }
}

Then: quit Claude Desktop completely (Quit in the menu; closing the window is not enough) and open it again.

How to tell it connected: in the message box, click + and then Connectors: badbit appears, with its tools. BadBit shows "AI connected: Claude Desktop" on the status bar (in Claude's Cowork mode, "Claude Desktop (Cowork)").

Common problems:

  • The server does not appear or shows an error: see the reason in Settings > Developer; the log is in ~/Library/Logs/Claude/ on macOS (mcp.log and mcp-server-badbit.log) and in %APPDATA%\Claude\logs\ on Windows.
  • I edited the file and nothing changed (Windows): Claude from the Microsoft Store reads the copy inside its package (the table row above). Use Set up automatically, which writes both.
  • "Server disconnected" right away: the program path is wrong or has extra quotes; copy it again from BadBit.

Claude Code

From BadBit: Set up automatically runs the command below for you (it needs to find the claude command; if it does not, it says so and you run it in the terminal).

By hand, in the terminal (applies to all your projects):

Terminal
claude mcp add --transport stdio --scope user badbit -- "<program>" mcp --aceito-ia 2

Everything after -- goes to BadBit as is. Without --scope user, the server applies only to the folder you are in. To share it with your team in a project, use --scope project (writes the project's .mcp.json).

How to tell it connected: claude mcp list shows badbit ... ✔ Connected; inside Claude Code, /mcp shows badbit connected, with its tools.

Common problems:

  • "MCP server badbit already exists": run claude mcp remove --scope user badbit and add it again (BadBit does this by itself in Set up automatically).
  • "Failed to connect": check the program path with claude mcp get badbit.

Codex (OpenAI): CLI, IDE extension and app

Codex in the terminal, in the VS Code extension (and other IDEs) and in the app use the same file:

SystemFile
macOS and Linux~/.codex/config.toml (or $CODEX_HOME/config.toml)
Windows%USERPROFILE%\.codex\config.toml
TOML
[mcp_servers.badbit]
command = "<program>"
args = ["mcp", "--aceito-ia", "2"]
startup_timeout_sec = 30

On Windows, put the path in single quotes, which in TOML keep the backslashes as they are: command = 'C:\Users\Ana\AppData\Local\Programs\BadBit\CAD\BadBit CAD.exe'.

Or, in the terminal: codex mcp add badbit -- "<program>" mcp --aceito-ia 2.

Then: open a new Codex session (it reads the file when it starts).

How to tell it connected: in Codex, /mcp lists badbit with its tools; in the terminal, codex mcp list shows it too.

Common problems:

  • The server takes long and Codex gives up: startup_timeout_sec = 30 gives BadBit time to open the first time (the system check can take a while).
  • Error reading config.toml: a Windows path in double quotes needs doubled backslashes; use single quotes, as above.

Cursor

SystemFile
all~/.cursor/mcp.json (on Windows, %USERPROFILE%\.cursor\mcp.json); one project only: .cursor/mcp.json
JSON
{
  "mcpServers": {
    "badbit": {
      "type": "stdio",
      "command": "<program>",
      "args": ["mcp", "--aceito-ia", "2"]
    }
  }
}

Then: quit Cursor and open it again.

How to tell it connected: in Settings > MCP (Tools & Integrations), badbit appears enabled, with its tools. The log is in the Output panel, MCP Logs option.

VS Code (GitHub Copilot in agent mode)

From BadBit or, in VS Code, in the Command Palette (Ctrl+Shift+P; on a Mac, Cmd+Shift+P): MCP: Open User Configuration, and paste:

JSON
{
  "servers": {
    "badbit": {
      "type": "stdio",
      "command": "<program>",
      "args": ["mcp", "--aceito-ia", "2"]
    }
  }
}

The user file is ~/Library/Application Support/Code/User/mcp.json (macOS), %APPDATA%\Code\User\mcp.json (Windows) and ~/.config/Code/User/mcp.json (Linux); one project only, .vscode/mcp.json. The command line works too:

Terminal
code --add-mcp '{"name":"badbit","type":"stdio","command":"<program>","args":["mcp","--aceito-ia","2"]}'

Then: in the palette, MCP: List Servers > badbit > Start Server.

How to tell it connected: in Copilot Chat, in Agent mode, the tools button shows the badbit tools; MCP: List Servers shows its state and log.

Windsurf

SystemFile
macOS and Linux~/.codeium/windsurf/mcp_config.json
Windows%USERPROFILE%\.codeium\windsurf\mcp_config.json
JSON
{
  "mcpServers": {
    "badbit": {
      "command": "<program>",
      "args": ["mcp", "--aceito-ia", "2"]
    }
  }
}

Then: in the Cascade panel, click the refresh button of the MCP servers (or quit and open Windsurf).

How to tell it connected: badbit appears in Cascade's list of MCP servers, enabled.

Gemini CLI

SystemFile
macOS and Linux~/.gemini/settings.json
Windows%USERPROFILE%\.gemini\settings.json
JSON
{
  "mcpServers": {
    "badbit": {
      "command": "<program>",
      "args": ["mcp", "--aceito-ia", "2"]
    }
  }
}

Or, in the terminal: gemini mcp add -s user badbit "<program>" mcp --aceito-ia 2 (without -s user, it applies only to the project you are in).

Then: open gemini again.

How to tell it connected: /mcp shows badbit as CONNECTED, with its tools; in the terminal, gemini mcp list.

Zed

SystemFile
macOS and Linux~/.config/zed/settings.json
Windows%APPDATA%\Zed\settings.json

In Zed, zed: open settings opens the file. Paste the context_servers part inside the main object (the comments and the rest of the file stay; BadBit's Set up automatically keeps them too):

JSON
{
  "context_servers": {
    "badbit": {
      "command": "<program>",
      "args": ["mcp", "--aceito-ia", "2"],
      "env": {}
    }
  }
}

Then: Zed reloads it when you save.

How to tell it connected: in the Agent panel, under Settings > MCP Servers, the dot next to badbit turns green ("Server is active").

Other assistants

Any assistant that accepts a local MCP server over stdio works with the same program and the same arguments: Cline and Kiro use the mcpServers key with command and args, like Claude Desktop; JetBrains AI Assistant has the Settings > Tools > AI Assistant > Model Context Protocol (MCP) > Add screen (STDIO type). Clients that only speak HTTP use the local HTTP.

Common problems (all assistants)

The assistant says AI (MCP) is off

turn it on in Options > AI (MCP) or with the AI button on the status bar; the next request works, without restarting the assistant.

"No BadBit CAD is open"

(with mcp --anexar): open BadBit, or use the automatic mcp, which runs without a window when it is closed.

BadBit still opening

while the program is opening, the server waits a few seconds for the local channel to open, instead of refusing.

The assistant does not find the program

use the full path (assistants opened from the Dock or the Start menu do not have the terminal's PATH) and, in Windows JSON, doubled backslashes. BadBit's Copy already gets it right.

BadBit closed does not start

("asks for your explicit consent"): --aceito-ia 2 is missing from the arguments.

Nothing shows in the assistant

click Test the connection in BadBit. If the local channel answers and the last connected assistant shows with its name, BadBit is fine and the problem is on the assistant's side (reopen it and see its log). The other errors are in the guide Controlling BadBit with AI (MCP).

Search the documentation