ui-mcp

v33.30.5
@godxjp/ui-mcp Checked 10 hours ago Published 18 days ago

Model Context Protocol server for @godxjp/ui — gives Claude Code / Codex CLI / Cursor / any MCP-aware agent live access to the component catalog, prop…

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

list_skills

List every design/taste skill bundled by this MCP (id + name + whenToUse + section ids). Use FIRST to discover skills; then `get_skill_section` to drill in.

list_primitives

List every @godxjp/ui primitive/composite/shell (group + tagline per entry). Optionally filter by group. Then `get_component` for one's full API. Core only by default — pass tier="lab" for the opt-in @godxjp/ui/lab components.

ParameterTypeDescription
groupstring
tierstringDefault "core". "lab" lists the opt-in `@godxjp/ui/lab` components (niche, kept and tested, not in the default context); "all" lists both.

list_utilities

List every NON-component public export of @godxjp/ui — hooks, helper functions and constants (cn, formatDate, formatCurrency, toast, useDebouncedValue, buttonVariants, CHART_COLORS, SHOW_PARENT …). Reach for this before hand-writing a className merger, a date/money formatter, a debounce hook or a chart palette: two products in this org each re-implemented `cn` because it could not be found. Optionally filter by kind. Then `get_component name="<name>"` for its signature, usage and example.

ParameterTypeDescription
kindstringhook = only legal inside a component body; function = callable anywhere; value = a constant to read.

list_patterns

List every canonical copy-paste code pattern (signup-form, settings-page, data-table-page, async-data-state, confirm-destructive, …); common aliases resolve too. Use before `get_pattern`.

list_anti_ai_tells

List every AI-tell pattern to AVOID (optionally by category). Use to self-audit a design before shipping; then `get_anti_ai_tell` for the fix.

ParameterTypeDescription
categorystring

list_redesign_checks

List the redesign audit checklist (50+ checks; optionally by category). Use when auditing an existing project; then `get_redesign_check` for a symptom's fix.

ParameterTypeDescription
categorystring

list_audit_rules

List the LOCAL static ui-audit rules (scripts/ui-audit.mjs) to run BEFORE any visual review — each cites the standard it enforces (WCAG/WAI-ARIA/Intl/ISO/IANA/CSS-Logical) + a fix + the run command. Optionally by category.

ParameterTypeDescription
categorystring

list_visual_checks

List the RUNTIME visual-audit checks (scripts/visual-audit.mjs — Playwright + axe-core) to run against the RUNNING app: contrast/ARIA (axe), target size, rendered-accent chroma, DOM emoji, banner layout. Needs a browser (vs list_audit_rules, static). Optionally by category.

ParameterTypeDescription
categorystring

get_anti_ai_tell

Fetch ONE anti-AI-tell — full body + concrete fix. Use after `list_anti_ai_tells`.

ParameterTypeDescription
name *stringExact tell name from list_anti_ai_tells.

get_redesign_check

Fetch redesign check(s) matching a symptom snippet. Returns full fix + UI note. Use after `list_redesign_checks`.

ParameterTypeDescription
symptom *stringFragment of the symptom text (e.g. 'Inter everywhere' / '100vh').

get_skill_section

Fetch ONE section of ONE skill — token-efficient. E.g. `skill='soft', section='double-bezel'`. Use after `list_skills` narrowed the relevant skill + section.

ParameterTypeDescription
section *stringSection id within that skill.
skill *stringSkill id (e.g. 'soft', 'minimalist', 'taste').

get_component

Full guide for one @godxjp/ui component — import path, props/types/defaults, HOW to use it (DO/DON'T), WHEN to reach for it (use cases), related components (don't reinvent/confuse), a copy-paste example, story path, and cardinal rules. Use this before hand-rolling anything. Design-token knobs are listed compactly (name+default); pass `verbose:true` for what each token controls.

ParameterTypeDescription
name *stringComponent name (e.g. 'Button', 'DataTable').
verbosebooleanInclude the full design-token table with a 'what it controls' description per token. Default false (compact token+default only) to save context.

get_pattern

Full code snippet for one canonical pattern — copy-paste-ready.

ParameterTypeDescription
name *stringPattern slug (use list_patterns first).

get_rule

Read one cardinal rule from CLAUDE.md (by number) OR all if no number.

ParameterTypeDescription
numbernumberRule number (1-N).

get_vocab

Read shared prop-vocabulary type (`SizeProp`, `StatusProp`, `ColorProp`, `LoadingProp`, etc.) OR all if no name.

ParameterTypeDescription
namestringVocab type name.

get_tokens

Read design tokens, optionally filtered by tier category (primitive / semantic / component).

ParameterTypeDescription
categorystring

list_consumer_skills

List the design skills relevant to an app-dev BUILDING WITH @godxjp/ui (audience consumer/both). Hides core library-maintenance skills. START HERE if you import @godxjp/ui and want guidance (design-to-page, compose-a-screen, taste, …). Returns id + name + whenToUse + section ids.

get_consumer_skill

Fetch ONE section of ONE consumer-facing skill. Same as get_skill_section but refuses core-only skills (steers app-devs away from library-maintenance material). Use after list_consumer_skills / route_consumer_task.

ParameterTypeDescription
skill *stringConsumer skill id (e.g. 'design-to-page', 'compose-a-screen').
sectionstringSection id within that skill.

route_consumer_task

Natural-language task → consumer skill+section pointer. Like route_task but only points to consumer-facing skills (never core library-maintenance). Use FIRST when you're building an app with @godxjp/ui.

ParameterTypeDescription
task *stringDescribe what you want to build.

draft_bug_report

When @godxjp/ui ITSELF is at fault (missing token, a primitive lacking the controlled-vocabulary prop, a real a11y/behaviour bug, a wrong catalog example) and you cannot follow a rule — DON'T fake a workaround. This drafts a detailed GitHub issue body + a copy-paste `gh issue create` command so you can report it. Prints the command only; never runs gh.

ParameterTypeDescription
summary *stringOne-line title of the bug / blocked rule.
actualstringWhat actually happens.
componentstringAffected component name, if any (links to get_component).
envstringEnvironment (browser/OS/framework), if relevant.
expectedstringWhat SHOULD happen (per the rule/spec).
reprostringMinimal steps or code to reproduce.
rulenumberCardinal rule number that can't be followed, if any.
versionstringInstalled @godxjp/ui version (e.g. '12.1.0').

check_compatibility

Report whether the @godxjp/ui version installed in the target project matches THIS catalog (which describes one release train). A mismatched minor means the props/tokens/patterns may describe a build they never installed (#140). Pass the installed version (`npm ls @godxjp/ui`); call it at the START of a consumer session.

ParameterTypeDescription
versionstringInstalled @godxjp/ui version in the target project, e.g. '16.10.0'. Omit to just read the catalog's own version + compatible range.

route_task

Natural-language task → skill+section pointer (e.g. 'design a premium agency hero' → soft/vibe-archetypes). Use FIRST when you don't know which skill applies.

ParameterTypeDescription
task *stringDescribe what you want to build.

suggest_primitive

Use case → primitive recommendation. E.g. 'confirm a destructive delete' → DangerZone pattern + Dialog suggestion.

ParameterTypeDescription
use_case *string

search_components

Fuzzy-search primitives by name / tagline / prop. Returns ranked matches. Core only by default; pass tier="lab" or "all" to include the opt-in @godxjp/ui/lab components.

ParameterTypeDescription
query *string
tierstringDefault "core". "lab" lists the opt-in `@godxjp/ui/lab` components (niche, kept and tested, not in the default context); "all" lists both.

get_frame_coverage

Verified preview-contract coverage for a component (issue #163). Answers 'is this state actually PROVEN?' — returns, per contract dimension (variants, tones, sizes, shapes, density, controlled/uncontrolled ownership, disabled/read-only/loading/empty/error/success, async retry/cancel/offline, responsive viewport matrix, RTL, long/localized content, keyboard/focus, accessible name/description/error, reduced motion / coarse touch), whether an EXECUTED case proves it (covered), whether nothing proves it (UNTESTED), or whether it cannot exist (not-applicable, with a reason). UNTESTED IS NOT A PAS…

ParameterTypeDescription
namestringPublic export name (e.g. 'Button', 'DataTable', 'CardFooter'). Omit for the repo-wide coverage summary.

get_design

DESIGN.md — the visual spec for screens built with @godxjp/ui: real tokens (YAML front matter), colour scarcity rules, typography, layout & density, elevation, components, ADMIN SCREEN ANATOMY (list / detail / form / settings / dashboard / approval queue), do's and don'ts, responsive, iteration guide, known gaps. Read before composing a screen. Pass `section` for one section; omit it for the whole document (~12 KB).

ParameterTypeDescription
sectionstringSection id or heading word, e.g. 'tokens', 'colors', 'admin-screen-anatomy', 'dos-and-donts', 'iteration-guide'. Unknown ids list the valid ones.

get_exemplar

A reference screen to match for an admin archetype: its anatomy notes from DESIGN.md, the full source of the showcase built from real @godxjp/ui primitives, and its live preview URL for screenshot comparison. Archetypes: list, detail, editor, reader, settings, dashboard, approval-queue. Omit `archetype` to list them.

ParameterTypeDescription
archetypestringlist | detail | editor | reader | settings | dashboard | approval-queue (aliases: index, table, crud, collection, 一覧, record, show, master-detail, 詳細, form, edit, create, document-editor, reco…

lint_jsx

Heuristic check of a JSX snippet for common violations — raw `<button>` / `<input>`, `color='error'` on Tag/Badge, missing aria-label, missing source.code override on stories with cell renderers (rule 34), etc.

ParameterTypeDescription
jsx *string