Add Sprites to Codex
Available on Anywhere Codex CLI runs — a ChatGPT plan that includes Codex, or an API key. You need a Sprites account with Attio already connected — the connector acts on that connection, so Codex never handles a Attio credential.
Add the server
One command writes the entry into ~/.codex/config.toml for you.
Terminalcodex mcp add sprites --url https://mcp.sprites.ai/mcpOr write the config by hand
The same entry in ~/.codex/config.toml, or in .codex/config.toml inside a trusted project when you want the connector scoped to one repo.
~/.codex/config.toml[mcp_servers.sprites] url = "https://mcp.sprites.ai/mcp" auth = "oauth"Sign in
Codex opens a browser for the Sprites consent screen and stores the token locally. Sprites supports dynamic client registration and client ID metadata documents, so there is nothing to pre-register.
Terminalcodex mcp login spritesApprove changes by name
Codex renders results as text, so a pending change comes back written out rather than as a card you can click. Nothing is applied until you approve it, and the approval waits for you in Sprites — open it there and the same run continues.
Pending changeChangeDaily budget $40 → $65Gategate_7f2c…
What permissions this needs
Connecting Attio to Codex yourself means a Attio REST API integration, and these are the permissions and gates it runs into. Through Sprites you sign in with OAuth instead, with no developer token or app review of your own.
record_permission:read
Read people, companies, deals and other records.
object_configuration:read
Read your objects and attributes, so custom fields are understood.
list and note scopes
Read lists, list entries and notes, all as :read.
What Sprites asks for when you connect
An Attio access token with read scopes on records, object configuration, lists, list entries and notes. No read-write scope is needed.
What you skip
The token is held by Sprites, not pasted into your AI client’s config. Codex signs in to Sprites with OAuth and never holds a Attio credential.
Official Attio MCP vs Sprites MCP
Attio runs its own MCP server at mcp.attio.com/mcp. Here is what each one covers, so you can pick the one that fits in Codex — or connect both.
Attio hosts its own MCP server for Claude, ChatGPT, Cursor and any client that takes a custom connector URL. You sign in with your Attio account over OAuth, access is per user and mirrors your Attio permissions, and it is limited to your workspace. It reads records, lists, notes, tasks, meetings, emails and comments, and can create, update, upsert and merge records, with creates and updates asking for confirmation. It knows nothing about your ad accounts.
| Attio officialmcp.attio.com/mcp | Sprites MCPapproval-gated | |
|---|---|---|
| Endpoint | mcp.attio.com/mcp | mcp.sprites.ai/mcp |
| Reaches | Your Attio workspace | Attio beside Google Ads, Meta, LinkedIn, TikTok, Reddit, GA4 and SEO |
| Writes to Attio | Records, list entries, notes, tasks and comments, with confirmation | None: Attio access is read-only |
| Sign-in | OAuth with your Attio account | Connected once inside Sprites; the agent never holds an Attio token |
| Attribution | CRM data only | Deals and won value matched to the ad spend that produced them |
| Ad account changes | Not in scope | Budget and campaign changes as approval cards |
If you want an agent to work inside Attio itself, such as updating records, writing notes or creating tasks, Attio’s own server is built for that. Use Sprites when the Attio question is really a marketing question: which campaigns produced pipeline, where the budget should move, and what to change in LinkedIn, Google and Meta as a result, with Attio left untouched.
Why run Attio ads through Sprites
Codex is the interface; the connector decides what it can see and what it is allowed to do. Six things change when that connector is Sprites.
The CRM next to the ad accounts
An Attio-only connector answers with Attio. Sprites reads Attio beside LinkedIn, Google Ads and Meta, so cost per deal is one question, and the budget move it implies is the next one.
Every channel on one connectorRead scopes only
Sprites asks Attio for read access to records and object settings, plus read scopes for lists and notes if you add them. There is no write scope to misuse, however a request is phrased.
Totals computed, not guessed
Deal counts and summed value come from code over Attio’s records, and a long list is flagged as partial instead of passed off as complete.
Run the first prompt
Ask Codex this. It routes to a Sprites door, which reads your Attio account and answers — no account to name, no confirmation to give first.
- With Sprites, which LinkedIn and Google campaigns produced deals in Attio this quarter?
- Ask Sprites what is in our Attio deal pipeline by stage, with value.
- Use Sprites to count the people added to Attio last month and compare it with our Meta spend.
- Have Sprites list the Attio companies with open deals and check whether we are advertising to them on LinkedIn.
- Every Monday, have Sprites compare Attio deals won with last week’s ad spend.
Run `codex mcp list` and confirm sprites shows as connected.
Running Attio from Codex
The jobs people hand over first, start to finish: what you type, what Sprites does with it, and what comes back to approve.
Cost per deal by channel
You, in CodexWith Sprites, what did each deal in Attio cost us this quarter, by channel?
- Sprites does
- Groups deals by stage and creation date in Attio, then reads spend for the same period from LinkedIn, Google and Meta.
- You get back
- One table of cost per deal by channel, and the budget changes it suggests as approval cards.
Pipeline check
You, in CodexAsk Sprites what is in the Attio pipeline by stage.
- Sprites does
- Lists your objects, then totals deals by stage with counts and value in code.
- You get back
- Open, won and lost counts with value, and a note if the workspace has no deals object.
Monday pipeline and spend
You, in CodexEvery Monday, have Sprites compare Attio deals won with last week’s ad spend.
- Sprites does
- Reads new and won deals from Attio on a schedule and lines them up with spend per channel.
- You get back
- A short read in your thread each week, with the channel that is slipping named.
What Codex can do with Attio
The same doors, whichever client you are in. Marketing work that belongs in a commit: Codex can read the landing page it is about to ship and brief Sprites on the campaign pointing at it, in one session.
Ad spend and deals in one answer
Attio sits beside LinkedIn, Google Ads and Meta in the same conversation, so "which campaigns made pipeline" is read from the ad accounts and the CRM together rather than from two exports and a spreadsheet.
Pipeline totals computed in code
Deals are grouped by stage with counts and summed value worked out in code, not estimated by the model. Won and lost stages are recognised from Attio’s own stage settings and titles.
Your objects and attribute names
The agent lists your workspace’s objects and attributes first, so custom objects, renamed stages and your own field slugs work without configuration. If the workspace has no deals object, it says so.
People and companies by date
Records are filtered by created date, so "who came in last month" and "which companies opened a deal this quarter" are real queries, with a flag when a long list was cut short.
Lists and notes when you allow them
Lists, list entries and notes are readable once the token carries those extra read scopes. If one is missing, Sprites names the scope and asks you to reconnect rather than guessing.
Read-only on the Attio side
Sprites asks Attio for read access only. It cannot create, update or delete a record, whatever the request says; changes to ad budgets are the only things it proposes, as cards you approve.
How approvals work here
Codex renders tool results as text, so a Attio change comes back written out rather than as a card. The approval waits for you in Sprites — open it there and the same run continues. Nothing is applied until you approve it.
What it reads
- People, companies, deals and custom objects, with your own attribute names
- The deal pipeline by stage, with counts and summed value
- Records filtered by created date
- Lists and list entries, and notes, when the token has those read scopes
What it can change
- None: Attio access is read-only, and no write scope is requested
- Ad-account changes it proposes are approval cards, never Attio edits
When it does not work in Codex
Three things go wrong in this client specifically, and each has a one-line fix.
Codex says the tool is not found.
The config was edited while a session was open. Restart Codex — it reads config.toml at startup.
Login loops without ever completing.
The OAuth callback defaults to http://127.0.0.1/callback. If something else on the machine holds that port, set mcp_oauth_callback_url in config.toml and log in again.
Codex says a change was applied and nothing happened in the account.
It was proposed, not applied — that is the design. The approval is waiting in Sprites; open it there and the run continues from where it stopped.
And on the Attio side
Sprites says it cannot read lists or notes.
Those need extra read scopes on the Attio token. Sprites names the scope that is missing; reconnect Attio on the integrations page with it added, then ask again.
Sprites says the workspace has no deals object.
Deals is an optional object in Attio. Turn it on, or ask about people and companies instead, which Sprites reads without it.
Deals do not show which campaign they came from.
Attribution reads the source fields on your Attio records. If deals arrive without one, the report can only group by what is there; set the source when records are created and the next report can use it.
Attio says the connection needs to be reauthorized.
Reconnect Attio on the Sprites integrations page, then ask again. A token that was revoked in Attio stops working until it is replaced.
Attio and Codex: questions
Which URL do I paste into Codex?
https://mcp.sprites.ai/mcp. There is one endpoint and every client uses it — every OAuth grant is bound to exactly that address, so a variant of it will not be honoured.
Can Codex change my Attio account without asking?
Codex renders tool results as text, so a Attio change comes back written out rather than as a card. The approval waits for you in Sprites — open it there and the same run continues. Nothing is applied until you approve it.
Do I need a Attio API key or developer token?
No. Attio is connected once inside Sprites through Attio (read-only access to people, companies and deals), and the connector acts on that connection. The token is held by Sprites, not pasted into your AI client’s config. Codex never sees a credential for it.
Why Codex for Attio specifically?
Marketing work that belongs in a commit: Codex can read the landing page it is about to ship and brief Sprites on the campaign pointing at it, in one session.
Is there an official Attio MCP server?
Yes. Attio hosts its own MCP server at mcp.attio.com/mcp, which you sign in to with your Attio account over OAuth, with no API keys. It reads and writes your workspace: records, lists, notes, tasks and comments, with creates and updates asking for your confirmation. Sprites is a separate MCP server that reads Attio beside your ad accounts and never writes to it.
Can Sprites change anything in Attio?
No. The connection reads people, companies, deals, lists and notes only. It cannot create, update or delete a record. The only changes Sprites proposes are to your ad accounts, and each one is an approval card.
Keep going
The same Codex connector reaches every other channel — nothing else to add.
Attio, from Codex
Paste one URL, sign in once, and the next Attio question you ask Codex gets answered from the live account.