Sharing Project-Level .mcp.json Animation Servers Across a Frontend Team
By the Charmotion team · Updated · How we write guides

To share project-level animation servers with a frontend team, commit a .mcp.json file at the repository root that lists them under mcpServers. Every developer who opens that project in Claude Code gets the same entries. Keep tokens out of the file by referencing environment variables, and leave personal servers in the local or user scope.
Key takeaways
- Commit one .mcp.json at the repository root so every developer gets the same project servers.
- Reference environment variables for tokens and never paste a literal secret into a file that goes into git.
- Servers added in local scope are stored in ~/.claude.json and do not reach teammates.
- An OAuth server such as Charmotion's needs each developer to sign in with their own account.
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.
Where does a project-level MCP server live in Claude Code?
Claude Code reads MCP server definitions from more than one place. The official MCP docs list .mcp.json as one place where servers can be declared in JSON, alongside ~/.claude.json and the claude mcp add-json command. For a team, the file that matters is the project-scoped one, because it lives in the repository and travels with it.
Third-party setup guides describe three scopes. Local is the default when you add a server without a scope flag. Project writes to .mcp.json at the project root and is shared through version control. User applies to every project on your machine. The table shows where each scope lands.
| Scope | Where it is stored | Who gets it |
|---|---|---|
| Local (default) | ~/.claude.json, under the current project | Only you, in that project |
| Project | .mcp.json in the project root | Everyone who clones the repository |
| User | ~/.claude.json | You, in every project |
A server added in local scope works on your machine and never appears for a colleague. That is the most common reason a shared setup fails. Check the official MCP page for the exact flag names before you script scope changes. A step-by-step setup for a single developer is in how to connect a remote animation MCP server to Claude Code.
What should a shared .mcp.json file contain?
The file holds one object called mcpServers. Each key is a server name your team will recognize, and each value describes how Claude Code reaches that server. For a remote server, set type to http and give the url. The official docs accept streamable-http as an alias for http, so either works, but pick one and use it everywhere.
Headers are optional. Add them only when a server needs one, and keep the values as variable references. Renaming a key changes the name developers see for that server, so agree on names before the first commit. The example below has one server that signs in through OAuth and one that reads a token from the environment.
{\n \"mcpServers\": {\n \"charmotion\": {\n \"type\": \"http\",\n \"url\": \"https://charmotion.app/mcp\"\n },\n \"design-assets\": {\n \"type\": \"http\",\n \"url\": \"https://mcp.example.com/animation\",\n \"headers\": {\n \"Authorization\": \"Bearer ${DESIGN_ASSETS_TOKEN}\"\n }\n }\n }\n}The second URL is a placeholder. Two details trip people up. An entry with a url but no type is treated as a stdio server, and the official docs count that as a configuration error, so always set type on remote entries. Also keep the file valid JSON, because a single trailing comma can make the whole file unreadable for everyone who pulls the branch.
How do you keep tokens out of a shared .mcp.json?
Claude Code expands environment variables inside .mcp.json files, according to the official docs. That is what lets a team share one file while each machine supplies its own secrets. Reference the variable in the file, set the value in each developer's shell profile or CI secret store, and never paste the literal token into the JSON. Check the official docs for the exact variable syntax before you rely on it.
Before merging, read the diff for anything that looks like a key. A token committed once stays in git history even after the line is deleted, so rotate it immediately if it lands in a commit. List the variable names in the project README so a new developer knows which values to set on day one.
Servers that use OAuth need no token in the file at all. Browser sign-in happens per person, which is one reason to prefer OAuth for shared remote servers. The guide to no-API-key OAuth MCP servers compares that approach with key-based setups.
Why does a shared MCP server not show up for a teammate?
Most failures come from five causes. Check them in this order.
- Wrong scope. The server was added in local or user scope, so it is stored in ~/.claude.json on one machine. Move the definition into .mcp.json at the root.
- File not at the root. Project scope reads the file in the project root. A copy in a subfolder is ignored.
- Missing type. A url without a type is a configuration error in the official docs.
- Unset variable. A teammate who has not exported the variable gets a server that cannot authenticate.
- Invalid JSON. A trailing comma or an unescaped quote breaks the whole file.
If none of these explains the failure, open the official MCP docs for the current error messages. Wording can change between releases, so the docs are the reliable reference.
What does each teammate sign in to for a character server?
Charmotion's remote MCP server is at https://charmotion.app/mcp. It uses Streamable HTTP and OAuth sign-in, with no API key, so the shared file holds only the URL and the entry looks like the one above. Each developer signs in with their own account.
Usage follows the account. Designs, character animations and logo animation builds draw on that person's plan, and get_account shows what is left. The main tools are design_character and design_logo for AI designs, create_character_set with the animations you pick, add_animations for later additions, get_character_set for download links and AI_README notes, and export_videos for video. Logo work uses start_motion, build_motion and refine_motion. Animated previews and guide search work without an account.
Once the files are in the repository, a React app can load them like any other asset. The steps are in how to add animation to a React or Next.js app, and the server reference is on the MCP server page.
How to share project-level .mcp.json animation servers across a frontend team
- Choose the shared servers. Include only the MCP servers every developer on the project needs. Keep personal tools in local or user scope.
- Write the file at the repository root. Create .mcp.json in the project root with one key per server under mcpServers, setting type and url for each remote server.
- Move secrets into environment variables. Reference each token as a variable in the file and have each developer set the value on their own machine.
- Commit the file in a pull request. Commit .mcp.json with the code that calls the servers so reviewers see both together.
- Test from a clean clone. A teammate pulls the branch, opens Claude Code in the repository and confirms the server is listed, then checks the causes of failure if it is not.
Frequently asked questions
Should .mcp.json be committed to git?
Yes, when the file holds only shared server definitions and variable references. Builder.io's guide describes project-scoped servers as shared through version control, which is the purpose of the file. Keep literal tokens out, and treat every change to the file as a review item, the same as any other configuration change.
Do teammates need their own accounts for a shared OAuth server?
Yes. OAuth sign-in happens for each person, so every developer authorizes the server with their own account. Usage then counts against that person's plan and credits rather than a single shared balance, which makes it clear who spent what.
Can one project file mix remote and local servers?
Yes, but set type on every remote entry. The official docs treat an entry with a url and no type as a stdio server and report it as a configuration error. For local command-based servers, check the official MCP docs for the stdio fields before you add them to the team file.
Does a project .mcp.json replace CLAUDE.md?
No. The .mcp.json file declares which servers exist. CLAUDE.md is a Markdown instruction file that Claude Code loads at the start of each session, and it tells the agent how to use those servers. Many teams keep both in the repository: one for connections, one for conventions.
Sources
- Claude Code MCP documentation, Anthropic
- Claude Code memory (CLAUDE.md), Anthropic
- Claude Code MCP servers, Builder.io
- MCP JSON config, Requesty
- MCP JSON configuration reference 2026, The Prompt Shelf
- Charmotion MCP server, Charmotion
Related guides
- How to Connect a Remote Animation MCP Server to Claude Code
- Streamable HTTP OAuth MCP vs. Local stdio MCP for Design and Animation Workflows
- Writing CLAUDE.md and .cursorrules for Rive Data Binding Mascot Integrations
- No-API-Key OAuth MCP Servers for Frontend Design and Motion Assets
- How to Animate a Logo or Character From Claude, Cursor or VS Code With MCP