- Home
- Integrations
- Codex integration
Codex integration
Search and draft ads from the Codex CLI or desktop agent.
Codex supports Model Context Protocol servers over HTTP. Point Codex at TexoAI's MCP endpoint with a project token and the six tools become available to your Codex sessions. Everything is scoped to one project; there is no advertising-account access.
Connection methods
The server answers initialize, notifications/initialized, tools/list and tools/call over HTTPS POST (JSON-RPC 2.0). Notifications return an empty 202; the same tools are always callable as a plain API.
Setup
Try it
With the server connected, a quick smoke check:
codex exec "list the tools available through the meta-ads MCP server"codex exec "search the ad library for running ads"Available tools
Common errors
Failures come back as HTTP 400 with a JSON-RPC error object (code + message), not as HTTP 401/403/429.
FAQ
No. This connects Codex (the CLI or desktop agent) to TexoAI's own MCP endpoint with a project token. It has nothing to do with ChatGPT's MCP integrations.
Yes, with the clones:submit scope — but only as an approved, draft-only static job. Codex can never publish to an advertising account.