Building an Automated Mascot Asset Pipeline with MCP for Small Engineering Teams
By the Charmotion team · Updated · How we write guides

An indie team can run its character asset pipeline through one MCP connection: the assistant sends a character image, creates the animation set, exports the video files and returns the Rive and code outputs for the repository. Each stage is one tool call, so an updated character can be rerun without manual steps.
Key takeaways
- Treat the character as one versioned input: a source image, a mood map and a generated set that the app loads from a single folder.
- Remote MCP servers sign in with OAuth 2.1, so each team member uses their own account and no API key sits in the repository.
- Map app states to moods in one reviewed file, and fall back to idle for unknown states.
- Verify every .riv and video copy in continuous integration, checking the names the code depends on and the transparency of each video.
- Regenerate only what changed, and record the animations and credits used in each pull request.
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 should an automated mascot asset pipeline do?
An automated mascot asset pipeline takes one character and produces every file the product needs, in a repeatable order. This guide explains how to build an automated character asset pipeline with MCP for indie teams: which stages to automate, how to connect the tools, and how to check the output before it ships. It is written for teams of two to six engineers who have one brand character and no animator on staff.
A pipeline has six stages:
- Brief. One source image, the brand colors and the list of app states the character must show.
- Design. Use the approved image, or generate one, and convert it to a style the animation engine handles well.
- Animate. Build one animation set with the moods the product uses.
- Export. Pull the Rive file, video copies and integration notes into the repository.
- Integrate. Map app state to moods in one file and wire the component.
- Verify. Run checks in continuous integration before a build reaches users.
Automation is worth the setup when the same character appears in several places, such as a splash screen, a website hero, an empty state and a support widget, or when two or more people change it. A single static mascot used in one place is faster to export by hand. The pipeline keeps the files in sync so that the character does not drift between screens.
How does MCP sign-in work for a remote asset server?
The Model Context Protocol (MCP) lets an AI client such as Claude Code, Cursor or VS Code call tools that run on a server. Remote servers use the Streamable HTTP transport. Under the MCP authorization model, the client is an OAuth 2.1 client, the MCP server is a resource server, and a separate authorization server handles login and token issuance. The protocol is documented at modelcontextprotocol.io, and an explainer from the Stack Overflow blog walks through the same split between client, server and authorization server.
The handshake is simple from the team's side. An unauthenticated request to a protected server gets an HTTP 401 with a WWW-Authenticate Bearer header that points to protected resource metadata under /.well-known/oauth-protected-resource. That metadata names the authorization servers the MCP server trusts, so the client knows where to send the user to sign in. The authorization features listed for HTTP-based MCP include OAuth 2.1, Proof Key for Code Exchange (PKCE), Protected Resource Metadata and Resource Indicators, as summarized in Descope's MCP guide.
Three practical rules follow for a small team:
- Sign in per person. Each developer or designer who runs the pipeline signs in with their own account, so no shared API key has to live in the repository.
- Check the account before a batch. Usage and plan limits belong to the signed-in account, so the person who runs a regeneration should confirm what is left first.
- Commit the config, not the tokens. The server URL can sit in the project's MCP config file. Tokens are issued to each client after sign-in and stay out of the repository.
For a worked example of connecting an assistant to a logo or character server, see how to animate a logo or character from Claude, Cursor or VS Code with MCP.
How do you set the brief and the mood map before generating anything?
Most pipeline failures start with a vague brief. Write it down before any tool runs, in the repository, next to the app code it serves. A usable brief has four parts: the source image and its version, the brand colors as hex values, the list of app states the character must cover, and the rule for each state. A brief that says "happy on success, sad on error, loading while the network call runs" can be checked. "Friendly and fun" cannot.
Keep the mapping from app state to mascot mood in one file that developers review like any other code:
// mascot-moods.ts: one place that decides what the mascot shows
export const moodForState: Record<string, string> = {
idle: 'idle',
loading: 'loading',
success: 'happy',
error: 'sad',
listening: 'listening',
empty: 'wave',
};
export function moodFor(state: string): string {
return moodForState[state] ?? 'idle';
}The fallback to idle matters. A state the map does not know should show the resting character, not a blank area or an error face. Designers own what each mood looks like, while developers own which app state triggers it. When a new screen needs a mood, the change is one line in the map and one line in the review.
How do you verify .riv and video files in continuous integration?
Exported files are inputs to a product, so test them the way you test code. A Rive file is a binary bundle, and the checks below catch most breakage before a build ships.
- Commit the .riv, not the editor backup. The .rev format is used for backups and editing, and runtimes cannot load it. A .riv file bundles the artboards, animations, state machines and data binding settings the app loads, as described in this overview of .riv and .rev files.
- Assert the names the code depends on. Confirm that the file contains the state machines and the number input or view model property your mapping uses. A rename in the editor should fail the build, not appear as a frozen mascot.
- Check transparency on every video copy. Run each WebM and MOV through the transparent video checker, and confirm the frame size and frame rate match the spec you wrote in the brief.
- Open the file before merging. The Rive file inspector shows the structure of a .riv without a full project.
Plan limits also decide what can ship. Exporting a .riv for a product depends on the Rive plan, and current plan terms are on Rive's pricing page. The guide on whether Rive is free explains how the plans apply to commercial use. For state and data binding checks in code, see how to inspect and verify MCP-generated Rive data binding viewmodels, and for component tests, see testing MCP-generated Rive states in Storybook and Playwright.
Finally, serve the video copies with a fallback. Transparent WebM does not behave the same in every browser, so Safari usually needs an HEVC alpha MOV. The setup is covered in how to serve transparent WebM with an HEVC alpha MOV fallback.
What does a worked run look like with Charmotion's MCP server?
Disclosure: Charmotion is our product. Charmotion runs a remote MCP server at https://charmotion.app/mcp that covers the design, animation and export stages above. It uses Streamable HTTP with OAuth sign-in and no API key, and its tools are listed on the MCP server page. In Claude Code, the server goes into the project's .mcp.json file. Cursor, VS Code and Codex can point to the same URL in their own settings.
{ "mcpServers": { "charmotion": { "type": "http", "url": "https://charmotion.app/mcp" } } }A run usually goes in this order:
- Start from one image. The image must be one finished, coloured character facing the viewer, with visible eyes and mouth. Sketches, photos, groups and busy scenes are refused, and a refused image is not charged. If there is no character yet, design_character draws one for 1 credit.
- Create the set. create_character_set takes the animations you pick. Launch, happy, wave and loading are preselected, and idle is always included at no cost, so a character has up to 11 animations. Each other animation costs 1 credit.
- Add later, pay for new ones only. add_animations adds to an existing character, and only the new animations use credits.
- Fetch and export. get_character_set returns download links and AI_README integration notes for coding assistants. export_videos produces an MP4 at 1080 by 1080 and 60 fps, a GIF, a transparent WebM (VP9 alpha), a transparent MOV (HEVC alpha) and a 9:16 launch MP4, in about a minute. Exports do not use credits.
- Check the balance. get_account shows what is left before the next batch.
The Rive file has three parts that matter to code. CharacterViewModelMachine holds a number property named mood, CharacterStateMachine has a number input named mood, and LaunchStateMachine appears only when launch was picked. It plays once and then settles on idle. The mood numbers are fixed:
| Mood | Number | Clip length |
|---|---|---|
| idle | 0 | 4.0 s |
| happy | 1 | 1.6 s |
| wave | 2 | 3.0 s |
| thinking | 3 | 2.4 s |
| sad | 4 | 3.0 s |
| loading | 5 | 1.2 s |
| listening | 6 | 3.0 s |
| talking | 7 | 1.6 s |
| sleeping | 8 | 4.0 s |
| attention | 9 | 1.4 s |
Characters have no one-shot triggers, so a success is shown with happy and an error with sad, using the map from the earlier section. The boolean accents hides the small accent marks, which are on by default. Paste-ready web, React and SwiftUI code comes with the set, along with a README and a transparent poster for each animation. With the numbers fixed, the mapping can be a plain lookup:
const MOOD = { idle: 0, happy: 1, wave: 2, thinking: 3, sad: 4, loading: 5, listening: 6, talking: 7, sleeping: 8, attention: 9 };
function moodNumber(mood) {
return MOOD[mood] ?? MOOD.idle;
}Credits work from one balance: 1 per character animation with idle free, 1 per AI design or conversion, and 5 per logo animation. Animations the engine cannot make return their credit automatically. Plan details are on the pricing page. The same stages work with any MCP server that returns files, and Charmotion is one option among those tools.
How should a small team version and roll back character assets?
Treat each generated set as a release. Store the outputs in a folder named for the set and its date, and point the app at one folder through a current link. Rolling back then means changing one path, not regenerating anything.
assets/mascot/
2026-12-04/
character.riv
videos/ (mp4, gif, webm, mov)
AI_README.md
current -> 2026-12-04Keep the brief and the source image in the same folder, so anyone can see which input produced which output. When the art changes, regenerate on a branch, run the checks from the verification section, and merge only when the design lead has signed off on the new moods.
Roles can stay light. One person owns the brief and the source image. One developer owns the mood map and the component. A second person reviews the exports on a real device before release. Anyone who runs a regeneration should note in the pull request which animations were added, how many credits the run used and what was rejected. That record is the cheapest way to avoid paying twice for the same animation a month later.
The first run takes longer than later ones, because the brief, the map and the checks are all new. After that, a changed screen is usually a short pull request rather than a new export session.
How to build an automated character asset pipeline with MCP for indie teams
- Write the brief and the mood map. Store the source image, brand colors and the list of app states in the repository, and map each state to one mood in a single reviewed file with idle as the fallback.
- Connect the MCP server. Add the server URL to the project's MCP config, then sign in with your own account so no shared API key is needed.
- Check the account. Confirm the plan balance and remaining usage before starting a batch, since designs and animations draw on the signed-in account.
- Create the character set. Start from one finished character image and create one animation set with the moods the app uses, adding more animations later only when needed.
- Export and save the outputs. Fetch the download links and integration notes, export the video copies and save everything in a dated folder with a current link.
- Verify before merging. Run continuous integration checks on the .riv names, the video transparency and frame specs, then merge once the design lead approves the moods.
Frequently asked questions
Do I need a paid Rive plan to ship this pipeline?
Shipping a .riv inside a product depends on your Rive plan, because the free plan adds a splash screen and limits some exports. Developers who only load a finished file need no editor seat. Current plan terms are on Rive's pricing page, and the guide on whether Rive is free explains commercial use.
Can a script run the pipeline without an AI assistant?
A script can call a remote MCP server only if it can complete the OAuth sign-in or hold a token that the server accepts. Interactive sign-in is awkward for unattended jobs, so most small teams regenerate from a developer's MCP client, commit the outputs and let continuous integration verify them.
Why keep video copies if the app uses the .riv?
The .riv drives the app and website, where a runtime plays it and the state can change. Video copies cover places that cannot run a Rive runtime, such as email, social posts and presentations. Keep both, and serve the HEVC MOV to Safari and WebM to other browsers.
Should the mood map live in code or in the design tool?
Keep it in code, next to the app's state types. A change to which state shows which mood is then reviewed like any other diff. Designers still own what each mood looks like inside the file.
Sources
- Is that allowed? Authentication and authorization in Model Context Protocol, Stack Overflow Blog
- Model Context Protocol, Model Context Protocol
- The MCP guide, Descope
- Rive pricing, Rive
- Article on .riv and .rev files in Rive, ICS Media
- Charmotion MCP server, Charmotion
Related guides
- How to Export Transparent WebM, MOV, MP4, and GIF Animations Directly via MCP
- Writing CLAUDE.md and .cursorrules for Rive Data Binding Mascot Integrations
- Testing MCP-Generated Rive Data Binding States in Storybook and Playwright
- How to Inspect and Verify MCP-Generated Rive Data Binding ViewModels in Code
- How to Animate Your Own Character With AI: Pick the Method by Goal