Skip to Content
AgentsConnect Codex

Connect Gavana to Codex

One command registers Gavana’s hosted MCP server in Codex, and Codex opens the browser sign-in by itself. The same steps, with copy buttons, are in Gavana under Settings → Connect an agent → Codex (open them ).

Prerequisites

  • The codex command on your PATH
  • Optional: the Gavana CLI, if you want it to run the command for you

Connect

Add the MCP server

codex mcp add gavana --url https://app.gavana.ai/mcp

Codex opens your browser for sign-in straight away.

If the browser did not open

codex mcp login gavana

Click Connect on the Gavana page

Gavana’s approval page names the app asking for access and shows Connecting as with your email. If that is the right account, review the permissions and click Connect.

Verify

Ask for something read-only:

Using Gavana, list my canvases and read the most recently updated one. Report its handle, revision, node count, and connection count. Do not change anything.

With the Gavana CLI installed, gavana mcp install codex runs the same codex mcp add command for you, and gavana mcp config codex prints the client, transport, endpoint, server name, and exact command without running anything — useful for review, for a runbook, or for registering by hand.

You can also let Codex do all of it: in Settings → Connect an agent, click Copy message under Let your agent set it up and paste it into Codex.

Resulting permission surface

Normal connection

Codex lists 17 core hosted tools and can call every other hosted tool by exact name. The OAuth consent asks for eight permissions: canvas:read, canvas:write, asset:read, element:read, element:write, image:generate, video:generate, and job:manage.

Codex asks for every permission the authorization server advertises, including reference:extract. Gavana narrows that request to what the MCP server can grant, so the consent screen still shows the same eight.

generate_image_in_canvas and generate_video can charge among the listed tools; edit_image_in_canvas, generate_product_photoshoot_in_canvas, run_canvas_workflow, recipe_run, and work_execute can charge when called by name. Cost exposure: real.

Read-only connection

Turn on Read-only access in Gavana’s Codex steps before you copy the command, or run gavana mcp install codex --read-only. Either registers a separate server named gavana-readonly whose consent asks only for canvas:read and element:read: Codex can read canvases and Elements, but cannot view image assets, make changes, or generate. Cost exposure: none.

Want the wider tool surface instead?

The hosted listing is deliberately compact. If you want the local surface — Image Actions, Recipe forking, node-level operations, connection modes, uploads from local files, Run control — register the local stdio server instead:

gavana mcp config local

That prints the command (npx -y @gavana.ai/mcp@0.5.1) and where it reads credentials from: your active Gavana CLI profile, or inherited GAVANA_BASE_URL and GAVANA_AGENT_TOKEN variables. Register it with Codex as a stdio server running that command. The credential’s scopes, not the tool list, define what Codex can do.

Alternative: use the CLI directly

Codex can also just run the Gavana CLI as a shell tool. That gives you deterministic JSON output, exit codes, --jq selection, and webhooks — none of which MCP offers. For scripted or CI work, this is often the better fit:

gavana canvas list --limit 25 --jq '.canvases[].handle' -r

Disconnect

codex mcp remove gavana

Then revoke the connection in Gavana under Settings → Connect an agent → Connected. Revocation takes effect immediately.

Troubleshooting

SymptomCauseFix
gavana mcp install codex fails immediatelycodex is not on PATHInstall Codex, or run gavana mcp config codex and register by hand
Sign-in never completesBrowser could not reach the loopback callbackRun codex mcp login gavana; on a headless machine use the local server with a token instead
“Already have a server called gavana”An older entry uses the same namecodex mcp remove gavana, then add it again
Registered to the wrong environmentA --base-url or a profile pointed elsewhereRe-run with --base-url https://app.gavana.ai, or select the right --profile
Writes are refusedRead-only connection, or a token or local filter without write scopesReconnect without Read-only access, or remove GAVANA_MCP_READ_ONLY
Last updated on