Sprites LogoSprites.ai
Product

Run and Optimize Ads

Goal Optimization (ROAS & CPL)

Goal Optimization (ROAS & CPL)

Meta Ads

Meta Ads

Google Ads

Google Ads

LinkedIn Ads

LinkedIn Ads

TikTok Ads

TikTok Ads

Create & Analyze Creative

Creative Analytics

Creative Analytics

Ad Generator

Ad Generator

Ad Hooks & Angles

Ad Hooks & Angles

Research & Intelligence

Competitor Intelligence

Competitor Intelligence

Market Research

Market Research

SEO & Web Traffic Analysis

SEO & Web Traffic Analysis

SEO & AI Visibility

AI SEO Content

AI SEO Content

AI Visibility (GEO/AEO)

AI Visibility (GEO/AEO)

SEO Site Audit

SEO Site Audit

Keyword Research

Keyword Research

By Use Case

B2B ABM

B2B ABM

D2C, Ecommerce & Brands

D2C, Ecommerce & Brands

Mobile Apps

Mobile Apps

PLG SaaS

PLG SaaS

SMB & Startups

SMB & Startups

Resources

Get a head start.

Research, examples, and prompts for better marketing.

Ads LibraryExplore ads from 100+ fast-growing companies↗BlogIdeas and playbooks for modern marketing↗Prompt GalleryReady-to-run prompts for your next campaign↗
CustomersPricing
Get a demo
Sprites LogoSprites.ai
Product
CustomersPricing
Get a demo
Back

Run and Optimize Ads

Goal Optimization (ROAS & CPL)

Goal Optimization (ROAS & CPL)

AI-driven ROAS and CPL improvements across all ad accounts

Meta Ads

Meta Ads

Scale Facebook & Instagram campaigns with AI

Google Ads

Google Ads

Optimize Search, PMax, and Shopping campaigns

LinkedIn Ads

LinkedIn Ads

B2B targeting, sponsored content, and ABM

TikTok Ads

TikTok Ads

Short-form video campaigns and performance optimization

Create & Analyze Creative

Creative Analytics

Creative Analytics

Analyze winning hooks, angles, and ad concepts from competitors

Ad Generator

Ad Generator

Generate high-converting ad creatives for any platform

Ad Hooks & Angles

Ad Hooks & Angles

Research viral hooks and angles from Reddit, Instagram, and YouTube

Research & Intelligence

Competitor Intelligence

Competitor Intelligence

Deep analysis of competitor ads, SEO, and AI visibility

Market Research

Market Research

Uncover trends, audience insights, and market opportunities

SEO & Web Traffic Analysis

SEO & Web Traffic Analysis

Find SEO gaps, track rankings, and boost organic traffic

SEO & AI Visibility

AI SEO Content

AI SEO Content

Write and publish SEO-optimized articles automatically

AI Visibility (GEO/AEO)

AI Visibility (GEO/AEO)

Optimize your brand for generative AI search results

SEO Site Audit

SEO Site Audit

Comprehensive site audits with prioritized recommendations

Keyword Research

Keyword Research

Bulk and location-specific keyword research with AI insights

See all

By Use Case

B2B ABM

B2B ABM

Account-based marketing and B2B lead generation

D2C, Ecommerce & Brands

D2C, Ecommerce & Brands

Scale direct-to-consumer and ecommerce campaigns

Mobile Apps

Mobile Apps

User acquisition and in-app conversion optimization

PLG SaaS

PLG SaaS

Product-led growth campaigns and intent-based targeting

SMB & Startups

SMB & Startups

Fast, affordable ad management for growing teams

Sprites MCP · TikTok · Codex

How to connect TikTok Ads to Codex

Add https://mcp.sprites.ai/mcp as a custom MCP connector in Codex, sign in to Sprites, and Codex can read your TikTok Ads account and propose changes to it. Setup takes about two minutes and needs no API key. Every write comes back as an approval before it touches the account.

MCP server URLhttps://mcp.sprites.ai/mcp
Start the setupSkip to the first prompt

5 steps · about 2 minutes · updated September 8, 2026

CodexSprites connected

Which TikTok hooks are holding?

Spritesanalyzerunning
  • Reading 61 active creatives
  • Grouping by hook style
  • Trending hold rate
SpritesTikTokNeeds your approval
  • Problem-first openhold 47% · CPA $18
  • Founder to camerahold 39% · CPA $24
  • Product beauty shothold 12% · CPA $91
SpritesTikTokNeeds your approval
I stopped doing this in week 2Shop now
Nobody tells you the setup costLearn more
Three months in. Honest review.Shop now

6 hooks drafted · 3 shown · artwork generated on approval

SpritesTikTokNeeds your approval
  • Broad — 18-24$840 · 0 convPause−$840
  • Interest — fitness$310 · 1 convCut−$40/day
  • Spark — creator ACPA $16Raise+$60/day
Beauty shots are burning 31% of spendRotate
SetupFirst promptWhat you getApprovalsTroubleshootingFAQ

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 TikTok Ads already connected — the connector acts on that connection, so Codex never handles a TikTok credential.

  1. Add the server

    One command writes the entry into ~/.codex/config.toml for you.

    Terminal
    codex mcp add sprites --url https://mcp.sprites.ai/mcp
  2. Or 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"
  3. 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.

    Terminal
    codex mcp login sprites
  4. Approve 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 change
    ChangeDaily budget $40 → $65Gategate_7f2c…

Run the first prompt

Ask Codex this. It routes to a Sprites door, which reads your TikTok Ads account and answers — no account to name, no confirmation to give first.

  • With Sprites, which TikTok hooks have the best 3-second hold this month?
  • Ask Sprites for 6 new TikTok hooks based on our top performer.
  • Use Sprites to find TikTok ad groups spending with no conversions in 7 days.
  • Have Sprites launch a TikTok campaign for the summer bundle at $150/day.
  • With Sprites, what are competitors running on TikTok in our category?

Run `codex mcp list` and confirm sprites shows as connected.

What Codex can do with TikTok Ads

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.

Read performance by hook, not by campaign

Three-second hold, six-second hold and CPA per opening, so the pattern is visible before the spend is.

Keep the batch coming

New hooks and scripts drafted against the ones already earning, in the volume the platform demands.

Rotate before the drop

The day a creative's hold rate breaks trend, and what to swap in.

Spot the category move

What competitors are running now, read as angles you can test rather than clips you can watch.

Launch in the right shape

Campaign, ad groups and ads built for TikTok's structure, not a search campaign wearing a costume.

Stop feeding the losers

Ad-group spend moved onto the creatives that hold, with the trade stated in the card.

How approvals work here

Codex renders tool results as text, so a TikTok change comes back written out rather than as a card. Nothing is applied until you approve it, and the approval waits for you in Sprites — open it there and the same run continues.

What it reads

  • Campaigns, ad groups, ads and their status
  • Spend, CPA, ROAS, CTR, hold rate and completion
  • Creative assets and per-creative performance
  • Public competitor creative in the category

What it can change

  • Create campaigns, ad groups and ads
  • Budgets, schedules, statuses and targeting
  • New hooks and scripts, previewed before they ship

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.

TikTok Ads 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 TikTok Ads account without asking?

Codex renders tool results as text, so a TikTok change comes back written out rather than as a card. Nothing is applied until you approve it, and the approval waits for you in Sprites — open it there and the same run continues.

Do I need a TikTok Ads API key or developer token?

No. TikTok Ads is connected once inside Sprites through TikTok Ads Manager, and the connector acts on that connection. Codex never sees a credential for it.

Why Codex for TikTok Ads 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.

Can it upload video?

It drafts hooks, scripts and concepts and proposes the ad; the video file itself is attached in the approval card before anything publishes.

Does it read Spark ads?

Yes — Spark ads appear alongside in-feed creative with their own performance, so a creator post that works is visible next to the ads it beats.

Keep going

The same Codex connector reaches every other channel — nothing else to add.

All TikTok guides→
Meta AdsReddit AdsShopify
Google Ads in CodexMeta Ads in CodexLinkedIn Ads in CodexReddit Ads in CodexGoogle Analytics 4 in CodexSEO and Search Console in CodexAI visibility (AEO) in CodexShopify in CodexGoogle Business Profile in Codex

TikTok Ads, from Codex

Paste one URL, sign in once, and the next TikTok question you ask Codex gets answered from the live account.

Start now →Get a demo

Get the free AI-First Marketing Playbook

Packed with proven tactics, creative inspo, and automation tips to help you grow faster with less guesswork.
By clicking send you agree to the Terms and Conditions

Pillars

AI Marketing AgentVibe MarketingAI VisibilityAI Marketing AutomationAI for Meta AdsAI for Google AdsAI for LinkedIn AdsAI SEOAds LibraryMCP Server

For Teams

For AgenciesFor EcommerceFor FintechFor HealthtechFor EnterpriseFor FreelancersFor Marketing Teams

Prompts Gallery

Marketing Campaign BuilderGoogle Ads Search Campaign BuilderCompetitor Meta Ads AnalyzerSEO Audit + Plan GeneratorGoogle Ads Campaign OptimizerGoogle Ads: PMax Campaign Builder

About

CustomersReviewsBlogTerms of ServicePrivacy PolicyDPACareersSitemap
Sprites TextWizard