mcp

v0.1.2
@strata-ds/mcp Checked 2 days ago Published 17 days ago

Model Context Protocol server for the Strata design-token platform

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_projects

List publicly available Strata design-system projects. Returns projectId, title, description, snapshotUrls (pre-built CDN links to all token formats), and pagination cursor. Backed by controllers/publicController.js::listPublicProjects via GET /v1/public/projects.

ParameterTypeDescription
cursorstringPagination cursor from previous nextCursor.
filterstringquality (default) or all.
limitintegerMax results (default 20, max 100).
qstringSearch by project title.

get_project

Get full details of a single public Strata project, including inline designSystemData (variables array and components map) and snapshotUrls for all token formats. Backed by controllers/publicController.js::getPublicProject via GET /v1/public/projects/:projectId.

ParameterTypeDescription
projectId *stringThe project's unique identifier (shown in the Strata dashboard URL).

list_asset_formats

List the files a Strata project publishes, with their URLs. Every project: strata.json, variables.css, strata.css, tailwind.config.json, variables.scss. Token contract projects also: tokens.json (DTCG), tailwind.css (Tailwind v4), token-contract.json, SKILL.md and strata-skill.zip (the project's agent skill). Backed by controllers/publicController.js::listPublicProjectAssets via GET /v1/public/projects/:projectId/assets.

ParameterTypeDescription
projectId *stringThe project's unique identifier.
versionstringSnapshot version tag (omit for latest).

get_tokens

Fetch the raw content of one published file of a Strata project. variables.css (CSS variables on :root), tailwind.css (Tailwind v4 @theme), tailwind.config.json (Tailwind v3), variables.scss, tokens.json (DTCG), strata.json (SDK snapshot), token-contract.json, manifest.json, SKILL.md (the project's agent skill: how to install and use its tokens in any stack) and DESIGN.md when generated. Only files the project publishes are returned; otherwise the error lists the ones it has. Backed by GET /v1/public/projects/:projectId/assets. Usage rules: Use tokens (var(--name)) for every color, space, radi…

ParameterTypeDescription
format *stringThe file to fetch.
projectId *stringThe project's unique identifier.
versionstringSnapshot version id to pin (omit for latest).

get_token_contract

Get the Strata token contract: the 47 primary tokens every Strata project has, with group, type, default and description, and which are ramp tokens (8 colors whose steps -50 … -950 are computed; -500 equals the token). Use it to know the token names before writing UI code. No authentication required. Backed by GET /v1/token-contract. Usage rules: Use tokens (var(--name)) for every color, space, radius, font, shadow and duration; never hard-code a value a token covers. In components use the interface tokens first: color-bg-*, color-text-*, color-border-*, color-action-*, color-focus-ring. Use…

list_variables

List the design tokens of a Strata project. Each item has key, value, type and, on token contract projects, set ("primary": defined by Strata, every project has it; "secondary": the project's own), ramp (true for ramp tokens), description and deprecated ({ aliasOf } for old names kept as aliases; use aliasOf in new code). With includeRampSteps, each ramp token is followed by its computed steps (-50 … -950, with rampOf). Requires STRATA_SYNC_TOKEN. Backed by GET /v1/sync/:projectId/variables. Usage rules: Use tokens (var(--name)) for every color, space, radius, font, shadow and duration; neve…

ParameterTypeDescription
projectId *stringThe project's unique identifier.
includeRampStepsbooleanAdd the computed -50 … -950 steps after each ramp token (default false).

list_secondary_tokens

List only the project's own (secondary) tokens: the ones its team added on top of the 47 primary tokens, each with a description, plus deprecated aliases. Empty for projects that have not moved to the token contract. Requires STRATA_SYNC_TOKEN. Backed by GET /v1/sync/:projectId/custom. Usage rules: Use tokens (var(--name)) for every color, space, radius, font, shadow and duration; never hard-code a value a token covers. In components use the interface tokens first: color-bg-*, color-text-*, color-border-*, color-action-*, color-focus-ring. Use a ramp step such as color-brand-primary-100 only w…

ParameterTypeDescription
projectId *stringThe project's unique identifier.

list_components

List component definitions for a Strata project via the sync endpoint. Returns component names, props, and node trees (styles reference token var() values). Requires STRATA_SYNC_TOKEN. Backed by controllers/syncController.js::getPublicComponents via GET /v1/sync/:projectId/components.

ParameterTypeDescription
projectId *stringThe project's unique identifier.

get_component

Get the definition of a single named component from a Strata project. Filters the result of list_components by name (case-insensitive). Returns props and node tree with token var() references. Requires STRATA_SYNC_TOKEN.

ParameterTypeDescription
name *stringComponent name (case-insensitive, e.g. 'Button').
projectId *stringThe project's unique identifier.

get_insights

Get aggregate design-token drift counts for a Strata project. Returns: computedAt, explicitlySetCount, atDefaultCount, customTokenCount. Requires STRATA_SYNC_TOKEN. Backed by controllers/syncController.js::getPublicInsights via GET /v1/sync/:projectId/insights. Note: explicit token values and AI recommendation messages are omitted from this surface — use the Strata dashboard for full insights.

ParameterTypeDescription
projectId *stringThe project's unique identifier.

suggest_tokens

Return aggregate token drift counts as a proxy for AI token suggestions. The backing AI function (controllers/aiRecommendationsController.js::generateRecommendations) runs internally and has no direct public HTTP route in Track A. Returns public insight counts with a note directing to the Strata dashboard for full recommendations with specific values. Requires STRATA_SYNC_TOKEN.

ParameterTypeDescription
projectId *stringThe project's unique identifier.

get_baseline_preset

Deprecated: use get_token_contract. Returns the same answer with a deprecation note. The baseline preset was replaced by the token contract. Removed in 0.2.0.

ParameterTypeDescription
brandPrimarystringIgnored. Kept so existing calls still validate.