> ## Documentation Index
> Fetch the complete documentation index at: https://help.mytruv.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Codex

> Connect MyTruv MCP to the OpenAI Codex CLI.

The [Codex CLI](https://github.com/openai/codex) supports MCP servers via the `codex mcp add` command or directly in `~/.codex/config.toml`.

<Warning>
  MyTruv MCP is only available on the Pro plan. [Upgrade to Pro](/billing/subscription-plans) to get started.
</Warning>

***

## Server URL

```
https://api.mytruv.com/mcp
```

***

## Option 1 - CLI command

```bash theme={null}
codex mcp add --transport http mytruv-mcp https://api.mytruv.com/mcp
```

Codex opens your browser to authorize access. Once signed in, MyTruv tools are available in new sessions.

***

## Option 2 - Edit config file

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

```toml theme={null}
[mcp_servers.mytruv-mcp]
url = "https://api.mytruv.com/mcp"
```

Restart Codex. On first use it prompts for OAuth sign-in.

***

## Next steps

<div className="mytruv-card-grid">
  <a className="mytruv-card" href="/mytruv-mcp/prompts">
    <span className="mytruv-card__icon">
      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round">
        <path d="M12 3l1.5 5L18 9l-4.5 1L12 15l-1.5-5L6 9l4.5-1z" />

        <path d="M19 12l.7 2.3L22 15l-2.3.7L19 18l-.7-2.3L16 15l2.3-.7z" />

        <path d="M5 16l.5 1.5L7 18l-1.5.5L5 20l-.5-1.5L3 18l1.5-.5z" />
      </svg>
    </span>

    <h3 className="mytruv-card__title">Try these prompts</h3>
    <p className="mytruv-card__body">Ready-to-use prompts for your first Codex sessions.</p>

    <span className="mytruv-card__arrow">
      <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
        <path d="M7 17L17 7" />

        <path d="M8 7h9v9" />
      </svg>
    </span>
  </a>

  <a className="mytruv-card" href="/mytruv-mcp/tools">
    <span className="mytruv-card__icon">
      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round">
        <path d="M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z" />
      </svg>
    </span>

    <h3 className="mytruv-card__title">Available tools</h3>
    <p className="mytruv-card__body">What Codex can query on your behalf.</p>

    <span className="mytruv-card__arrow">
      <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
        <path d="M7 17L17 7" />

        <path d="M8 7h9v9" />
      </svg>
    </span>
  </a>
</div>
