# Codex

The Codex CLI reads MCP servers from `~/.codex/config.toml` and supports Streamable HTTP servers with custom headers.

## Automatic

```sh
npx @justclaw-it/cli init
```

## Manual

Add to `~/.codex/config.toml`:

```toml
[mcp_servers.justclaw-it]
url = "https://justclaw.it.com/mcp"
http_headers = { "Authorization" = "Bearer <YOUR_API_KEY>" }
```

Replace `<YOUR_API_KEY>` with your key.

## Check it

Start Codex and run `/mcp`: `justclaw-it` should be listed with its tools.

## Try it

> Use JustClaw-It to find a Rust CLI argument parsing example with a permissive licence and adapt it to this crate.

Problems: [Troubleshooting](/docs/troubleshooting).
