@flareum/mcp
Flareum is where your team keeps its design tokens: the named colours, spacing and fonts your product uses. This
package connects your AI agent to your Flareum project, so it can pull the designers' latest changes, build with your
tokens, review your work and send your changes back.
Developers: the full documentation is further down.
Start in Flareum
You need Node.js 22 or newer. Then:
- Open Flareum and open your project.
- Click Menu → Flareum MCP, then Create key, and pick Read and write.
- Copy the command.
Quick start
Run these in your app's folder, in a terminal or through your AI agent. The first npx flareum asks to install a small
helper package: press y.
Link
<the command you copied from Flareum>
No Install needed. Paste it in a terminal or AI agent.
Then ask your AI agent: pull flareum, then Import the Flareum stylesheets into my app
Doesn't see Flareum? Find it in Supported AI agents.
Unlink
npx flareum unlink
Then delete the key in Menu → Flareum MCP.
Install
npm install --save-dev @flareum/mcp
Optional. Without it, npx fetches Flareum each time. With it, npx flareum runs this copy, so your team shares one
version.
Update
npx -y --package=@flareum/mcp@latest flareum link
Did Install? Also npm i -D @flareum/mcp@latest
Check your version
npx flareum status
Shows what each AI agent runs, and the newest version.
Uninstall
npm uninstall @flareum/mcp
Supported AI agents
Link adds Flareum to every one of these it finds on your computer.
| AI agent |
Added to |
If it doesn't see Flareum |
| Claude Code |
.mcp.json |
Type /mcp and approve flareum. Still missing? Restart it in this folder. |
| Cursor |
.cursor/mcp.json |
Look in its MCP settings. Still missing? Reload it. |
| VS Code |
.vscode/mcp.json |
Trust flareum when it asks. Still missing? Reload it. |
| OpenCode |
opencode.json |
Restart it in this folder. |
| Codex |
.codex/config.toml |
Trust this folder when Codex asks, then restart it. |
| Antigravity |
.agents/mcp_config.json |
Type /mcp to check. Still missing? Restart it. |
| Devin Desktop |
One config for the whole computer |
Not added by default: see Choose the AI agents. |
| Another AI agent with MCP |
Its own settings |
Link by hand. |
| No AI agent |
Nothing |
Link with no AI agent. |
Commit these files, apart from Devin Desktop's. They hold no key, and each teammate links with a key of their own.
What you can do
Link first, then ask in plain words. Your AI agent does the whole job. A terminal command does one step.
| Task |
Ask your AI agent |
Or run |
| Pull the designers' changes |
pull flareum |
npx flareum pull |
| Build with your tokens |
Build a pricing card with our Flareum tokens |
|
| Review a page |
Review the pricing page against our Flareum tokens |
|
| Find a token |
What spacing tokens do we have in Flareum? |
|
| See what a change would break |
What breaks if I change space/4? |
|
| Add or rename a token |
rename <token> to <new name> in flareum |
|
| Push your changes |
push to flareum |
npx flareum push |
| Live preview |
run Flareum live preview |
npx flareum live |
| Work in your open Flareum tab |
What is selected in my open Flareum tab? |
|
| Show designers where tokens are used |
push usage to flareum |
|
| Move to Flareum |
migrate to flareum |
|
| Check your code's colours against the palette |
Which of our colours drifted from the Flareum palette? |
npx flareum palette diff src/styles |
| Follow git branches |
Which Flareum branch does this git branch use? |
npx flareum branch |
| See everything |
/flareum:help |
npx flareum help |
Pushing needs a Read and write key, and your open tab needs a Read and write, in your open tab key: see
Keys. /flareum:help is for Claude Code. In another AI agent, ask for Flareum's help.
Words you'll see
- Your app's folder: the folder with your code and
package.json.
- Token: a named design value, such as
brand-primary or space/4.
- Key: the secret that links your AI agent to one project.
- MCP: the standard way AI agents connect to tools like Flareum.
- Link: connects your app's folder to one Flareum project. The command is
flareum link.
- Save in Flareum keeps your work there. A pull doesn't bring it yet.
- Push in Flareum publishes the stylesheets, ready for a pull.
- Pull brings what was published into your app.
- Push from your code (
push to flareum) sends your token changes to Flareum as a new version. It publishes
nothing: designers review and publish.
Common problems
| What you see |
What to do |
npx asks to install a package called flareum |
That is Flareum's small helper. Press y. |
could not determine executable to run |
Your own project is named flareum, so npx looks there. Do Install. |
| No Flareum MCP in the menu |
You need edit access to the project. |
| Your AI agent doesn't see Flareum |
Follow its row. |
| It still doesn't, on a Mac |
A Terminal opened from the Dock starts in your home folder, not your app's folder. Run Link in your code editor's terminal, then restart your AI agent. |
This project has no published files. |
Press Push in Flareum once, then pull flareum again. |
Your AI agent types #5B8DEF or 16px, not tokens |
Flareum isn't connected in this session. Follow its row. |
KEY_REVOKED on every call |
The key was revoked, or was copied incompletely. Make a key in Flareum, Menu → Flareum MCP, then run flareum connect --token <the key> in your app's folder: it replaces the old one. The rules still read meanwhile. |
API_UNAVAILABLE |
Flareum did not answer, or failed on its side, so nothing was done. Try again in a minute; the rules still read. |
This folder is connected to project … with a key that still works |
Add --replace to the command you copied: see Replace a key. |
| A push is refused |
Read the reason it gives. Usually a stylesheet was edited by hand: ask your AI agent to make the change instead. |
Every error from Flareum says what to do next, and your AI agent sees it. See More problems.
Full documentation
The same tasks as above, in the same words, with every option. Each section says what it does, gives its commands,
then the details.
- Set up: Link, Unlink, Install,
Update, Check your version,
Uninstall
- Everyday work: Pull, Build, Review,
Find, Add or rename, Push
- More you can do: Live preview, Your open Flareum tab,
Token usage, Move to Flareum,
Git branches
- Reference: Commands, Tools, Keys, Files,
Configuration, More problems
Set up
Link in detail
Link connects your app's folder to one Flareum project. The command is flareum link. The one Flareum shows says
flareum connect, which does the same, except that a plain flareum link also moves each AI agent it connected earlier
to its own version: it is how you update. connect, and any run that swaps the key (--replace, --token), leaves each
agent's version as it is, and pins a new entry to your app's Install where there is one.
<the command you copied from Flareum>
It comes from Menu → Flareum MCP in Flareum, which is also a tab in Settings. You need edit access to
see it. It is shown only once: if you lose it, create another key. Choose the key by what your AI agent should do: see
Keys.
Run it in a terminal, or paste it to your AI agent. Your AI agent adds --yes, because it can't answer the question.
The chat then holds your key, so revoke it if that chat is shared.
It does three things:
- Saves your key in
.flareum/config.json, which it keeps out of git.
- Asks to add Flareum to each AI agent it finds. Press Enter for yes.
- Writes an entry for each one. The entry names the version Link ran as, so your team runs one version.
Nothing is installed: your AI agent runs that version through npx.
Commit the entries. They hold no key. Each teammate creates a key of their own and runs Link. Never commit
.flareum/config.json.
Options:
| Option |
What it does |
--project <id> |
The Flareum project, from its URL. Default: the one this folder is linked to. |
--agent <ids> |
Only these AI agents, joined with commas. Default: every one on your computer. |
--yes |
Add Flareum without asking. Where nobody can answer the question, as in a script or an agent's shell, connect stops before changing anything and names the flags to add. |
--replace |
Replace a working key with a new sign-in, or a flareum entry somebody else made. |
--scope <scopes> |
What a new key may do. Default: read,write, within your role on the project. |
--token <pk_…> |
Use this key rather than signing in, in place of any key the folder has. It is the only way to a key that may publish. |
Link with a Google sign-in
There is no key to copy. It opens your browser, you enter the code it prints, and you sign in with Google:
npx flareum link --project <id>
- The project's id is in its URL in Flareum.
- The key can read and write, within your role on the project. To get a key that may publish, create it in Flareum.
Never enter a code someone else sent you. The key goes to whoever printed the code, so typing someone else's code
hands them your access.
Choose the AI agents
Add Flareum to the AI agents you name, in a folder that is already linked. In a new folder, add --project <id>:
npx flareum link --agent cursor,vscode
Name them as claude-code, cursor, vscode, opencode, codex, antigravity or devin.
Devin Desktop is added only when you name it, because it has one config for the whole computer. The entry names
this folder, so Flareum there reaches this project from every folder. Restart it afterwards.
Replace a key
Link is refused while this folder's key still works, if you give it a new key or another project. Add --replace.
With a key from Flareum, add --replace to the command you copied.
With a Google sign-in, for this project or another:
npx flareum link --replace --project <id>
A sign-in gives a read,write key, so add --scope to keep open-tab access. The old key keeps working until you
revoke it.
Link with your AI agent's own command
The key goes in your AI agent's settings. When the server first starts in a folder, it also copies the key into that
folder's .flareum/config.json, kept out of git, so the commands work there.
Create a key in Flareum. The key is the pk_… part of the command it shows: put that in place of pk_… below.
Claude Code:
claude mcp add flareum --env FLAREUM_TOKEN=pk_… -- npx -y --package=@flareum/mcp flareum-mcp
Codex:
codex mcp add flareum --env FLAREUM_TOKEN=pk_… -- npx -y --package=@flareum/mcp flareum-mcp
VS Code: