AI agents (MCP) Codex
Motion Text in Codex
Add one entry to Codex's config and the OpenAI CLI drafts real, editable videos from your terminal.
The OpenAI Codex CLI connects to MCP servers through its config.toml, and it speaks Streamable HTTP natively — so Motion Text is a two-line entry with no bridge or proxy. Once it's registered, ask Codex for a video in plain language and it calls the tools to build a paced, captioned draft, then returns a link that opens the full Motion Text editor.
Codex reads ~/.codex/config.toml globally, or a .codex/config.toml inside a trusted project. Anonymous drafting needs no key — point Codex at the studio endpoint (it supports both the OAuth sign-in and bearer tokens) to work on your own saved projects and, on Pro, queue real server renders.
Connect Codex
Add to ~/.codex/config.toml (or .codex/config.toml per project):
[mcp_servers.motion-text]
url = "https://motiontext.video/mcp"Codex reads ~/.codex/config.toml, or a per-project .codex/config.toml in a trusted folder. The presence of a url key tells Codex to use Streamable HTTP; run codex mcp list to confirm it registered.
That's the anonymous endpoint — drafting only, no account. For the full toolset on your own projects (and, on Pro, 1080p/4K server renders), use the studio endpoint https://motiontext.video/mcp/studio and sign in when Codex prompts you. Details on the main MCP page.
Good to know
- The
urlkey selects Streamable HTTP — no command, args, or mcp-remote bridge needed. - For your own workspace, use the studio endpoint; Codex handles the OAuth sign-in, or set
bearer_token_env_varfor a static token. - Scope it to a repo with a trusted
.codex/config.tomlinstead of the global file.
Questions
Does Codex support remote MCP servers?
Yes — the Codex CLI connects to Streamable HTTP MCP servers natively. An entry with a url key in config.toml is all it needs; no stdio bridge required.
Where is the config file?
~/.codex/config.toml globally, or .codex/config.toml inside a trusted project directory.
Can Codex render the MP4?
With the studio endpoint on a Pro account, yes — it queues a server render and polls it to a download link. Anonymously, it drafts and you export from the editor.