# Add an MCP client

> Connect an MCP client with browser sign-in or a personal access token.

Source: https://docs.onedoor.team/mcp-clients/
All docs in one file: https://docs.onedoor.team/llms-full.txt

The dashboard's **Connect an agent** page shows these commands with your own
endpoint already filled in. Open it at
`https://app.onedoor.team/org/<company>/connect`, where `<company>` is your
company's short name (the company slug).

The endpoint depends on where OneDoor runs:

| Where | Endpoint |
| --- | --- |
| Hosted | `https://app.onedoor.team/mcp` |
| Self-host | `<your origin>/mcp` |

The hosted address is the same for every company: signing in decides which
company you reach. If you belong to more than one company, pick it on the consent page.

In claude.ai, adding a custom connector needs a paid Claude plan, and on Team or
Enterprise plans only an owner can add one.

You can also connect with a [personal access token](/api-keys#connect-an-mcp-client) as the Authorization bearer on your company's own address, `https://app.onedoor.team/org/<company>/mcp`. The **Personal access token** tab on a company's Connections page shows that address filled in.

Most clients load MCP servers only at startup. After you add OneDoor, restart
the client or open a new session before its tools appear.

## ChatGPT

Use **Plugins → Add → Add custom MCP server**. Name it **OneDoor**, enter your
endpoint, choose **OAuth**, then click **Create as a plugin** and **Connect**.
Sign in and approve access.

Start a new chat and ask: **Show me the apps and tools available in my OneDoor workspace.**

See [OpenAI's plugin guide](https://learn.chatgpt.com/docs/plugins) for supported
surfaces and installation details.

## Codex

Add the MCP server directly:

```bash
codex mcp add onedoor --url 'https://app.onedoor.team/mcp'
codex mcp login onedoor
```

Sign in to OneDoor, choose your company and approve access, then start a
new session.

## Claude Code

Claude Code has its own command. `--scope user` adds OneDoor for every project.

1. **Add the server.**

   ```bash
   claude mcp add --transport http --scope user onedoor 'https://app.onedoor.team/mcp'
   ```

2. **Run /mcp inside Claude Code.** It opens OneDoor in your browser.
3. **Sign in and approve.** Choose a company, then approve the connection.

## Cursor and other clients

Use the installer. It detects the client and writes its configuration for you.

**Installer**

```bash
npx add-mcp 'https://app.onedoor.team/mcp' --transport http --name onedoor
```

**By hand**

```json
{
  "mcpServers": {
    "onedoor": {
      "type": "http",
      "url": "https://app.onedoor.team/mcp"
    }
  }
}
```

If your client does not accept the installer, merge the configuration above into
its MCP file by hand.

Clients that support this format read a `mcpServers` map, and
OneDoor needs nothing beyond a streamable HTTP URL. Sign-in happens in your
browser the first time the client connects.

## Choosing where approvals appear

By default the agent relays an approval request to you and answers on your
behalf with `resume`. To answer in your browser instead, add the mode to the URL
before you connect:

```bash
claude mcp add --transport http --scope user onedoor 'https://app.onedoor.team/mcp?elicitation_mode=browser'
```

The mode is fixed when the connection is approved. To change it, connect again
with the new URL. See [The MCP endpoint](/mcp) for what each mode does.

## Check that it worked

Ask the agent to run this:

```js
return await tools.search({ namespace: "executor" });
```

It should return callable paths for the built-in `executor` app. If the tool list is
empty, the client has not reconnected since you added the server.
