Keeping AI-Generated Mascots On-Brand Across Every UI State with MCP Character Sets
By the Charmotion team · Updated · How we write guides

Build every state from one approved reference image, store the states as one character set with a fixed mood map, and let MCP tools add new states to that same set. Because the mascot's face, colours and proportions come from the original drawing, each state stays on-brand as the UI changes.
Key takeaways
- Generate the mascot once, approve it, and rig that drawing instead of generating a new image for each state.
- Keep every state in one character set so all states share one file, one drawing and one mood map.
- Map each UI state to a fixed mood number in a shared constants file, and set it from app state.
- Use MCP tools to create the set, add states later and fetch integration notes in the same session.
- Check every state against the approved drawing before shipping, and turn accents off if your brand guide forbids them.
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.
Why do AI-generated mascots drift between UI states?
A mascot that looks right on the splash screen often changes by the time it reaches the empty state. Every image generation is a new drawing, so the eyes widen, the outline thickens, the palette shifts and the proportions move. Users notice the change within one session, and brand teams notice it across releases.
The fix is to stop generating states and start rigging one. Keep one approved drawing as the source, let the animation engine move parts of that drawing, and store every state in the same file. The states then differ by motion and expression, never by a new drawing.
For the wider problem with video models, read why AI animation keeps changing your character. This guide starts after the image is approved: how to hold it steady across the states your UI needs, using MCP tools.
How to keep AI-generated mascots on-brand across multiple states using MCP character sets?
A character set is one character with a list of animations, delivered as one Rive file plus code. The method has three parts: one source drawing, one set that holds every state, and one mood map that every screen reads. Disclosure: Charmotion is our product. Its MCP server runs the set creation from the same chat session where your assistant writes the UI code.
The character set is built from four MCP tools:
| Tool | What it does for consistency |
|---|---|
| design_character | Draws a character with AI (1 credit) when you have no approved artwork yet |
| create_character_set | Builds one set from your image with the animations you choose |
| add_animations | Adds states later to the same character; only the new ones use credits |
| get_character_set | Returns download links and AI_README integration notes for coding assistants |
| export_videos | Makes video copies (MP4, GIF, transparent WebM, transparent MOV, 9:16 launch MP4) from the same set |
Because all of these tools act on one character, there is no second drawing to drift away from the first. Idle is always included for free, so a character can hold up to 11 animations, one for each state your UI needs.
Which UI states should a mascot cover, and which mood number does each use?
The mood numbers are fixed, so you can write the map once and reuse it everywhere. Idle is 0 and is always present. The rest of the map is below.
| UI state | Mood | Number | Notes |
|---|---|---|---|
| Resting or idle screen | idle | 0 | 4.0 s breathing and blinking loop, free |
| Success or completed action | happy | 1 | Characters have no success trigger, so use happy |
| Onboarding greeting | wave | 2 | 3.0 s |
| Processing or reasoning | thinking | 3 | 2.4 s |
| Error | sad | 4 | Characters have no error trigger, so use sad |
| Loading | loading | 5 | 1.2 s |
| Voice or input listening | listening | 6 | 3.0 s |
| Replies or narration | talking | 7 | 1.6 s |
| Paused or overnight | sleeping | 8 | 4.0 s |
| Required action needed | attention | 9 | 1.4 s |
Moods blend into each other, so a move from wave to thinking reads as one motion. Some moods show small accents on by default: sparkles when happy, Z z z while sleeping, thinking dots, and an exclamation mark for attention. The boolean accents hides them. Turn accents off if your brand guide does not allow decoration on a product mascot.
Keep the map in one shared file. If a designer later changes a state, the number lives in one place and every screen follows.
How do you connect the Charmotion MCP server to Claude, Cursor or VS Code?
The remote server is at https://charmotion.app/mcp. It uses Streamable HTTP and OAuth sign-in, so there is no API key to copy into a config file. Your client opens a browser sign-in the first time it connects. The setup for each client is described in the MCP server page, and the general pattern for remote servers is the same across clients.
In Cursor, remote servers are added by giving an HTTP or SSE endpoint URL in mcp.json, as described in Cursor's MCP documentation:
{
"mcpServers": {
"charmotion": {
"url": "https://charmotion.app/mcp"
}
}
}In Claude Code, a project-level .mcp.json file declares the same server with an HTTP type. Claude Code's MCP docs also describe adding a server from the command line.
{
"mcpServers": {
"charmotion": {
"type": "http",
"url": "https://charmotion.app/mcp"
}
}
}Commit the project file so every developer on the team connects to the same server. Designs, character animations and builds use your plan, and the get_account tool shows what is left before you start a large batch.
How do you drive the mood number from app state?
Each character file has a CharacterStateMachine with a number input named mood, and a CharacterViewModelMachine with a Data Binding number property also named mood. A number is the right type here: one value covers all ten moods, and moods blend when the value changes. Rive state machine inputs come in three types, number, boolean and trigger. Booleans suit on or off flags such as accents, and triggers suit one-shot events, which characters do not have.
In the Rive web runtime, you list a state machine's inputs with stateMachineInputs using the state machine name, then find the input by name and set its value:
const inputs = rive.stateMachineInputs('CharacterStateMachine');
const mood = inputs.find(function (i) { return i.name === 'mood'; });
mood.value = 5;Put the mood map beside the setter so screens use names, not numbers:
const MOOD = { idle: 0, happy: 1, wave: 2, thinking: 3, sad: 4, loading: 5, listening: 6, talking: 7, sleeping: 8, attention: 9 };
function setMood(name) { mood.value = MOOD[name]; }
setMood('loading');If your app uses Rive Data Binding instead, read the view model properties through the runtime for your platform. The web runtime's parameter reference is at Rive's web runtime docs. For a fuller walk-through of this pattern, see how to drive mood states from app state.
How do you add a new state without changing the character?
Add the state to the existing character instead of generating a new image. Call add_animations with the animation you need, such as attention for a required action. Only the new animation uses credits, and the original drawing and the other states stay as they are.
Then call get_character_set to get the new download links and the updated AI_README notes. Give the coding assistant that README so it can wire the new mood number into the existing map. Add the value to the shared constants file first, then the screen that uses it.
If a state looks wrong, do not regenerate the whole mascot to fix it. Each animation goes through a review step before delivery, and an animation the engine cannot make gives its credit back. Ask for the missing animation again, or pick a different one from the list that fits the same UI moment.
Keep the previous Rive file in the repository until the new version ships. A rollback then takes one file swap, and the approved drawing never has to be redrawn.
What should a brand check cover before a mascot ships?
Check the set against the approved drawing, not against the last export. Export a transparent poster for each animation and place the posters next to the source image. The face, outline, palette and proportions should match in every state.
- Source: the drawing is approved, finished, coloured and faces the viewer with visible eyes and mouth.
- Map: every UI state uses one mood number from the shared file, and no screen sets numbers directly.
- Accents: the accents flag matches your brand guide.
- Sizes: each state is tested on a real device at the size it appears, not only in the editor.
- Motion: reduced motion settings are respected. See accessible animation and reduced motion.
- Copies: marketing videos come from the same set using
export_videos, so the ads and the app match.
If you also open the .riv file in the Rive editor, check the plan rules first. Is Rive free? covers which plan can export and what the free plan adds to a file.
How to keep an AI-generated mascot on-brand across UI states with an MCP character set
- Approve one source drawing. Pick one finished, coloured character facing the viewer with visible eyes and mouth. If you have no approved artwork, use design_character (1 credit) and approve the result before going further.
- Connect the MCP server. Add https://charmotion.app/mcp to your client's MCP configuration, sign in with OAuth, and confirm the connection with get_account.
- Create one character set. Call create_character_set with the source image and the animations for your states. Launch, happy, wave and loading are preselected, and idle is included free.
- Write the mood map once. Store the ten mood numbers (idle 0 to attention 9) in one shared constants file and map every UI state to a name in that file.
- Wire the mood input from app state. Read the CharacterStateMachine input named mood through your runtime, find it by name, and set its value from the mood map. Use the accents flag if your brand needs accents off.
- Add states to the same character. When a new state is needed, call add_animations on the same character, fetch the updated links with get_character_set, and check the new state against the approved poster.
- Export copies from the same set. Use export_videos for marketing and store copies, then compare every state with the source drawing before release.
Frequently asked questions
Do I need an API key for this MCP server?
No. The remote server at https://charmotion.app/mcp uses Streamable HTTP and OAuth sign-in, so you connect from your MCP client and sign in once in the browser. Designs, character animations and logo builds use the credits on your plan, and get_account shows the balance.
Can I use the same states for a video ad?
Yes. export_videos makes an MP4 at 1080x1080 and 60 fps, a GIF, a transparent WebM, a transparent MOV and a 9:16 launch MP4, usually in about a minute. Exports do not use credits, so marketing copies can be made from the same set as the app states.
Why use a number input for the mood instead of separate booleans?
A single number input lets one value select any of the ten moods, and moods blend when the value changes. Ten separate booleans would need extra logic to keep only one on at a time, and characters have no trigger inputs for one-shot events, so the mood number is the simplest route.
What happens if the engine cannot animate a state I ask for?
The state is not charged. An animation the engine cannot make gives its credit back automatically, and the review step checks each animation before delivery. You can then ask for a different animation that fits the same UI moment.
Sources
- Rive pricing, Rive
- Rive state machines (runtime help), Rive
- Rive web runtime parameters and data binding, Rive
- Cursor MCP configuration (mcp.json), Cursor
- Charmotion MCP server, Charmotion
Related guides
- How to Animate a Logo or Character From Claude, Cursor or VS Code With MCP
- Why AI Animation Keeps Changing Your Character (and How to Stop It)
- Mascot Animation States: Loading, Success, Error
- How to Drive Rive Character Mood States (idle, happy, wave, loading) from App State
- Rive State Machine: Inputs, Triggers & Moods