# Connect a client

URL: https://docs.ajusteur.com/mcp/connect

Claude Code, Codex, Cursor, VS Code, Gemini CLI and any other MCP client

The server is one address and one header.

```text
https://ajusteur.com/api/mcp
Authorization: Bearer aj_…
```

You need an API token first. [Create one](/authentication#create-an-api-token) and keep it in your environment.

```bash
export AJUSTEUR_API_TOKEN="aj_…"
```

<Callout type="info" title="What we tested">
  We installed and ran the Claude Code and Codex entries below ourselves. The entries for other clients follow each client's own documentation. If one is out of date, the address and the header above are all your client needs.
</Callout>

## Claude Code [#claude-code]

Install the [plugin](/mcp/skill). You get the server and the skill, and Claude Code stores the token.

```bash
claude plugin marketplace add chiekh-a/ajusteur-mcp
claude plugin install ajusteur@ajusteur
```

Or add the server on its own:

```bash
claude mcp add --transport http ajusteur https://ajusteur.com/api/mcp \
  --header "Authorization: Bearer $AJUSTEUR_API_TOKEN"
```

## Codex [#codex]

Codex reads the token from your environment each time it starts.

```bash
codex mcp add ajusteur --url https://ajusteur.com/api/mcp \
  --bearer-token-env-var AJUSTEUR_API_TOKEN
```

That writes this entry, which you can also add by hand:

```toml title="~/.codex/config.toml"
[mcp_servers.ajusteur]
url = "https://ajusteur.com/api/mcp"
bearer_token_env_var = "AJUSTEUR_API_TOKEN"
```

Add the skill with `npx skills add chiekh-a/ajusteur-mcp -a codex`.

## Cursor [#cursor]

```json title=".cursor/mcp.json"
{
  "mcpServers": {
    "ajusteur": {
      "url": "https://ajusteur.com/api/mcp",
      "headers": { "Authorization": "Bearer ${env:AJUSTEUR_API_TOKEN}" }
    }
  }
}
```

Use `~/.cursor/mcp.json` to have it in every project. Cursor can also add the same entry from a link. Paste this into your browser's address bar:

```text
cursor://anysphere.cursor-deeplink/mcp/install?name=ajusteur&config=eyJ1cmwiOiJodHRwczovL2FqdXN0ZXVyLmNvbS9hcGkvbWNwIiwiaGVhZGVycyI6eyJBdXRob3JpemF0aW9uIjoiQmVhcmVyICR7ZW52OkFKVVNURVVSX0FQSV9UT0tFTn0ifX0=
```

The link carries no token. It tells Cursor to read `AJUSTEUR_API_TOKEN` from your environment. Add the skill with `npx skills add chiekh-a/ajusteur-mcp -a cursor`.

## VS Code with GitHub Copilot [#vs-code-with-github-copilot]

VS Code asks for the token once and stores it.

```json title=".vscode/mcp.json"
{
  "inputs": [
    { "type": "promptString", "id": "ajusteur-token", "description": "Ajusteur API token", "password": true }
  ],
  "servers": {
    "ajusteur": {
      "type": "http",
      "url": "https://ajusteur.com/api/mcp",
      "headers": { "Authorization": "Bearer ${input:ajusteur-token}" }
    }
  }
}
```

## GitHub Copilot CLI [#github-copilot-cli]

```bash
copilot mcp add --transport http ajusteur https://ajusteur.com/api/mcp \
  --header "Authorization: Bearer $AJUSTEUR_API_TOKEN"
```

## Gemini CLI [#gemini-cli]

```bash
gemini mcp add --transport http \
  --header "Authorization: Bearer $AJUSTEUR_API_TOKEN" \
  ajusteur https://ajusteur.com/api/mcp
gemini skills install https://github.com/chiekh-a/ajusteur-mcp
```

## More clients [#more-clients]

Each of these takes the address and the header in its own settings file.

| Client | File | Entry |
| --- | --- | --- |
| Zed | settings, under `context_servers` | `"ajusteur": { "url": "https://ajusteur.com/api/mcp", "headers": { "Authorization": "Bearer aj_…" } }` |
| Cline | `cline_mcp_settings.json`, under `mcpServers` | `"ajusteur": { "type": "streamableHttp", "url": "https://ajusteur.com/api/mcp", "headers": { "Authorization": "Bearer aj_…" } }` |
| Roo Code | `.roo/mcp.json`, under `mcpServers` | `"ajusteur": { "type": "streamable-http", "url": "https://ajusteur.com/api/mcp", "headers": { "Authorization": "Bearer aj_…" } }` |
| opencode | `opencode.jsonc`, under `mcp` | `"ajusteur": { "type": "remote", "url": "https://ajusteur.com/api/mcp", "oauth": false, "headers": { "Authorization": "Bearer {env:AJUSTEUR_API_TOKEN}" } }` |
| Amp | `~/.config/amp/settings.json`, under `amp.mcpServers` | `"ajusteur": { "url": "https://ajusteur.com/api/mcp", "headers": { "Authorization": "Bearer ${AJUSTEUR_API_TOKEN}" } }` |
| Kiro | `.kiro/settings/mcp.json`, under `mcpServers` | `"ajusteur": { "url": "https://ajusteur.com/api/mcp", "headers": { "Authorization": "Bearer ${AJUSTEUR_API_TOKEN}" } }` |
| Junie | `.junie/mcp/mcp.json`, under `mcpServers` | `"ajusteur": { "url": "https://ajusteur.com/api/mcp", "headers": { "Authorization": "Bearer aj_…" } }` |
| Warp | Settings, Agents, MCP servers | `"ajusteur": { "url": "https://ajusteur.com/api/mcp", "headers": { "Authorization": "Bearer aj_…" } }` |

## Chat apps [#chat-apps]

The Claude apps and ChatGPT add custom connectors through an OAuth sign in. This server takes API tokens only, so it cannot be added there yet. To use it from your own code with those models, see [Build your own agent](/guides/own-agent).

## curl [#curl]

Three calls show the whole conversation. `initialize` is optional, since there is no session.

<Tabs items={["initialize", "tools/list", "tools/call"]}>
<Tab value="initialize">

```bash
curl -sS https://ajusteur.com/api/mcp \
  -H "Authorization: Bearer $AJUSTEUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"my-agent","version":"1.0"}}}'
```

</Tab>
<Tab value="tools/list">

```bash
curl -sS https://ajusteur.com/api/mcp \
  -H "Authorization: Bearer $AJUSTEUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
```

</Tab>
<Tab value="tools/call">

```bash
curl -sS https://ajusteur.com/api/mcp \
  -H "Authorization: Bearer $AJUSTEUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"families_list","arguments":{}}}'
```

</Tab>
</Tabs>

## Check that it works [#check-that-it-works]

Ask your agent what Ajusteur can design. It should call `families_list` and answer with wardrobes, pieces and kitchens. If it cannot reach the server, [check your token](/authentication#check-your-token).

## OpenAPI clients [#openapi-clients]

Tools that read OpenAPI can load [openapi.json](https://ajusteur.com/api/mcp/openapi.json). The [HTTP API](/http) section renders the same document.

