What you get
Codex gets the four AdCamera tools next to its own shell. It can list a store's products, estimate the total, wait for your go-ahead, then start one pack per product and download the finished files into folders you name.
The key stays in an environment variable. Codex's config only stores the variable's name.
Set it up
Create an API key
Sign in at the web app and create a key under API keys.
Put the key in your environment
Add this line to your shell profile, such as ~/.zshrc, so every Codex session sees it. Then open a new terminal.
Shell profile
export ADCAMERA_API_KEY=adc_...Add the server
Codex sends the variable's value as a bearer token on each request.
Terminal
codex mcp add adcamera --url https://adcamera.com/mcp \ --bearer-token-env-var ADCAMERA_API_KEYCheck the connection
AdCamera should be listed. Inside a Codex session,
/mcpshows its tools.Terminal
codex mcp list
Try it
Ask in plain words. A request like this one runs end to end:
yourstore.com is a Shopify store. Make 2 angles in 9:16 with a video for every product. Tell me the total first, then save the files and the copy to ./ads/<handle>/.
- shell
curl -s https://yourstore.com/products.json8 products - estimate_ad_pack
{ "concepts": 2, "formats": ["9:16"], "video": true, … }{ "credits": 10, "balance": 120 } - create_ad_pack
× 8, after your OK80 credits charged - get_ad_pack
× 8, every 30 sall "done" - shell
curl -H "Authorization: Bearer $ADCAMERA_API_KEY" -o ads/<handle>.zip …/v1/ads/<id>/download8 zips - shell
unzip ads/<handle>.zip -d ads/<handle>/32 files
Codex asked before spending: 8 packs at 10 credits each. You answered "go".
8 products × 10 credits = 80, which leaves 40. Each product folder now has two 9:16 images, two 5 second videos and a copy.txt with both angles.
Or edit config.toml
codex mcp add writes this block to ~/.codex/config.toml. You can add it by hand instead.
~/.codex/config.toml
[mcp_servers.adcamera]
url = "https://adcamera.com/mcp"
bearer_token_env_var = "ADCAMERA_API_KEY"