Skip to Content
DocsAINOX PLATFORM

Connect an MCP client

Add App Builder's MCP server to Claude Code, Cursor, VS Code or Codex, or call it over plain HTTP.

Every client needs the same two things: the MCP endpoint, and an API key with the App Builder (MCP) scope sent as Authorization: Bearer <key>. App Builder over MCP shows how to create the key.

Copy the endpoint

Open Settings › API access. Under Connect App Builder, the MCP endpoint field holds the address for this AINOX installation, ending in /v1/mcp/builder. Click its copy button. The examples below write it as <endpoint>.

The same section has every snippet on this page with your endpoint already filled in, one tab per client, each with its own copy button.

The Connect App Builder section, Cursor tab

Keep the key in a variable

The snippets read the key from an AINOX_API_KEY environment variable, so it never lands in a file you might commit:

export AINOX_API_KEY="<your key>"

Add the server

Add it for yourself, in every project:

claude mcp add --transport http --scope user ainox <endpoint> \
  --header "Authorization: Bearer $AINOX_API_KEY"

Your shell expands $AINOX_API_KEY before the command runs, so Claude Code stores the key itself in ~/.claude.json. After you rotate the key, run the command again.

To keep the key out of files, use .mcp.json instead, in a repository or your home folder. Claude Code expands ${AINOX_API_KEY} each time it starts, so the file holds only the variable's name and each teammate uses their own key:

.mcp.json
{
  "mcpServers": {
    "ainox": {
      "type": "http",
      "url": "<endpoint>",
      "headers": { "Authorization": "Bearer ${AINOX_API_KEY}" }
    }
  }
}

Run /mcp inside Claude Code to check that ainox is connected.

Check the connection

Ask your agent to "list my AINOX apps". It should call list_apps and show your most recently updated apps in the key's workspace. If it is refused, see Troubleshooting.

Coming from the old App Builder

The old App Builder's server had a different address and accepted the key in an x-api-key header. Neither works here. In an old config:

  1. Replace the URL (it ended in /api/mcp/code/mcp) with the endpoint from Connect App Builder.
  2. Replace x-api-key: <key> with Authorization: Bearer <key>.
  3. Create a new key with the App Builder (MCP) scope: keys from the old App Builder do not carry over.
  4. Send the key on tools/list too. The old server listed its tools without a key; this one answers every request without a key with Missing or malformed Authorization header.
  5. Rename list_threads, get_thread and create_thread in any saved prompts or scripts to list_apps, get_app and create_app, and threadId to appId.

On this page