ui-mcp
v33.30.5Model 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.
| Parameter | Type | Description |
|---|---|---|
group | string | |
tier | string | Default "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.
| Parameter | Type | Description |
|---|---|---|
kind | string | hook = 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.
| Parameter | Type | Description |
|---|---|---|
category | string |
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.
| Parameter | Type | Description |
|---|---|---|
category | string |
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.
| Parameter | Type | Description |
|---|---|---|
category | string |
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.
| Parameter | Type | Description |
|---|---|---|
category | string |
get_anti_ai_tell
Fetch ONE anti-AI-tell — full body + concrete fix. Use after `list_anti_ai_tells`.
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact 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`.
| Parameter | Type | Description |
|---|---|---|
symptom * | string | Fragment 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.
| Parameter | Type | Description |
|---|---|---|
section * | string | Section id within that skill. |
skill * | string | Skill 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name (e.g. 'Button', 'DataTable'). |
verbose | boolean | Include 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Pattern slug (use list_patterns first). |
get_rule
Read one cardinal rule from CLAUDE.md (by number) OR all if no number.
| Parameter | Type | Description |
|---|---|---|
number | number | Rule number (1-N). |
get_vocab
Read shared prop-vocabulary type (`SizeProp`, `StatusProp`, `ColorProp`, `LoadingProp`, etc.) OR all if no name.
| Parameter | Type | Description |
|---|---|---|
name | string | Vocab type name. |
get_tokens
Read design tokens, optionally filtered by tier category (primitive / semantic / component).
| Parameter | Type | Description |
|---|---|---|
category | string |
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.
| Parameter | Type | Description |
|---|---|---|
skill * | string | Consumer skill id (e.g. 'design-to-page', 'compose-a-screen'). |
section | string | Section 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.
| Parameter | Type | Description |
|---|---|---|
task * | string | Describe 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.
| Parameter | Type | Description |
|---|---|---|
summary * | string | One-line title of the bug / blocked rule. |
actual | string | What actually happens. |
component | string | Affected component name, if any (links to get_component). |
env | string | Environment (browser/OS/framework), if relevant. |
expected | string | What SHOULD happen (per the rule/spec). |
repro | string | Minimal steps or code to reproduce. |
rule | number | Cardinal rule number that can't be followed, if any. |
version | string | Installed @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.
| Parameter | Type | Description |
|---|---|---|
version | string | Installed @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.
| Parameter | Type | Description |
|---|---|---|
task * | string | Describe what you want to build. |
suggest_primitive
Use case → primitive recommendation. E.g. 'confirm a destructive delete' → DangerZone pattern + Dialog suggestion.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
tier | string | Default "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…
| Parameter | Type | Description |
|---|---|---|
name | string | Public 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).
| Parameter | Type | Description |
|---|---|---|
section | string | Section 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.
| Parameter | Type | Description |
|---|---|---|
archetype | string | list | 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.
| Parameter | Type | Description |
|---|---|---|
jsx * | string |