~/.codex/config.toml, so you configure it once. See MCP for what the server can and canât do.
Which server should I add?
- Remote server: you sign in with your Vertra account in the browser and no key goes into a file. Deploying from a folder isnât available. Pick it to investigate, operate and configure.
- Local server: every tool, including
create_appanddeploy_app, which zip and upload the project folder. It uses an API key. Pick it if youâll deploy from Codex.
Add the remote server
1
Add it to the configuration
In
~/.codex/config.toml:~/.codex/config.toml
2
Sign in
--no-browser and open the link it
prints.3
Check the connection
Run
codex mcp list in the terminal, or /mcp inside Codex. In the IDE extension, the MCP server list shows it as
enabled.oauth: prefix under Settings â API keys; revoke it there to disconnect.
Remote server with an API key
If youâd rather not sign in through the browser, send an API key in the header. Export the key in your shell and point Codex to the variable:~/.codex/config.toml
Add the local server
1
Create an API key
In the dashboard, go to Settings â API keys, create a key with the scopes you need and copy it. To deploy, check
apps:read, apps:write and apps:files. To investigate only, apps:read is enough.2
Export the key in your shell
Add it to your shell profile (
~/.zshrc, ~/.bashrc) and open a new terminal:3
Add the server
env_vars passes the variable from your shell to the server, so the key doesnât go into the file.
startup_timeout_sec gives npx time to download the package on the first run (the default is 10 seconds):~/.codex/config.toml
4
Check the connection
Start Codex in the project folder and run
/mcp. The server only touches files inside the folder where it was
started; see Local files stay in the project folder.codex mcp add vertracloud --env VERTRA_API_KEY=your_key -- npx -y @vertracloud/mcp does the same from the terminal,
but saves the key in plain text in config.toml.
To keep the server in one project only, put the same block in .codex/config.toml at the project root. Codex reads it
in projects youâve marked as trusted.
Ask before every change
Every Vertra tool tells the client whether it only reads. Withwrites, Codex runs reads on its own and asks before
anything that changes your account, such as deploying, restarting, deleting or setting a variable:
~/.codex/config.toml
Tell Codex about your project
Add a few lines to the projectâsAGENTS.md so Codex knows which Vertra resources the code belongs to:
AGENTS.md
First prompts
- âList my apps on Vertra and tell me which ones are down.â
- âWhy did
orders-apigo down? Read the last 300 log lines before changing anything.â - âDeploy this folder to
orders-apiwith the message âfix checkout timeoutâ and wait until itâs online.â