# onsystem [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/dgesteves/onsystem  
**GitHub Stars:** 20  
**npm Downloads (last month):** 1424  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/onsystem

## Description
Keeps coding agents on your design system: knows your real components, props, variants and tokens.

## Tools
Capabilities this server exposes over MCP:

- **list_components** — 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 <svg>) 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_component** — 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_components** — 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_tokens** — 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_ui** — 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.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "onsystem": {
    "command": "npx",
    "args": ["-y","onsystem"]
  }
}
```

## Documentation

## What onsystem does

onsystem connects an MCP-compatible coding agent to a React design-system package and exposes the information needed to write UI against that system. It is intended for teams whose components, variants, parts, and styling tokens live in source code. A shadcn/ui application can be used as a zero-configuration example, while a design-system package can be configured once for use across applications in a monorepo.

The server covers both discovery and validation. Agents can look up a component before using it, search for a component based on a UI requirement, inspect token values, and check written TSX or JSX for violations. Findings include a rule identifier, source location, explanation, and suggested correction.

## How it works

onsystem analyzes components, `cva` and `tv` variants, component parts, and tokens through the TypeScript compiler. Token sources can include stylesheets, DTCG 2025.10 files, or a `DESIGN.md` file. The resulting checks run locally and do not require an API key for component search; `search_components` ranks matches with BM25.

At a monorepo root, pass the relevant project path when looking up or checking code. `list_components` and `get_component` use that path to identify the project associated with the file being edited. For unsaved code, `check_ui` accepts the code directly and uses a path or filename to identify its project context.

The package can be launched with `npx`, including a root workspace argument such as `--root <workspace>`. It also has a GitHub Action for checking lines changed in a pull request, and it can run alongside `@shadcn/lint`.

## Tools and capabilities

- `list_components` lists components, native rendered elements, variants, parts, and imports. Query, kind, limit, and project path options narrow the result; icons are grouped in the listing.
- `get_component` returns a component’s import, typed props and defaults, variants and generated classes, parts, tokens, usage guidance, and documented examples. Names such as `Button`, `CardHeader`, and `Card.Header` are accepted.
- `search_components` searches names, descriptions, documentation, props, and variant values for a requested UI behavior. Weak matches are marked when no strong fit is found.
- `get_tokens` provides resolved token values, dark-mode values, and Tailwind or CSS-variable usage. It supports category and substring filters and separates chart and sidebar colors from status colors.
- `check_ui` checks TSX and JSX for unknown components, props, and variants; native elements with design-system equivalents; hardcoded colors, spacing, and radius; and icon-only buttons without accessible names.

The default diagnostics include errors for unknown APIs, native replacements, hardcoded colors, and missing icon-button names. Arbitrary spacing and radius are warnings by default. Color checks cover hex, RGB, HSL, OKLCH, and Tailwind palette values.

## Setup and configuration

Install onsystem as an MCP server in a supported client using the package’s `npx` command and set the workspace root. Configure the root at the design-system or monorepo level so the server can inspect the relevant source. For monorepos, provide a project path when the edited file belongs to a specific application or package.

The repository also provides installation entries for Cursor, VS Code, and a Claude Code plugin. Additional client guidance covers Codex CLI, Gemini CLI, Claude Desktop, Windsurf, JetBrains IDEs, and Zed. A GitHub Action is available when validation should run during pull requests rather than only during agent edits.

## Limitations and notes

The server is designed around React design-system packages and analyzes `.tsx` and `.jsx`. Its checks reflect the components and tokens it can read from the configured project, so the workspace root and monorepo path affect the results. Chart and sidebar tokens are intentionally presented under separate categories and should not be substituted for status colors. The project is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/onsystem/readme_

