Skip to main content
Glama
design-system-mcp
by dgesteves

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server describes the project's design system: its React components (props, variants, parts), design tokens and usage docs, and lints UI code against it. When writing or changing UI in this project:

  1. Find components with search_components (by intent) or list_components.

  2. Read get_component before using a component: use only the props and variant values it lists.

  3. Style with tokens from get_tokens, never with hex/rgb colors, arbitrary px values or Tailwind's default palette. chart-* and sidebar-* tokens are for charts and the sidebar only: for a status color the theme has no token for (success, warning, info), add a token or keep the Tailwind color as check_ui says, and never use a chart-* or sidebar-* token for it.

  4. Run check_ui on every snippet or file you write and fix all errors before you finish. In a monorepo served from its root, pass path (the file you are editing) to list_components, get_component, search_components and get_tokens, and path or filename to check_ui, so each answer comes from that file's own project.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_componentsA

List every component in the project design system with a one-line description, the native element it renders, its variant values, its parts and its import. Icons (components that render an ) are named on one line per import, or per folder for icons with a module each, five or more to a line. Call this before writing UI in this project. query, kind and limit narrow a long list. At a monorepo root, pass path for the project of the file you are editing; without it, every project is listed, each component with its package.

get_componentA

Get the full contract of one component: import, props with types and defaults, cva variants and the classes each applies, parts (sub-components), design tokens it uses, usage guidelines and examples from its docs. Call it before using a component. Accepts "Button", "CardHeader" or "Card.Header". At a monorepo root, pass path (the file you are editing) to get the component its project uses.

search_componentsA

Find components by what you want to build, e.g. "confirm a destructive action", "status label", "text field with validation". Ranks names, descriptions, docs, props and variant values with BM25 (local, no API key). When no component clearly matches, it says so and lists the nearest, marked weak. Use it when you do not know which component fits.

get_tokensA

List design tokens with resolved values, dark-mode values and how to use each (Tailwind class or CSS variable). Filter by category (color, spacing, radius, typography, shadow, other) or a substring. Use these instead of hex codes, px values or Tailwind default palette classes. Chart and sidebar colors are listed under their own headings: they are for charts and the sidebar, not for status colors.

check_uiA

Lint TSX/JSX against the design system. Reports hardcoded colors, spacing and radius (with the nearest token), native elements that have a design-system component, unknown components, props and variant values, and icon-only buttons without an accessible name. Each diagnostic has line/column, a rule id, a message and a suggested fix. Run it on every snippet or file you write and fix all errors. Pass path for a file in the project, or code for unsaved code, with path (or filename) naming the file it is for or its project folder.

Prompts

Interactive templates invoked by user choice

NameDescription
build-with-design-systemBuild a piece of UI using only design-system components and tokens, then verify it with check_ui.

Resources

Contextual data attached and managed by the client

NameDescription
tokensEvery design token with resolved values, modes and usages, as JSON.
Button"Triggers an action."
Checkbox"A checkbox with its label."
Dialog"A dialog's content, inside a `<Modal>` and a `<DialogTrigger>`."
DialogTitle"The dialog's title, which also names it for assistive technology."
LabelProps, variants, parts, tokens, guidelines and examples for one component.
DescriptionProps, variants, parts, tokens, guidelines and examples for one component.
FieldErrorProps, variants, parts, tokens, guidelines and examples for one component.
InputProps, variants, parts, tokens, guidelines and examples for one component.
Modal"The overlay a `<Dialog>` opens in."
Switch"An on/off setting that applies at once."
TextField"A labelled text input."
Badge"A small status label: counts, states (\"Active\", \"Overdue\") or categories."
Button"Triggers an action or event, such as submitting a form, opening a dialog or deleting a record."
Card"A bordered surface that groups related content and actions."
CardHeader"Top section of a card."
CardFooter"Bottom section of the card, usually for actions."
CardTitle"The card heading."
CardAction"An action pinned to the top-right corner of the header, e.g. a menu button."
CardDescription"Secondary text under the title."
CardContent"The main body of the card."
Dialog"A modal window that interrupts the user to confirm a decision or collect input."
DialogClose"Closes the dialog."
DialogContent"The dialog panel."
DialogDescription"Explains what will happen."
DialogFooter"Action row at the bottom of the dialog."
DialogHeader"Holds `DialogTitle` and `DialogDescription`."
DialogOverlayProps, variants, parts, tokens, guidelines and examples for one component.
DialogPortalProps, variants, parts, tokens, guidelines and examples for one component.
DialogTitle"Required: the accessible name of the dialog."
DialogTrigger"The element that opens the dialog."
Input"A single-line text field."
Badge"A short status or count next to a label."
Button"Triggers an action, such as saving a form or opening a dialog."
Card"A surface that groups related content, built from flat parts."
CardHeaderProps, variants, parts, tokens, guidelines and examples for one component.
CardFooterProps, variants, parts, tokens, guidelines and examples for one component.
CardTitleProps, variants, parts, tokens, guidelines and examples for one component.
CardDescriptionProps, variants, parts, tokens, guidelines and examples for one component.
CardContentProps, variants, parts, tokens, guidelines and examples for one component.
Input"A single-line text field."

TDQS

A4.2/5.0

Scored across 5 tools

Disambiguation4/5

Each tool has a clearly stated role: enumerate components, fetch one component's contract, intent-based search, list tokens, and lint code. The only blur is between list_components' `query` filter and search_components, which both narrow a component list; descriptions mitigate this by framing search as BM25 ranking by build intent, but an agent could still reach for the wrong one.

Naming Consistency5/5

All five tools follow a strict verb_noun snake_case pattern (list_components, get_component, search_components, get_tokens, check_ui). The get_* pair is parallel and the remaining verbs clearly differ in intent.

Tool Count5/5

Five tools maps cleanly onto the domain's jobs: discover (list/search), inspect (get_component), style (get_tokens), and verify (check_ui). No tool looks redundant or padded, and nothing obvious is missing at this size.

Completeness4/5

The surface covers the full agent workflow of finding, reading, styling and validating components, including monorepo path handling. Minor gaps remain: there is no dedicated way to retrieve docs/guidelines or examples alone, and no reverse lookup from an arbitrary class or hex value back to a token outside the lint diagnostics.

Maintenance

ActivityActive
ResponsivenessNo recent community issues