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

# Quickstart: Codex

> Connect Codex to Gesso with one command. The CLI, the IDE extension and the Codex app share the connection.

Codex CLI, the Codex IDE extension and Codex in the ChatGPT desktop app read
one configuration file, so you connect once and Gesso is available in all
three. The same steps are guided in the app at
[app.gesso.build/connect](https://app.gesso.build/connect), which also shows
when the connection has landed.

**1. Add the server**

In your terminal:

```bash theme={null}
codex mcp add gesso --url https://app.gesso.build/api/mcp/v1
```

Codex detects that the server uses OAuth and opens a browser tab on Gesso
right away. There is no API key to copy.

**2. Approve the connection**

Approve on the Gesso page and return to the terminal. Codex prints
"Successfully logged in to MCP server 'gesso'".

If no browser tab opened, or you need to sign in again later:

```bash theme={null}
codex mcp login gesso
```

Your agent now appears as **Codex** under **Settings**, **Connected
agents** in Gesso, where you can revoke it at any time.

**3. Try it**

Open Codex (`codex` in a project, or the IDE extension) and paste one of
these:

```text theme={null}
Use the Gesso MCP to bring this app's screens onto a new Gesso canvas.
Start the dev server, capture each main route, and keep every screen in
the same Gesso project.
```

```text theme={null}
Use the Gesso MCP to export my latest Gesso project into design/, then
read design/design.md before you build any UI.
```

Keep the project open in a browser tab: new screens appear on the canvas
while your agent works.

## Good to know

* **Approvals.** Codex runs Gesso's read-only tools (search, export, critique,
  the poll) without asking. Tools that generate or edit a screen spend your
  credits, so Codex asks before each one. To change that for the whole
  server, set `default_tools_approval_mode` under `[mcp_servers.gesso]` in
  `~/.codex/config.toml`.
* **The IDE extension.** It reads the same `~/.codex/config.toml`. If
  `gesso` does not show up after you add it, reload the window.
* **Project scope.** To connect Gesso for one repository only, put the same
  entry in that repository's `.codex/config.toml` (trusted projects only).

## If something is refused

A `403` with `mcp_paid_plan_required` means the account is on Free. Upgrade
under **Settings**, **Plan** and call again; there is no need to reconnect.
More in [Troubleshooting](https://docs.gesso.build/mcp/troubleshooting.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.