StyleKit

v0.6.0
io.github.AnxForever/stylekit-mcp Checked 1 day ago Published 20 days ago

MCP server for StyleKit styles, tokens, recipes, lint and repair over stdio or HTTP.

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

stylekit_search_styles Search StyleKit styles

Search StyleKit design styles by keyword and/or category, with pagination. Exact slug or name matches are ranked first. Args: - query (string, optional): matches slug, name, description, tags, keywords (case-insensitive). - category ('modern'|'retro'|'minimal'|'expressive', optional): restrict to one category. - limit (number 1-50, default 15): page size. - offset (number >=0, default 0): results to skip (for paging). Returns structured JSON with total, count, offset, has_more, source, optional fallbackReason, and results. A valid query with no matches returns an empty results array,…

ParameterTypeDescription
categorystringStyle category filter
limitintegerPage size
offsetintegerResults to skip for pagination
querystringKeyword to match

stylekit_list_assets List public StyleKit assets

Browse StyleKit's public asset catalogue by namespace and query. Use the returned kind/id pair with stylekit_get_asset. Args: - kind (optional): one public namespace such as animation, component-pattern, template, or experience-pack. - query (optional): search public names, descriptions and tags. - offset (number >=0, default 0): results to skip. - limit (number 1-100, default 20): page size. Returns the full JSON page, including availability, contentLevel, license, attribution, source provenance, and kind counts. An empty page is a successful result. Private user kits and unpublishe…

ParameterTypeDescription
kindstringPublic asset namespace
limitintegerPage size
offsetintegerResults to skip
querystringSearch names, descriptions and tags

stylekit_get_asset Get a public StyleKit asset

Retrieve one public asset by its exact kind and id. Source is returned only where the asset's contentLevel and license permit it. Remote templates include their actual file set only when the live source is available; if it is down, the tool returns a structured unavailable error with safe metadata and does not treat a download URL as source code. External and restricted assets expose metadata, license, attribution and source links only. Args: - kind: the namespace returned by stylekit_list_assets. - id: the exact identifier within that namespace. Returns complete structured JSON and JSON…

ParameterTypeDescription
id *stringExact asset id within the namespace
kind *stringPublic asset namespace

stylekit_get_style Get StyleKit style detail

Get one style's profile and, optionally, its design tokens, one component recipe, and the full implementation brief. Everything ships through this single tool so the server stays small: pass include: ["tokens"], ["recipe"], ["brief"] or a combination. Style data is read from the live catalogue with a five-minute cache; when live data is unavailable, a bundled snapshot may be returned and marked with origin and fallbackReason. Args: - slug (string): style identifier, e.g. "glassmorphism", "neo-brutalist". - include (array, optional): sections to attach — "tokens", "recipe", "brief". -…

ParameterTypeDescription
slug *stringStyle slug, e.g. 'glassmorphism'
componentstringRecipe id when include contains 'recipe'; defaults to the first recipe
includearraySections to attach: "tokens", "recipe", "brief"

stylekit_lint_code Lint code against a StyleKit style

Check whether code actually follows a style's rules. Use this AFTER generating or editing UI code to verify it matches the style, instead of assuming it does. Reports forbidden classes with the reason they are banned and a concrete replacement. Understands JSX/HTML class attributes, cn()/clsx() calls, and template literals; variant prefixes (dark:, md:, hover:) are resolved before matching. Args: - slug (string): style identifier, e.g. "glassmorphism". - code (string): the source to check. JSX/TSX, HTML, or a bare class string. - checkRequired (array of 'button'|'card'|'input', optiona…

ParameterTypeDescription
code *stringSource code or class string to lint
slug *stringStyle slug, e.g. 'glassmorphism'
checkRequiredarrayComponents to also check for missing required classes
strictbooleanFail missing required classes in a static snippet