Skip to content

Set up your client

Add, log in and verify — for Claude Code, Codex, Cursor, VS Code, Gemini CLI, Claude Desktop and stdio-only clients.

Updated View as Markdown

Same three moves everywhere: add the server, log in, verify. Every example asks for all toolsets, which is the right default — narrow it later if you want a smaller tool list, see Toolsets.

1. Add

claude mcp add --transport http heizen https://api.studio.heizen.work/mcp \
  -H "x-heizen-toolsets: all"

2. Log in

claude mcp login heizen

Your browser opens for approval. /mcp inside a session does the same thing if you’d rather stay in the TUI.

3. Verify

claude mcp get heizen

Signing out later: claude mcp logout heizen.

1. Add

codex mcp add heizen --http-header "x-heizen-toolsets=all" \
  -- https://api.studio.heizen.work/mcp

Or write it to ~/.codex/config.toml by hand (a project-level .codex/config.toml takes precedence):

~/.codex/config.tomltoml
[mcp_servers.heizen]
url = "https://api.studio.heizen.work/mcp"
auth = "oauth"
http_headers = { "x-heizen-toolsets" = "all" }

2. Log in

codex mcp login heizen

3. Verify

codex mcp list

Signing out later: codex mcp logout heizen.

1. Add

~/.cursor/mcp.jsonjson
{
  "mcpServers": {
    "heizen": {
      "url": "https://api.studio.heizen.work/mcp",
      "headers": { "x-heizen-toolsets": "all" }
    }
  }
}

Use .cursor/mcp.json inside a repo to scope the server to one project.

2. Log in

Open Settings → MCP. The heizen row shows Needs login — click it to start the browser approval.

3. Verify

The row turns green with the tool count next to it. Ask the agent to run whoami to confirm the account.

1. Add

.vscode/mcp.jsonjson
{
  "servers": {
    "heizen": {
      "type": "http",
      "url": "https://api.studio.heizen.work/mcp",
      "headers": { "x-heizen-toolsets": "all" }
    }
  }
}

Or from the command line:

code --add-mcp '{"name":"heizen","type":"http","url":"https://api.studio.heizen.work/mcp"}'

2. Log in

Run MCP: List Servers from the command palette, pick heizen, then Start Server — VS Code opens the browser for approval. It also prompts on the agent’s first tool call.

3. Verify

Same MCP: List Servers entry shows Running; Show Output has the handshake if it doesn’t.

1. Add

~/.gemini/settings.jsonjson
{
  "mcpServers": {
    "heizen": {
      "httpUrl": "https://api.studio.heizen.work/mcp",
      "headers": { "x-heizen-toolsets": "all" }
    }
  }
}

httpUrl is what selects the streamable-HTTP transport — url would try SSE.

2. Log in

/mcp auth heizen

3. Verify

/mcp list

1. Add

Settings → Connectors → Add custom connector, paste https://api.studio.heizen.work/mcp.

2. Log in

Click Connect on the connector and approve in the browser.

3. Verify

The connector lists its tools once connected.

The connector UI can’t send custom headers, so you get the core toolset only. For the rest, use the stdio bridge on the next tab.

Clients that only speak stdio — Windsurf, Zed, older desktop apps — bridge through mcp-remote, which runs the OAuth flow for them.

1. Add

{
  "mcpServers": {
    "heizen": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote",
        "https://api.studio.heizen.work/mcp",
        "--header", "x-heizen-toolsets: all"
      ]
    }
  }
}

2. Log in

The first launch opens your browser automatically; tokens are cached in ~/.mcp-auth. To force a fresh sign-in, rm -rf ~/.mcp-auth and restart the client.

3. Verify

Ask the agent to run whoami.

Anything that speaks streamable HTTP directly can skip the bridge and use the endpoint as-is — the server advertises /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server, so a compliant client discovers and registers itself with no extra configuration.

What the browser step is actually doing is covered in Authentication.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close