AI agents (MCP)

Stoaken is an MCP server. Agents read your tokens, export them and propose changes, and every change still waits for a person to approve it.

Connect

The quickest way is npx stoaken init in your project: it signs you in, sets up your AI tool and writes .stoaken/SKILL.md, a guide to the tools you can point your AI tool at. To add the server by hand, use an API key from Settings > Developer access:

Terminal
claude mcp add --transport http stoaken https://www.stoaken.com/mcp --header "Authorization: Bearer $STOAKEN_API_KEY"

The agent acts as you: it sees only the Brands you can see, with your role on each.

What you’ll see if you sign in instead of using a key. Add the server with just its URL (https://www.stoaken.com/mcp) and start your tool’s sign-in (in Claude Code, /mcp). Your browser opens Stoaken’s sign-in page; after you sign in, a consent screen asks whether the tool, by the name it gives itself, may use your account. Check the name, then allow it. Tools that publish a client document (a Client ID Metadata Document) are recognised by its URL; others register themselves first (Dynamic Client Registration).

Company sign-in works here too. If your company signs you in to Stoaken with its own sign-in, the browser opens it, and you sign in the way you do at work. An API key keeps working either way: keys aren’t tied to how you sign in, so revoke one on Settings > Developer access when it’s no longer needed.

Signing in from AI tools has to be switched on first. If it isn’t available yet, use an API key from Settings > Developer access as above.

Tools

  • get_started
    What it does
    Where to begin: your Brands, your role on each, and what you can do there.
    Changes things?
    No
  • list_brands
    What it does
    The Brands you can see, with your role on each.
    Changes things?
    No
  • get_brand
    What it does
    A Brand's themes, token sets and modes: every id the other tools take.
    Changes things?
    No
  • get_token_set
    What it does
    One token set as stored, with the hash to edit it safely.
    Changes things?
    No
  • get_theme_tokens
    What it does
    A theme's tokens as stored.
    Changes things?
    No
  • get_resolved_theme_tokens
    What it does
    Tokens as a release would publish them, for any mode.
    Changes things?
    No
  • list_deprecated_tokens
    What it does
    What is deprecated, its replacement, and what still uses it.
    Changes things?
    No
  • list_releases
    What it does
    A theme's releases, their status and what changed, counted by kind.
    Changes things?
    No
  • summarize_release
    What it does
    A release in plain words: what changes, what breaks, what it reaches.
    Changes things?
    No
  • release_changes
    What it does
    Every change in a release, mode by mode, against the one before or any other.
    Changes things?
    No
  • release_timeline
    What it does
    What happened to a release and when: sent, handed on, approved, rejected.
    Changes things?
    No
  • export_tokens
    What it does
    A live release as CSS, SCSS, Tailwind, Swift, Android or JSON, ready to commit.
    Changes things?
    No
  • list_webhooks
    What it does
    A Brand's webhooks, their health and latest deliveries.
    Changes things?
    No
  • create_webhook
    What it does
    Add a webhook (the secret is returned once).
    Changes things?
    Settings
  • update_webhook
    What it does
    Change or re-enable a webhook.
    Changes things?
    Settings
  • rotate_webhook_secret
    What it does
    New signing secret; the old one signs for 24 hours.
    Changes things?
    Settings
  • ping_webhook
    What it does
    Send a signed test event.
    Changes things?
    Settings
  • list_members
    What it does
    Your workspaces, or one workspace's members and open invitations.
    Changes things?
    No
  • create_workspace
    What it does
    Add a workspace (say, one per client) next to one you administer.
    Changes things?
    Settings
  • invite_members
    What it does
    Invite up to 50 people with the same access; each gets an email.
    Changes things?
    Settings
  • revoke_invitation
    What it does
    Withdraw an open invitation.
    Changes things?
    Settings
  • create_theme
    What it does
    Create a theme from token sets, optionally copying modes.
    Changes things?
    Settings
  • update_theme
    What it does
    Rename a theme or change its sets.
    Changes things?
    Settings
  • delete_theme
    What it does
    Delete a theme that was never released.
    Changes things?
    Settings
  • create_token_set
    What it does
    Create a token set (empty or from DTCG), optionally on top of a theme; lists overrides first; can file a release for review.
    Changes things?
    Settings
  • create_theme_axis
    What it does
    Add an axis (like color-scheme) with its modes to a theme.
    Changes things?
    Settings
  • create_theme_mode
    What it does
    Add a mode to an axis, optionally turning a set on in it.
    Changes things?
    Settings
  • set_mode_binding
    What it does
    Say whether a mode turns a token set on, off, or uses it as a source.
    Changes things?
    Settings
  • add_icons
    What it does
    Add up to 40 SVG icons to a Brand (cleaned; names with dashes or underscores; skip or replace a taken name). Working copy only.
    Changes things?
    Settings
  • scan_icon_usage
    What it does
    Read source files (never run) and list the icons they use, set by set, with exact names (imports, Iconify ids, class names, Material ligatures, SVG files, sprites).
    Changes things?
    No
  • add_icons_by_name
    What it does
    Add exactly the named icons from public sets (Iconify ids, or names from scan_icon_usage), up to 300 a call, with source, version and licence. The whole set only on an explicit confirm. Working copy only.
    Changes things?
    Settings
  • add_logos
    What it does
    Add up to 5 logo files (SVG, PNG, WebP, JPEG or ICO) to a named logo set, made when missing. Working copy only.
    Changes things?
    Settings
  • propose_asset_release
    What it does
    Send the Brand's icon and logo changes for review as a release of its main theme; always waits for a person.
    Changes things?
    Proposes a release for review
  • find_tailwind_defaults
    What it does
    List the Tailwind defaults a set holds that nobody changed: removable, or still used by another token.
    Changes things?
    No
  • propose_token_change
    What it does
    Edit a token set and submit it for review.
    Changes things?
    Proposes a release for review
  • propose_token_edits
    What it does
    Set, add, rename or delete tokens (or a whole group) and submit for review.
    Changes things?
    Proposes a release for review
  • propose_token_deprecation
    What it does
    Deprecate a token, reviewed like any other change.
    Changes things?
    Proposes a release for review
ToolWhat it doesChanges things?
get_startedWhere to begin: your Brands, your role on each, and what you can do there.No
list_brandsThe Brands you can see, with your role on each.No
get_brandA Brand's themes, token sets and modes: every id the other tools take.No
get_token_setOne token set as stored, with the hash to edit it safely.No
get_theme_tokensA theme's tokens as stored.No
get_resolved_theme_tokensTokens as a release would publish them, for any mode.No
list_deprecated_tokensWhat is deprecated, its replacement, and what still uses it.No
list_releasesA theme's releases, their status and what changed, counted by kind.No
summarize_releaseA release in plain words: what changes, what breaks, what it reaches.No
release_changesEvery change in a release, mode by mode, against the one before or any other.No
release_timelineWhat happened to a release and when: sent, handed on, approved, rejected.No
export_tokensA live release as CSS, SCSS, Tailwind, Swift, Android or JSON, ready to commit.No
list_webhooksA Brand's webhooks, their health and latest deliveries.No
create_webhookAdd a webhook (the secret is returned once).Settings
update_webhookChange or re-enable a webhook.Settings
rotate_webhook_secretNew signing secret; the old one signs for 24 hours.Settings
ping_webhookSend a signed test event.Settings
list_membersYour workspaces, or one workspace's members and open invitations.No
create_workspaceAdd a workspace (say, one per client) next to one you administer.Settings
invite_membersInvite up to 50 people with the same access; each gets an email.Settings
revoke_invitationWithdraw an open invitation.Settings
create_themeCreate a theme from token sets, optionally copying modes.Settings
update_themeRename a theme or change its sets.Settings
delete_themeDelete a theme that was never released.Settings
create_token_setCreate a token set (empty or from DTCG), optionally on top of a theme; lists overrides first; can file a release for review.Settings
create_theme_axisAdd an axis (like color-scheme) with its modes to a theme.Settings
create_theme_modeAdd a mode to an axis, optionally turning a set on in it.Settings
set_mode_bindingSay whether a mode turns a token set on, off, or uses it as a source.Settings
add_iconsAdd up to 40 SVG icons to a Brand (cleaned; names with dashes or underscores; skip or replace a taken name). Working copy only.Settings
scan_icon_usageRead source files (never run) and list the icons they use, set by set, with exact names (imports, Iconify ids, class names, Material ligatures, SVG files, sprites).No
add_icons_by_nameAdd exactly the named icons from public sets (Iconify ids, or names from scan_icon_usage), up to 300 a call, with source, version and licence. The whole set only on an explicit confirm. Working copy only.Settings
add_logosAdd up to 5 logo files (SVG, PNG, WebP, JPEG or ICO) to a named logo set, made when missing. Working copy only.Settings
propose_asset_releaseSend the Brand's icon and logo changes for review as a release of its main theme; always waits for a person.Proposes a release for review
find_tailwind_defaultsList the Tailwind defaults a set holds that nobody changed: removable, or still used by another token.No
propose_token_changeEdit a token set and submit it for review.Proposes a release for review
propose_token_editsSet, add, rename or delete tokens (or a whole group) and submit for review.Proposes a release for review
propose_token_deprecationDeprecate a token, reviewed like any other change.Proposes a release for review
There is no tool that approves or publishes a release. Proposals land in the Command Center for a person to review, exactly as if you had made the change in the app.

From MCP 1.3.0, create_token_set, create_theme_axis, create_theme_mode and set_mode_binding change the Brand’s working copy (Editor on the Brand), the way create_theme does. A new set is empty unless you pass a document; with themeId it goes on top of that theme, but if its tokens would give existing tokens new values it is made and added to no theme, and the answer lists the overrides for a person to agree to first. create_token_set’s optional release files a release that always waits for a person. The propose tools take an optional title: one plain line (up to 120 characters) shown beside the version.

From MCP 1.4.0, add_icons (up to 40 SVG icons a call, 1 MB in all; names with dashes or underscores, onConflict skip or replace), add_logos (up to 5 files a call into a named logo set, made when missing; SVG text or base64 PNG, WebP, JPEG or ICO, 1 MB in all) and propose_asset_release (a release of the Brand’s main theme that carries the icon and logo changes; it always waits for a person, and is refused when nothing changed). find_tailwind_defaults (read only) lists the Tailwind defaults a set holds that nobody changed, removable or still used. None of these publish anything: a person approves the release that makes them live. For a whole folder, use npx stoaken icons push.

Example prompts

Not sure where to start? Stoaken also offers ready-made prompts. In Claude Code, type /mcp__stoaken__get_started: it lists your Brands, your role on each and what you can do there. Tools that don’t show prompts can call the get_started tool instead. They come from the server, so they work with any CLI version.

  • "Which tokens are deprecated in the Default theme, and what still uses them?"
  • "Export the Default theme as Tailwind 4 and update src/theme.css."
  • "Propose raising spacing.lg to 24px as a minor release."
  • "Create a webhook on the Acme Brand for release.published to https://example.com/hooks."

Limits

Changes through MCP are limited to 30 an hour for each key or sign-in, and on the Free plan agents are read only (they can still read and export).

Troubleshooting

  • The tool isn’t signed in, or Stoaken doesn’t accept its key
    What to do
    Sign in again (in Claude Code, /mcp), or check the key on Settings > Developer access. A revoked key stops working at once. Set up with the CLI? Run npx stoaken init again.
  • A change is refused on the Free plan
    What to do
    On Free, agents can read and export but not propose changes. Upgrade to Light or Team on Billing, or make the change in the app. Reading and export_tokens still work.
  • It says you’ve hit the limit
    What to do
    That’s 30 changes an hour for one key. Try later, or put your edits in one propose_token_edits call.
  • It says you don’t have the role for that
    What to do
    Changing tokens and themes needs Editor on the Brand, webhooks need Brand Admin, and members need workspace Admin. Ask a Brand Admin for access (a workspace Admin can see who has which role in Settings > Members).
  • A Brand, theme or set isn’t found
    What to do
    Check the id with list_brands, then get_brand. Every other tool takes the ids these return.
  • It says your edits were saved but no release was made
    What to do
    Read the set with get_token_set first: your edits are already in it. Check list_releases, then propose again with a higher version and without baseHash.
  • It says a draft release was made but not sent for review
    What to do
    Open the link it gives and send it for review from the Command Center.
  • It says someone else changed the set while it was being put back
    What to do
    Your edits are still in the set because someone else saved it at the same time. Check it with get_token_set and propose again.
  • It says the outcome is uncertain
    What to do
    Check list_releases before trying again.
  • A proposal went through but nothing changed
    What to do
    That’s by design: it’s waiting in the Command Center for a person to review. Once it’s approved, it’s live.
IfWhat to do
The tool isn’t signed in, or Stoaken doesn’t accept its keySign in again (in Claude Code, /mcp), or check the key on Settings > Developer access. A revoked key stops working at once. Set up with the CLI? Run npx stoaken init again.
A change is refused on the Free planOn Free, agents can read and export but not propose changes. Upgrade to Light or Team on Billing, or make the change in the app. Reading and export_tokens still work.
It says you’ve hit the limitThat’s 30 changes an hour for one key. Try later, or put your edits in one propose_token_edits call.
It says you don’t have the role for thatChanging tokens and themes needs Editor on the Brand, webhooks need Brand Admin, and members need workspace Admin. Ask a Brand Admin for access (a workspace Admin can see who has which role in Settings > Members).
A Brand, theme or set isn’t foundCheck the id with list_brands, then get_brand. Every other tool takes the ids these return.
It says your edits were saved but no release was madeRead the set with get_token_set first: your edits are already in it. Check list_releases, then propose again with a higher version and without baseHash.
It says a draft release was made but not sent for reviewOpen the link it gives and send it for review from the Command Center.
It says someone else changed the set while it was being put backYour edits are still in the set because someone else saved it at the same time. Check it with get_token_set and propose again.
It says the outcome is uncertainCheck list_releases before trying again.
A proposal went through but nothing changedThat’s by design: it’s waiting in the Command Center for a person to review. Once it’s approved, it’s live.

A refused change says what to fix, so asking the agent to retry the same call won’t help. To check a project the CLI set up, run npx stoaken status (CLI 0.6.0 or later). More in CLI troubleshooting.

Was this page useful?