# Codex

Connect Codex to Rabt with one command or the config file.

## The command

```bash
codex mcp add rabt --url https://api.rabt.systems/mcp
```

Or put this in `~/.codex/config.toml`:

```toml
[mcp_servers.rabt]
url = "https://api.rabt.systems/mcp"
```

## Steps

1. Run the command or add the file.
2. Sign in with `codex mcp login rabt`: Rabt’s own page opens; choose the organizations and permissions and approve once.

## Try this first

```text
Show me the organizations I can reach in Rabt, then tell me how many open tickets each has.
```

## Good to know

- With no credentials Codex connects unsigned, which is enough to read the public guide.
- We have not verified that Codex starts the sign-in by itself when permission is needed after connecting; run `codex mcp login rabt` when you add the server.

> **Source:** [MCP in Codex](https://developers.openai.com/codex/mcp).
