mcp

v12.8.0
@nexub/mcp Checked 1 hour ago Published 2 days ago

MCP server for Nexub Design System: gives Claude, Cursor and any MCP client the components, patterns, tokens and design rules of the installed release.

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

get_guidelines Nexub DS guidelines

Setup steps, how to build a screen, Calm Depth principles, Liquid Glass rules, UI copy rules and the review checklist. Call this first before building any UI with Nexub DS.

list_components List Nexub components and patterns

Lists components (@nexub/react) and patterns (@nexub/patterns) with one-line descriptions. Optional query filters by name, category or description.

ParameterTypeDescription
querystringe.g. "table", "pricing", "Overlays"

get_component Get a Nexub component reference

Props, import, examples, when to use and accessibility notes for one component or pattern. Accepts a slug ("date-picker") or name ("DatePicker").

ParameterTypeDescription
name *stringComponent slug or name

get_tokens Get Nexub design tokens

Color roles, chart colors, typography roles, spacing, sizes, shape, elevation, motion, z-index and breakpoints, with Tailwind utilities and CSS variables. Optional section narrows the output.

ParameterTypeDescription
sectionstringe.g. "Color roles", "Spacing", "Motion", "Typography roles"

get_react_native Nexub for React Native

Mobile apps (Expo / React Native): install, NexubNativeProvider, every @nexub/react-native component and @nexub/react-native/patterns screen, and the mobile rules. Call this instead of the web references when building a mobile app.

get_genui_schema Nexub generative UI schema

The JSON Schema (2020-12) for UI answers that Nexub renders with <GenUI> from @nexub/genui, plus the rules. Call this before returning UI instead of text. Optional components narrows the schema to the ones the host renders.

ParameterTypeDescription
componentsarrayCatalog names to keep, e.g. ["Card", "Table"]. Catalog: Card, DescriptionList, Table, Badge, Alert, StreamingText, Button

get_genui_component Get a Nexub generative UI component

One component of the generative UI catalog: its props, their types and defaults, and an example node.

ParameterTypeDescription
name *stringCatalog name: Card, DescriptionList, Table, Badge, Alert, StreamingText, Button

validate_genui Validate a Nexub generative UI document

Checks a generative UI document (JSON text) the way <GenUI> will before rendering it, and lists each issue with its JSON Pointer path. Pass the host's action names to check buttons too.

ParameterTypeDescription
document *stringThe document, as JSON text
actionsarrayAction names the host accepts