Use AdSync with Codex
Add with codex mcp add, sign in with codex mcp login.
Add AdSync with codex mcp add, then sign in with codex mcp login. Prefer shell commands? Use the CLI prompt below.
Before you start
- Sign in to AdSync.
- Connect a platform.
- Turn on the ad accounts AdSync may use.
Connect Codex
- Add the server from your terminal
codex mcp add adsync --url https://mcp.getadsync.com/mcp/compact
Codex loads every tool up front, so use the compact link. It finds the right tool when you ask.
- Sign in
Your browser opens AdSync: choose Full access or Read-only, then Allow.
codex mcp login adsync
- Or use the adsync CLI instead
Paste this prompt into Codex and it installs the CLI, adds the AdSync skills and signs you in.
Set up the AdSync CLI for me so you can manage my ads from the shell. 1. Install it: uv tool install adsync-cli (if uv is missing, use pipx install adsync-cli; it needs Python 3.10 or later). 2. Run adsync skill install --dir ~/.agents/skills so Codex learns how to call it safely. 3. Run adsync login. It opens my browser, where I choose Full access or Read-only and click Allow. If you can't open a browser, ask me to run adsync login myself and wait until I say it's done. 4. Check it works: run adsync meta list_ad_accounts and show me the accounts.
Tips
- Restart Codex after adding the server.
- Each sign-in is its own token, so Activity shows which assistant did what.
First prompts to try
- “List my ad accounts and which ones spent in the last 7 days.”
- “Compare the last 7 days with the 7 before, by campaign.”