Giving Autonomous Coding Agents a Brand Motion Asset Pipeline via MCP
By the Charmotion team · Updated · How we write guides

Connect Devin and Codex to the same remote MCP server, let them call only the brand motion tools they need, and have them save the returned Rive, video and code files into your repository behind a human review step. Their config files differ. Keep brand rules and credit budgets in the repo, not the prompt.
Key takeaways
- Give each agent the same remote MCP server, but configure it in each agent's own settings.
- Allow only the brand motion tools a job needs, and check the credit balance before each run.
- Save every returned file and download link into the repository with a manifest a reviewer can read.
- Keep mood numbers and brand rules in files the agent must read, not in prompts.
- Require a person to approve any merge that changes brand assets.
Already have a character or logo? See examples in real app screens: splash, onboarding, loading and empty-state screens, with the animation that plays in each.
What does a brand motion asset pipeline for coding agents include?
This guide shows how to give Devin or Codex an automated brand motion asset pipeline via MCP, from the first connection to the review step that stops a bad file from reaching users. A pipeline here has four parts: a brief the agent can read, a set of tools it may call, a folder where every output lands, and a check that runs before anything ships.
The agent is the operator, not the designer. It decides which screen needs a loading state or a success state, calls the tool that makes it, and wires the returned file into code. The brand decisions come first: colours, character proportions, logo clear space and which moods are allowed. Write those down before the agent starts. The guide on brand motion guidelines covers how to do that.
Nothing here needs a special platform. Devin and Codex both accept MCP servers, so one asset server can serve both. What differs is where each agent stores its server list, and the sections below cover that for each one.
How do you connect Devin to an MCP server?
Devin works on each task in its own environment, with its own editor, terminal and browser. It connects to outside tools through MCP servers and plugins, and those are managed from the Customize page under the Plugins and MCPs tabs. Devin's integrations overview says MCP lets it connect to hundreds of external tools and data sources, and that page is the best place to confirm the current screens.
- Open Customize, choose the MCPs tab and add a custom server.
- Enter the server's URL and sign-in details as the form asks, then start a short test task that lists the available tools.
- On an enterprise plan, adding a custom MCP server requires the Manage MCP Servers permission, so ask an admin for it first.
Devin also has a command-line tool. In it, devin mcp add takes a name and a stdio command, which suits a server that runs on the same machine as the CLI. A remote asset server is simpler to add from the Customize page.
A server that uses OAuth sign-in needs a person to approve it at least once, so plan the first run around that step. Devin's own official MCP server runs at https://mcp.devin.ai/mcp over Streamable HTTP and needs a Devin API key. That server lets other clients control Devin, which is the reverse of this pipeline, so keep the two entries separate in your notes.
How do you connect Codex CLI to an MCP server?
Codex reads MCP servers from ~/.codex/config.toml. A project can add .codex/config.toml, but that file only loads for trusted projects, so cloning a repository does not quietly add tools to a teammate's machine. Each server is declared in its own [mcp_servers.name] table.
The codex mcp command adds and manages entries. Run codex mcp list afterwards to confirm the server is registered, and use codex mcp get with the server name to see its settings. A remote HTTP server is declared with a url key rather than a command. A server that needs OAuth is signed in once with codex mcp login followed by the server name, and codex mcp logout clears that sign-in.
[mcp_servers.brand-assets]
url = "https://assets.example.com/mcp"A local stdio server looks different: it gets a command key and an args list. Put a remote asset server in the project file only if every teammate should use it. The Codex CLI and the IDE extension share the same config.toml, so a change made in one shows in the other.
Which brand motion tools should an agent be allowed to call?
Charmotion's MCP server at https://charmotion.app/mcp uses Streamable HTTP and OAuth sign-in, with no API key. The MCP server page lists every tool. A brand pipeline needs four jobs, and each maps to a small set of calls.
| Job | Tools | Credit cost |
|---|---|---|
| Design a new character or logo | design_character, design_logo | 1 credit per AI design |
| Animate a character | create_character_set, add_animations, get_character_set | 1 credit per animation, idle free |
| Build a logo animation | start_motion, build_motion, refine_motion | Concepts and refines free, build 5 credits |
| Export and check the account | export_videos, get_account | Exports use no credits |
A character set comes back as one Rive (.riv) file with CharacterViewModelMachine, CharacterStateMachine and, when launch is chosen, LaunchStateMachine. get_character_set returns download links and AI_README integration notes, which is the file a coding agent should read before it writes any app code. The export_videos tool produces MP4, GIF, transparent WebM and transparent MOV on demand, in about a minute.
Allow the agent these tools and nothing else. Each character animation costs one credit, so a loop that retries without limit spends the balance. Have the agent call get_account before each batch and stop when the balance is below the batch cost. Plans and balances are on the pricing page.
Disclosure: Charmotion is our product.
How do you build the pipeline step by step?
The pipeline has six steps. Each one leaves a file or record in the repository, so a reviewer can see what the agent did and when.
- Write the brief. Create a brief file listing each character or logo, the moods it needs, the screens it appears on and the exact logo file to use.
- Connect the asset server. Add the server in Devin's Customize page or in Codex's config.toml, then confirm its tools appear in the agent's tool list before any real task.
- Allow only the listed tools. Name the permitted tools in the agent's instruction file, such as AGENTS.md or CLAUDE.md, and tell the agent to stop when a tool is not on the list.
- Generate and save the files. The agent creates the character set, reads get_character_set, downloads each .riv and video into assets/motion/, and records each link in a manifest file.
- Wire the mood states. The agent maps app events to fixed mood numbers in one file and writes the app code from the integration notes.
- Gate the merge. A check runs on each pull request, and a person approves any change under assets/motion/ before it merges.
Step one is plain text, so any agent can read it. This example shows the fields a brief needs:
brand: Acme
character: assets/brand/mascot.png
moods: idle, happy, wave, loading
screens: splash, empty-state, checkout-successStep five is where app code appears. Map each event to one mood, using the fixed numbers listed below, and have the agent keep the mapping in a single file instead of scattering numbers across components. Rive's runtimes are open source and play any .riv file, so playback in the app does not depend on which Rive plan made the file. If your app is in Flutter, the Flutter setup guide shows the widget side.
What should stop an agent from shipping the wrong asset?
Autonomous agents fail quietly. They accept the first output, reuse a stale file or change a mood number the app already depends on. Four controls catch most of that.
- Fixed mood map. Keep the numbers in one file the agent must read. Idle is 0, happy 1, wave 2, thinking 3, sad 4, loading 5, listening 6, talking 7, sleeping 8 and attention 9.
- Format check. Run each video through the transparent video checker and open each .riv in the Rive file inspector before merge.
- Budget check. Compare the balance from get_account with the planned batch before each run, and write the result into the run log.
- Human merge. Require a reviewer to approve every change under assets/motion/, because a changed face is easy to miss in a diff.
Expect some second passes, and keep your own checks on every file that reaches users. Automated checks confirm format and state wiring, not whether a character still looks like your brand, so the reviewer still matters.
The pattern is not tied to one vendor. Any MCP server that returns files can sit in this pipeline, and Charmotion is one option for the character and logo files.
Set up a brand motion asset pipeline for a coding agent
- Write the brief. Create a brief file in the repository listing each character or logo, the moods it needs, the screens it appears on and the exact logo file to use.
- Connect the asset server. Add the server in Devin's Customize page or in Codex's config.toml, then confirm its tools appear in the agent's tool list before any real task.
- Allow only the listed tools. Name the permitted tools in the agent's instruction file, such as AGENTS.md or CLAUDE.md, and tell the agent to stop when a tool is not on the list.
- Generate and save the files. The agent creates the character set, reads get_character_set, downloads each .riv and video into assets/motion/, and records each link in a manifest file.
- Wire the mood states. The agent maps app events to fixed mood numbers in one file and writes the app code from the integration notes.
- Gate the merge. A check runs on each pull request, and a person approves any change under assets/motion/ before it merges.
Frequently asked questions
Can Devin and Codex share one MCP server?
Yes, both accept MCP servers, so one remote server can serve both agents. Each agent still keeps its own settings: Devin uses the Customize page or its CLI, and Codex uses config.toml. Keep the tool allowlist in a shared instruction file so both agents follow the same rules.
Does Charmotion's MCP server need an API key?
No. The MCP server uses OAuth sign-in rather than an API key, so the first connection needs a person to approve it. Designs, character animations and logo builds draw on the account's plan, and get_account shows what remains. Animated previews and guide search are free without an account.
What is the difference between a local and a remote MCP server?
A local server runs on the same machine as the client and is started as a child process that talks over standard input and output. A remote server runs elsewhere and is reached by URL over Streamable HTTP. Local servers suit files and credentials on your computer, and remote servers suit shared services.
Should an agent be allowed to approve its own asset changes?
No. Keep merge rights with a person and require review for anything under the assets folder. Treat the agent's summary as a claim to check. Automated checks catch format errors and broken state wiring, but they cannot judge whether a character still matches the brand.
Sources
- Devin MCP server, Cognition (Devin docs)
- Devin integrations overview, Cognition (Devin docs)
- Devin CLI MCP configuration, Cognition (Devin docs)
- Codex MCP, OpenAI
- Model Context Protocol, Model Context Protocol project
- Charmotion MCP server, Charmotion