mcp
v0.1.11Model 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.
| Parameter | Type | Description |
|---|---|---|
domain | string | Filter by brand domain. |
query | string | Case-insensitive substring match against token name or value. |
type | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact token name. |
domain | string | Disambiguate 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Name or keywords, e.g. "add", "chat bot", "calendar". |
domain | string | Restrict to one brand icon set. |
limit | integer | Max 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).
| Parameter | Type | Description |
|---|---|---|
query * | string | e.g. "button", "modal", "date", "styleVar", "loading". |
group | string | Restrict to one module (the component folder, e.g. "Modal"). |
limit | integer | Max 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact 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).
| Parameter | Type | Description |
|---|---|---|
name * | string | Component 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.
| Parameter | Type | Description |
|---|---|---|
framework | string | Target framework, e.g. "next app router", "vite", "next pages". |