1. Conduid
  2. Documentation
  3. S2 Docs
MCP server · Documentation

S2 Docs

Design data, including design tokens, component schemas, and tooling for Spectrum, Adobe's design system.

Unclaimed Apache-2.0 design-systemdesign-tokens
75Good

Scored 22 hours ago · breakdown

About S2 Docs

S2 Docs is an MCP server published by adobe in the Documentation category: design data, including design tokens, component schemas, and tooling for Spectrum, Adobe's design system. Conduid read 44 tools from its source: add_mode, authoring_session_cancel, authoring_session_commit, authoring_session_get, authoring_session_list, authoring_session_step_classification and 38 more. It is published to npm as @adobe/s2-docs-mcp and starts with npx.

The adobe/spectrum-design-data monorepo this package is published from has 161 stars and 37 forks, is licensed Apache-2.0, and its last commit was on 2 Dec 2026. The latest release is design-data-cli@0.54.0 (18 Nov 2026): Native CLI binary for design-data v0.54.0. It follows @adobe/spectrum-tokens@15.8.0 (18 Nov 2026), and the 5 most recent releases go back to @adobe/spectrum-design-data@3.21.0 (18 Nov 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include design-system and design-tokens.

Install

Claude Code
claude mcp add s2-docs -- npx -y @adobe/s2-docs-mcp
npx
npx -y @adobe/s2-docs-mcp
From source
git clone https://github.com/adobe/spectrum-design-data

Tools (44)

add_modeAppend a new mode to an existing mode-set file.
ParameterTypeDescription
make_defaultbooleanMake this the default mode.
mode *stringName of the new mode to add.
mode_set_file *stringPath to the mode-set JSON file.
authoring_session_cancelCancel a session and delete its on-disk file.
ParameterTypeDescription
session_id *string
authoring_session_commitBuild and write the token to disk as a cascade array element, then remove the session. Requires schema_url (the JSON Schema URL for the token type) and target (the *.tokens.json cascade file to write into).
ParameterTypeDescription
is_overridebooleanTrue when this token overrides an existing foundation/platform token.
product_contextstringPath to product-context.json for rationale capture.
rationalestringWhy this token is being created.
schema_pathstringPath to schemas directory containing token-types/ and token-file.json. Defaults to the @adobe/design-data-spec schemas when omitted.
schema_url *stringThe $schema URL for the token type, e.g. https://opensource.adobe.com/spectrum-design-data/schemas/token-types/color.json
session_id *string
target *stringTarget *.tokens.json cascade file to write into (created if absent, upserted if present).
authoring_session_getGet the current state of an authoring session.
ParameterTypeDescription
session_id *string
authoring_session_listList all active authoring sessions.
authoring_session_step_classificationSet the layer, property, and name-object fields for the token. name_fields is an array of {key, value} objects. Classification is validated against the active fields catalog.
ParameterTypeDescription
layer *stringToken layer.
name_fieldsarrayAdditional name-object fields beyond property.
property *stringToken property, e.g. 'background-color'.
session_id *string
authoring_session_step_intentUpdate the intent for a session and get ranked existing-token suggestions. Returns suggestions and can_alias (true when a high-confidence match exists).
ParameterTypeDescription
intent *stringNatural-language description of what the token is for, e.g. 'accent background color'.
session_id *string
authoring_session_step_valuesSet the value rows for the token. Each row specifies mode conditions and either a literal value or an alias target. Most tokens need one row with empty mode_combo.
ParameterTypeDescription
rows *arrayValue rows. Each: { mode_combo: [[key,val],...], kind: 'Literal'|'Alias', alias_target: string, literal: string }
session_id *string
create_mode_setAuthor a new mode-set file for a new cascade dimension. The file must not already exist. default must be a member of modes.
ParameterTypeDescription
default *stringDefault mode — must be a member of modes.
descriptionstringHuman-readable description embedded in the file.
mode_set_file *stringDestination path for the new mode-set JSON file (must not exist).
modes *arrayOrdered list of mode names, e.g. ['light', 'dark'].
name *stringLogical name used as the key in token name objects, e.g. 'colorScheme'.
data_createCreate a new non-token data object (component, field, registry entry, mode-set, or guideline). Validates the JSON document against the category schema before writing. Fails if the file already exists — use data_edit to overwrite.
ParameterTypeDescription
category *stringData category to create in.
datasetstringPath to the dataset root (packages/design-data). Defaults to DESIGN_DATA_PATH minus /tokens.
document *objectFull JSON document to write. Must include the category's required fields (e.g. `name`, `$schema`, `specVersion`). The filename is derived from the `name` field.
spec_schemasstringPath to the design-data-spec schemas dir. Defaults to DESIGN_DATA_SPEC_SCHEMAS or auto-probed.
data_editReplace an existing non-token data object with a new JSON document. Validates the document against the category schema before writing. Fails if the file does not exist — use data_create to create it. Edit is a full document replace, not a patch.
ParameterTypeDescription
category *stringData category to edit in.
datasetstringPath to the dataset root (packages/design-data). Defaults to DESIGN_DATA_PATH minus /tokens.
document *objectFull replacement JSON document. The `name` field must match the existing file.
spec_schemasstringPath to the design-data-spec schemas dir. Defaults to DESIGN_DATA_SPEC_SCHEMAS or auto-probed.
deprecate_tokenStamp a deprecation marker onto a cascade token. Optionally record a replacement UUID and a planned-removal spec version.
ParameterTypeDescription
deprecated_commentstringHuman-readable deprecation explanation / migration guidance.
planned_removalstringSpec version at which the token will be removed.
rationalestringWhy the token was deprecated.
replaced_bystringReplacement token UUID (string) or JSON array of UUIDs.
schema_pathstringSchemas directory for validation.
spec_version *stringDataset specVersion string to stamp into the deprecated value, e.g. '1.0.0'.
target *stringPath to the *.tokens.json cascade file containing the token.
uuid *stringUUID of the token to deprecate.
describe_componentReturn the JSON schema and token relationships (bindings) for a design system component by its ID.
ParameterTypeDescription
id *stringComponent ID, e.g. button
describe_guidelineReturn the full documentBlocks content and metadata for a Spectrum design guideline by its slug ID — the read-back counterpart to data_create/data_edit for the guidelines category. Guideline IDs are kebab-case, e.g. colors, motion, typography-fundamentals.
ParameterTypeDescription
id *stringGuideline ID (kebab-case slug), e.g. colors, motion
diff_datasetsCompare two design data datasets and return a JSON diff of added, removed, and changed tokens.
ParameterTypeDescription
filterstringOptional filter expression to narrow results
newPath *stringPath to the new/updated dataset
oldPath *stringPath to the old/baseline dataset
edit_tokenMerge field updates into an already-committed cascade token, then re-validate. The token's uuid is always preserved and silently ignored if included in updates.
ParameterTypeDescription
rationalestringWhy the token changed.
schema_pathstringSchemas directory for validation (default: auto-resolved from target).
target *stringPath to the *.tokens.json cascade file containing the token.
tokens_rootstringRoot tokens directory — required when updates contains a $ref.
updates *objectFields to merge into the token object, e.g. { "value": "#ff0000" }.
uuid *stringUUID of the token to edit.
find-s2-component-by-use-caseFind S2 components by use case or design pattern
ParameterTypeDescription
useCase *stringUse case or design pattern (e.g., "form input", "navigation", "feedback", "selection")
get-component-schemaGet full JSON schema for one component.
ParameterTypeDescription
component *stringComponent name
get-component-tokensGet tokens whose name contains a component (e.g. button, input).
ParameterTypeDescription
componentName *stringComponent name substring
get-s2-componentGet documentation for a specific Spectrum 2 component
ParameterTypeDescription
categorystringComponent category (optional, helps with lookup)
name *stringComponent name (e.g., "Button", "Action Button") or slug (e.g., "button", "action-button")
get-s2-statsGet statistics about the Spectrum 2 component documentation
get-token-detailsGet full token data by path (flat token name).
ParameterTypeDescription
categorystringCategory to search in
tokenPath *stringToken path/name
list-componentsList all components (names and summary, no full schema).
list-s2-componentsList all available Spectrum 2 components
ParameterTypeDescription
categorystringFilter by category (${getCategories().join(", ")})
list_guidelinesList available Spectrum design guidelines and their metadata. Optionally filter the catalog by category before calling describe_guideline.
ParameterTypeDescription
categorystringOptional guideline category, e.g. designing or implementing
primerLoad the design data primer: full token taxonomy, resolved values, component list, and field definitions. Call this at the start of an agent session.
query-tokensSearch Spectrum tokens by name, type, or category. Categories: color-aliases, color-component, color-palette, icons, layout, layout-component, semantic-color-palette, typography.
ParameterTypeDescription
categorystringFilter by category
limitnumberMax results (default: 50)
querystringFilter by name, type, or description
typestringFilter by token type
query-tokens-by-valueFind tokens by direct or resolved value (follows aliases).
ParameterTypeDescription
exactbooleanExact match (default: true)
limitnumberMax results (default: 50)
value *stringValue to match (e.g. 1px, #000)
query_tokensQuery design tokens using a filter expression. Returns matching token entries; alias tokens add `value` (the token's own resolved value in its own mode), and `chain` with view=full.
ParameterTypeDescription
filter *stringFilter expression, e.g. "property=background-color". Valid keys: property, component, variant, state, colorScheme, scale, contrast, uuid, $schema, tier (primitive, semantic or component), object, anatomy, colorRole. Results include purposeFields. Note: "component" is not currently populated on tokens — component=<id> always returns []; use describe_component instead.
viewany
remove_modeRemove a mode from a mode-set file. Aborts if any token references that mode value or if the mode is the current default.
ParameterTypeDescription
mode *stringMode name to remove.
mode_set_file *stringPath to the mode-set JSON file.
tokens_root *stringRoot tokens directory for reference guard.
remove_mode_setDelete a mode-set file. Aborts if any token in the dataset references this dimension.
ParameterTypeDescription
mode_set_file *stringPath to the mode-set JSON file to remove.
tokens_root *stringRoot tokens directory for reference guard.
remove_tokenDelete a token from a cascade file. Aborts if any other token in the dataset holds a $ref pointing at this token's UUID.
ParameterTypeDescription
target *stringPath to the *.tokens.json cascade file containing the token.
tokens_root *stringRoot tokens directory for inbound-reference guard.
uuid *stringUUID of the token to remove.
rename_modeRename a mode in a mode-set file and propagate the change to all token files under tokens_root that use that mode value.
ParameterTypeDescription
mode_set_file *stringPath to the mode-set JSON file.
new *stringReplacement mode name.
old *stringExisting mode name to rename.
tokens_root *stringRoot tokens directory for propagation.
rename_tokenAssign a new name object to a cascade token, preserving its UUID. Optionally set a replaced_by pointer on the token being renamed.
ParameterTypeDescription
new_name *anyNew name — either a JSON object ({"property":"…","component":"…"}) or a plain string.
rationalestringWhy the token was renamed.
replaced_by_targetstringUUID to set as the replaced_by pointer (for retiring the old name).
schema_pathstringSchemas directory for validation.
target *stringPath to the *.tokens.json cascade file containing the token.
uuid *stringUUID of the token to rename.
resolve_tokenResolve a design token property to its final value for a given context. Use component, variant, state, or colorRole to disambiguate shared properties; inspect ambiguous and deprecated in the result.
ParameterTypeDescription
colorRolestringOptional color role such as accent, negative, or positive.
colorSchemestringColor scheme: light or dark
componentstringOptional component name-object field. It is sparsely populated; prefer variant, state, or colorRole when available.
contraststringContrast: regular or high
excludeDeprecatedbooleanExclude tokens with lifecycle.deprecatedIn from candidate resolution.
property *stringBare token property name (the name.property segment, e.g. "background-color", "corner-radius" — see primer().properties for the full list). Not a flattened legacyKey.
scalestringScale: desktop or mobile
statestringOptional token state used to narrow shared properties (including array-valued state).
variantstringOptional token variant used to narrow shared properties.
rewire_aliasChange the $ref target on an alias token. The new ref target must resolve in the cascade. Rejects if the token is not an alias.
ParameterTypeDescription
new_ref *stringNew $ref value — must be a UUID that resolves in the cascade.
rationalestringWhy the alias target changed.
schema_pathstringSchemas directory for validation.
target *stringPath to the *.tokens.json cascade file containing the token.
tokens_root *stringRoot tokens directory for ref-resolution verification.
uuid *stringUUID of the alias token to rewire.
search-components-by-featureFind components that have a property matching a name (e.g. size, disabled).
ParameterTypeDescription
feature *stringProperty name substring
search-s2-docsSearch Spectrum 2 documentation by component name or content
ParameterTypeDescription
query *stringSearch query
searchContentbooleanSearch within component content (slower but more thorough)
start_authoring_sessionStart a new token authoring session. Returns a session_id and the initial wizard state. The session persists across calls — use the returned session_id in subsequent steps.
ParameterTypeDescription
dataset_pathstringPath to the token dataset directory. Defaults to DESIGN_DATA_PATH.
suggest_tokenSuggest Spectrum tokens matching a natural-language intent using Jaccard similarity scoring over token name segments, name-object fields, and description text. Returns matches ranked by confidence with token name, layer, value, and name object. Use when the user describes what they need rather than knowing the token name.
ParameterTypeDescription
intent *stringNatural-language description of the design need, e.g. "primary CTA button background color"
limitnumberMaximum number of suggestions to return (default: 5)
viewany
token_refinementsShow a token's semantic specificity (tier, then purpose-field count, derived from its name) and the same-property tokens that are narrower (add purpose fields) or broader (drop them). Each neighbor lists `fields` it adds or lacks and a `valueMatch`: "drop-in" (same value in every mode) or "consider" (differs; see `differingModes`). Specificity only orders tokens; check the added fields fit the use before swapping.
ParameterTypeDescription
limitnumberMaximum narrower and broader tokens, each (default: 10)
token *stringToken name (e.g. neutral-content-color-hover), uuid or conceptId. The older field text, such as `property=corner-radius scaleIndex=500`, is also accepted.
validate-component-propsValidate props against a component schema.
ParameterTypeDescription
component *stringComponent name
props *objectProps to validate
validate_usageValidate design token usage in a dataset. Runs Layer-1 JSON-Schema structural validation and Layer-2 relational rules. Returns a JSON report of violations and warnings.
ParameterTypeDescription
pathstringPath to dataset to validate (defaults to DESIGN_DATA_PATH)
schema_pathstringPath to schemas directory containing token-types/ and token-file.json. Defaults to the @adobe/design-data-spec schemas. Set DESIGN_DATA_SCHEMAS env var or pass explicitly for custom schema sets.
strictbooleanTreat warnings as errors
writeWrite agent-generated design context to the dataset (e.g. product-context.json). Returns a confirmation message.
ParameterTypeDescription
outputstringOutput file path (defaults to product-context.json inside DESIGN_DATA_PATH)
rationalestringRationale or summary to embed in the written file

Security checks

From the adobe/spectrum-design-data monorepo, not this package alone.

  • ✓README presentThe repository's README runs to about 563 words.
  • ✓License declaredThe repository declares the Apache-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.

2 checks have not been run yet.

Releases

From the adobe/spectrum-design-data monorepo.

design-data-cli@0.54.0design-data CLI 0.54.0 · 18 Nov 2026Native CLI binary for `design-data` v0.54.0. Install via `cargo install design-data-cli` or download below.
@adobe/spectrum-tokens@15.8.0@adobe/spectrum-tokens@15.8.0 · 18 Nov 2026This release refines the size tokens per the Size semantic tokens RFC (SDS-16264, SDS-16083), delivered in #1503. It adds 149 shared size tokens, deprecates 231 component-specific tokens in favor of them, and gives the shared tokens mobile…
@adobe/spectrum-design-data@3.22.0@adobe/spectrum-design-data@3.22.0 · 18 Nov 2026Minor Changes 1931 `3d38baa` Thanks @GarthDB! - Add an in-field progress circle visual recipe. It draws one fixed arc frame, since the component has no determinate form. Renders size (s, m, l, xl) and the white and black static colors, all…
design-data-cli@0.53.0design-data CLI 0.53.0 · 18 Nov 2026Native CLI binary for `design-data` v0.53.0. Install via `cargo install design-data-cli` or download below.
@adobe/spectrum-design-data@3.21.0@adobe/spectrum-design-data@3.21.0 · 18 Nov 2026Minor Changes 1925 `684870c` Thanks @GarthDB! - Add the avatar visual recipe and review its anatomy against Figma. Anatomy is `container`, `image`, `initials` and `guest-icon`. `user-image` is removed: it was the same part as `image`.…

README

The repository's README runs to about 563 words, fetched 12 days ago. The original in the repository is authoritative.

Read full README
Questions

About S2 Docs

How do I install S2 Docs?

In Claude Code, run claude mcp add s2-docs -- npx -y @adobe/s2-docs-mcp. Other MCP clients take the command after "--" in their server configuration.

Is S2 Docs safe to use with an AI agent?

Its trust score is 75 out of 100 (good). It passes all 4 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is S2 Docs still maintained?

Yes — the latest release in the adobe/spectrum-design-data monorepo is design-data-cli@0.54.0 (18 Nov 2026), and the last commit was just now. The adobe/spectrum-design-data monorepo has 161 stars and 36 open issues.

What tools does S2 Docs provide?

Conduid read 44 tools from the source: add_mode, authoring_session_cancel, authoring_session_commit, authoring_session_get, authoring_session_list, authoring_session_step_classification, authoring_session_step_intent, authoring_session_step_values and 36 more. 40 of them publish their parameters, listed under Tools above.

What license is S2 Docs released under?

The repository declares the Apache-2.0 license. That applies to the latest release, design-data-cli@0.54.0, as well.