mcp

v0.1.11
@shoplflow/mcp Checked 6 hours ago Published 4 days ago

Model Context Protocol server exposing the shoplflow design system (tokens, components, icons) to AI coding agents.

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

list_tokens List design tokens

List shoplflow design tokens. Use this to discover exact token names/values before writing UI code. Types: color, borderRadius, fontWeights, spacing, boxShadow, typography. Domains: shared (palette/spacing/radius/weights/shadows, brand-agnostic), shopl & hada (typography + primary/semantic colors). Typography tokens (e.g. body1_700) are applied via the `typography` prop or as a CSS class, not a CSS variable.

ParameterTypeDescription
domainstringFilter by brand domain.
querystringCase-insensitive substring match against token name or value.
typestringFilter by token type, one of: color, borderRadius, fontWeights, spacing, boxShadow, typography.

get_token Get a design token

Get the full record for a token by exact name (e.g. "primary300", "body1_700", "spacing08"). A token name can exist in more than one domain; pass `domain` to disambiguate.

ParameterTypeDescription
name *stringExact token name.
domainstringDisambiguate when the name spans domains.

search_icon Search icons

Find shoplflow icons by name or meaning before importing one. Returns both the raw name (e.g. IcAdd) and the public alias (e.g. AddIcon) — both are importable from the brand asset package and usable as `<Icon iconSource={AddIcon} />`. Icon sets differ per brand, so pass `domain` when targeting one.

ParameterTypeDescription
query *stringName or keywords, e.g. "add", "chat bot", "calendar".
domainstringRestrict to one brand icon set.
limitintegerMax results (default 15).

search_component Search components

Discover @shoplflow/base components by name, module, prop, or variant value. Returns summaries; follow up with get_component_api for the full prop list. Compound components are listed per part (e.g. ModalContainer, ModalHeader).

ParameterTypeDescription
query *stringe.g. "button", "modal", "date", "styleVar", "loading".
groupstringRestrict to one module (the component folder, e.g. "Modal").
limitintegerMax results (default 20).

get_component_api Get a component API

Full API for a @shoplflow/base component by exact name (case-insensitive), e.g. "Button", "ModalContainer". Returns props (with JSDoc + optionality), exact variant values, polymorphism (`as` + default element), and whether it forwards native HTML attributes.

ParameterTypeDescription
name *stringExact component name, e.g. "Button" or "Tab".

get_usage_example Get component usage examples

Real, copy-pasteable usage examples for a @shoplflow/base component, extracted from its stories (args + JSX, with test/play code stripped). Accepts a module name (e.g. "Button", "Modal") or a component name from get_component_api (e.g. "ModalContainer" resolves to the Modal stories).

ParameterTypeDescription
name *stringComponent or module name, e.g. "Button", "Tag", "Modal".

get_setup_guide Get shoplflow setup guide

The prerequisite setup before using any @shoplflow/base component: required global-style import, the mandatory ShoplflowProvider wrapper (with its domain prop), peer dependencies, and a ready-to-paste snippet. Call this before scaffolding a project. For framework-specific constraints (Next.js, Vite, …) call check_environment.

check_environment Check framework support

Whether and how shoplflow works in a given framework (e.g. "Next.js App Router", "Vite", "Next Pages"). Returns support status, constraints, and any workaround. shoplflow components are client-only, so SSR/RSC frameworks have caveats. Omit `framework` to list every environment.

ParameterTypeDescription
frameworkstringTarget framework, e.g. "next app router", "vite", "next pages".