Codex
Codex connects to the hosted Gavana server over streamable HTTP with browser OAuth. Gavana shows these steps under Settings → Connect an agent → Codex (open them ).
One command
codex mcp add gavana --url https://app.gavana.ai/mcpCodex opens your browser for sign-in straight away. If it did not, run:
codex mcp login gavanaWith the Gavana CLI installed, gavana mcp install codex runs the same codex mcp add command for you. Codex is also the default client name, so bare gavana mcp install does the same thing. To see the command without executing it:
gavana mcp config codexThat prints the client, transport, endpoint, server name, and the exact command and arguments.
Then approve
Gavana’s approval page shows Connecting as with your email. Check it is the right account, review the permissions, and click Connect.
The consent screen asks for eight: canvas:read, canvas:write, asset:read, element:read, element:write, image:generate, video:generate, job:manage. Codex requests every scope the authorization server advertises, including reference:extract; Gavana narrows that request to what the MCP server can grant instead of refusing it.
No token is ever pasted into Codex or into your shell.
Resulting permission surface
Codex lists 17 core hosted tools — canvas reads and writes, task canvas creation, image import and generation, video, Elements, model discovery, and Run status — and can call every other hosted tool by exact name.
generate_image_in_canvas and generate_video can incur provider cost, and so can edit_image_in_canvas, generate_product_photoshoot_in_canvas, run_canvas_workflow, recipe_run, and work_execute when called by name. The server instructs the model to require explicit current-turn approval before calling them and never to auto-retry a failed paid call.
For a connection that can only read canvases and Elements, 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.
Local stdio instead
For the full local catalog, print the local configuration:
gavana mcp config localThat returns the command (npx), args (-y @gavana.ai/mcp@0.5.1), and a note that the server reads your active Gavana CLI profile or inherited GAVANA_BASE_URL and GAVANA_AGENT_TOKEN variables. Add --read-only and the definition carries GAVANA_MCP_READ_ONLY=true, so the local process registers only non-mutating tools.
That last point is the convenient part: if you have already run gavana auth login, the local server picks up the saved login and you configure no token at all.
Register it with Codex as a stdio server running that command. Requires Node.js 20 or newer.
Verify
List Codex’s MCP servers and confirm gavana is connected. Then ask it to list your canvases.
Switching later
Remove and re-add rather than editing the URL, so the old OAuth grant does not linger:
codex mcp remove gavana
codex mcp add gavana --url https://app.gavana.ai/mcpThen revoke the old connection in Gavana under Settings → Connect an agent → Connected.