AI 기반 개발 과정에서 잘못된 색상, 컴포넌트, props, variant를 감지하여 React 코드의 디자인 시스템 준수 여부를 강제합니다.
다른 이름 dgesteves/onsystem
- 스타
- 20
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 0.12.1
- 마지막 커밋
- 2026년 11월 10일
- 라이선스
- MIT
onsystem MCP란?
onsystem은(는) MCP server입니다. AI 기반 개발 과정에서 잘못된 색상, 컴포넌트, props, variant를 감지하여 React 코드의 디자인 시스템 준수 여부를 강제합니다.
프로젝트 README에서 생성된 요약
onsystem MCP server 정보
onsystem은 플랫폼 및 디자인 팀이 React 코드가 특정 디자인 시스템 제약 사항을 준수하도록 지원합니다. 개발 및 pull request 과정에서 오류를 잡아냄으로써, 코딩 에이전트가 잘못된 팔레트 색상, 존재하지 않는 컴포넌트 또는 유효하지 않은 props를 사용하는 것을 방지합니다. 이 도구는 모노레포 내에서 로컬로 작동하거나 GitHub Action을 통해 변경 사항을 기존 디자인 토큰 및 컴포넌트 API와 대조하여 검증합니다.
개발자는 이 MCP server를 Cursor, VS Code, Windsurf, Claude Desktop을 포함한 다양한 환경에 통합할 수 있습니다. TypeScript 컴파일러를 사용하여 소스 코드에서 컴포넌트, variant, 토큰을 직접 읽어옵니다. npx onsystem check 명령을 실행하거나 Claude Code 플러그인을 사용하면 하드코딩된 간격, 알 수 없는 variant, 또는 디자인 시스템 컴포넌트 대신 네이티브 요소를 사용한 경우와 같은 문제를 식별합니다. 식별된 모든 문제에는 특정 rule id, 위치 및 에이전트가 준수 사항을 따를 수 있도록 안내하는 수정 제안이 포함됩니다.
활용 사례
- 1AI 생성 UI 컴포넌트 검증AI 에이전트가 방금 작성한 React 컴포넌트가 특정 디자인 시스템 규칙을 따르는지 확인할 수 있습니다.
- 2CI에서 디자인 준수 자동화GitHub Action을 사용하여 코드가 병합되기 전에 pull request에서 디자인 시스템 위반 사항을 스캔합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
onsystem MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 onsystem MCP 설치
$ claude mcp add onsystem -- npx -y onsystemCursor에 onsystem MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"onsystem": {
"command": "npx",
"args": [
"-y",
"onsystem"
]
}
}
}VS Code에 onsystem MCP 설치
.vscode/mcp.json
{
"servers": {
"onsystem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"onsystem"
]
}
}
}VS Code CLI에 onsystem MCP 설치
$ code --add-mcp '{"name":"onsystem","type":"stdio","command":"npx","args":["-y","onsystem"]}'Claude Desktop에 onsystem MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"onsystem": {
"command": "npx",
"args": [
"-y",
"onsystem"
]
}
}
}Codex에 onsystem MCP 설치
$ codex mcp add onsystem -- npx -y onsystemCodex config.toml에 onsystem MCP 설치
~/.codex/config.toml
[mcp_servers.onsystem] command = "npx" args = ["-y", "onsystem"]
Gemini CLI에 onsystem MCP 설치
$ gemini mcp add -s user onsystem npx -- -y onsystemGemini settings.json에 onsystem MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"onsystem": {
"command": "npx",
"args": [
"-y",
"onsystem"
]
}
}
}자동 검사
2026년 11월 13일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음통과
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음통과
README
GitHub에서 보기onsystem
Keeps coding agents on your design system: catches palette colors, native elements and APIs your system lacks, at every edit and pull request, with the fix. Set it up once in your design-system package; every app in your monorepo gets it. Runs locally and works alongside @shadcn/lint.
Built for design-system and platform teams with a React design-system package; a shadcn/ui app is the zero-config demo. Formerly @dgesteves/design-system-mcp (what changed).
Using the GitHub Action? uses: dgesteves/onsystem@v0 checks the lines a pull request changed: see CI and baselines.
Website and docs: onsystem.vercel.app, with a playground that checks your own code.
Feedback wanted: say where it breaks in the launch feedback thread, see what's next in the roadmap, or pick up a good first issue. If onsystem is useful to you, a star helps other people find it.
https://github.com/user-attachments/assets/900cc1fa-387c-4e76-a524-a818521dd1a0
On the website, an agent drafts a settings card, check_ui finds 11 problems with a fix each, and the agent applies them. Then a real Claude Code session with the plugin: Claude looks the components up before writing, and check_ui passes. Last, the benchmark.
The problem
Coding agents write UI from their training data, not from your design system. Ask for a settings card and you get bg-[#ef4444], p-[13px], a native <button>, variant="danger" on a Button that only has destructive, and <Card.Header> where the system exports CardHeader. On the demo draft above, tsc reports 3 of the 11 problems, and review catches the rest when someone has the time. Describing the design system to the agent helps; what holds is checking what it actually wrote, at the edit and at the pull request.
What it checks
onsystem reads your components, cva and tv variants, parts and tokens from source with the TypeScript compiler, and checks .tsx and .jsx against them. Every finding has a rule id, a location and the fix. Tokens come from your stylesheets, DTCG 2025.10 files or a DESIGN.md, and onsystem export writes them out as either.
| Rule | Default | Catches |
|---|---|---|
no-unknown-component |
error | Components and parts that don't exist (<Card.Header>, typos) |
no-unknown-prop |
error | Props a component doesn't take (tone, isDisabled) |
no-unknown-variant |
error | Values outside a variant (variant="danger") |
prefer-design-system-component |
error | Native elements the design system has a component for (<button> → <Button>) |
no-hardcoded-color |
error | Hex, rgb, hsl, oklch and Tailwind palette colors (bg-gray-100 → bg-muted) |
icon-button-accessible-name |
error | Icon-only buttons without an accessible name |
no-hardcoded-spacing |
warn | Arbitrary padding, margin and gap (p-[13px] → p-3) |
no-hardcoded-radius |
warn | Arbitrary radius (rounded-[7px] → rounded-sm) |
How often it is wrong. The corpus job runs check on 12 public repositories pinned by commit (Documenso, Dub, Cal.com, midday, Flowise and others: 24 runs, 14,539 distinct findings), without their dependencies installed (the two MUI apps get MUI). A seeded random sample of 80 of those findings, stratified by rule, was labelled from the code alone: blind labels by an AI reviewer (Claude Opus 5.5), not by a person. 57 are right, 14 debatable and 9 false positives: 11.2% (95% Wilson interval 6.0-20.0%), about the same when weighted by each rule's share of all findings (11.0%). Most come from no-hardcoded-color (7 of 65 sampled). Counting values a project's own design system already uses as debatable, 6 of 80 are false positives (7.5%, 3.5-15.4%). The sample has each label with its reason, the labeller's notes and the script behind these numbers. Shipped code rarely invents components, props or variants, and without dependencies no-unknown-prop skips components whose props do not resolve: those three rules have 56 findings in the corpus, 55 of them in Flowise, an MUI app, and 3 in the sample, all right but too few for a rate of their own. The corpus's older labels, made by an AI reviewer who could see the finding and so not blind, fail the job when one of their true positives stops being reported or a fixed false positive comes back. Code installed from a shadcn registry, such as the chatbot's components/ai-elements, has no labels yet (Code from shadcn registries). The rules reference shows each rule on an example and how to suppress a finding.
Quickstart
Run it from the app's folder or from the monorepo root, with Node.js 20.19 or later:
npx -y onsystem inspect # what it found; --explain says why
npx -y onsystem check . # the same check the agent and CI run
npx -y onsystem init # write the config, and offer a baseline
At a monorepo root, inspect lists every app and design-system package, and check checks each file by its own project's design system. In a design-system package, init sets it up for every app that depends on it, with no config in the apps: as a workspace package, or installed from npm. Installed apps read the components from the sources the package publishes, or from its type declarations (.d.ts) when it publishes only compiled dist/, and get every rule either way (init checks its files list). From a package that publishes compiled code and no type declarations, they get the token rules but no component, prop, variant or native-element checks.
In a new create-next-app, the template page's hardcoded colors already make the first check . fail; init offers to record them as a baseline, so only new findings fail. Folders installed from a shadcn registry, such as components/ai-elements, are someone else's code: Code from shadcn registries says how to check them or leave them out.
Claude Code. The plugin brings the hook, the MCP server and a skill:
/plugin marketplace add dgesteves/onsystem
/plugin install onsystem@dgesteves
After each Write or Edit of a .tsx or .jsx file, the hook runs onsystem check on it. Errors go back to Claude as a blocking error with the fix, so Claude corrects the file before it moves on; warnings go as a note. It stays quiet in projects without a design system. Codex installs the same plugin, and the hook checks the files its apply_patch changes. What it runs and touches.
Cursor or VS Code.
, or commit the config. The agent gets the tools and runs
check_ui on what it writes.
Other agents. npx skills add dgesteves/onsystem adds the skill to any agent with Agent Skills, and there are plugins for Codex, GitHub Copilot CLI, VS Code and Cursor.
Any MCP client. Run npx -y onsystem as a stdio server. There are configs for Claude Desktop, Codex CLI, GitHub Copilot CLI, Windsurf, JetBrains IDEs, Zed, Gemini CLI, Antigravity and Grok Build.
CI. Install it as a dev dependency, accept the findings the codebase already has once, and fail pull requests only on new ones:
npm install --save-dev onsystem
npx onsystem check . --update-baseline # writes onsystem.baseline.json: commit it
- run: npx onsystem check . --format github --require-design-system
Findings show up as annotations on the pull request, and --require-design-system fails the job when the design system is no longer found. CI and baselines has the whole workflow.
GitHub Action. The action runs the same check, honours the baseline and annotates only the lines a pull request changed. It goes after the checkout and the install, so it can read your design system:
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- run: npm ci
- uses: dgesteves/onsystem@v0
Make it a required check on agent pull requests has the whole workflow and its inputs.
ESLint. The same rules for ESLint 8.57, 9 and 10: add onsystem.configs.recommended from onsystem/eslint to eslint.config.mjs (ESLint plugin, with @shadcn/lint).
Works with @shadcn/lint
@shadcn/lint checks the Tailwind classes written against a component and the theme (restyling, raw colors, arbitrary and unknown classes) as ESLint or Oxlint rules on Tailwind v4. onsystem checks that the components, props and variant values exist and flags native elements and unnamed icon buttons, on Tailwind v3 or v4. Its MCP server shows the agent your components and tokens before it writes, and in Claude Code its hook checks every edit. Run both. Benchmark v2 also scores every output with @shadcn/lint: see the independent scorer's table.
Does it help?
Benchmark v2 gave 6 models from 3 providers (Anthropic, OpenAI and Google) 20 single-file UI tasks in 5 open-source repositories, without onsystem, with its skill, MCP server or hook, and with all three: 1,200 runs, 240 per arm. Counted by onsystem 0.5.0's own check, design-system errors per run went from 0.85 without onsystem to 0.00 with all three, with no measurable change in the tsc pass rate (93% → 92%).
That count is onsystem's own, and the MCP server and the hook show the agent the same errors to fix. In tasks that ask for a green status label in a design system with no success token, agents with onsystem often used chart-* tokens, which it counts as clean. The blind labels by an AI reviewer, 12 files per arm, are too few to confirm the count either way, and every violation they found with the hook or all three is a palette color in Dub, whose tokens 0.5.0 did not read. The benchmark page has every table, and bench/v2 the method, the per-run data and every generated file.
Compatibility
What package.json declares and CI runs:
| With | Supported |
|---|---|
| Node.js | Node.js 20.19 or later (engines). CI runs the tests on Node.js 22, 24 and 26, and the built package on 20.19 |
| Operating system | Linux, macOS and Windows: CI runs the tests and the pack test on each |
| ESLint | ESLint 8.57, 9 and 10, for the ESLint plugin only: eslint is an optional peer, and the CLI, the MCP server, the hook and the Action do not need it |
| TypeScript | Your project's TypeScript is not used, and a JavaScript project needs none: onsystem reads .tsx and .jsx with its own TypeScript 6.0, a dependency, not a peer |
| React | Components written for React 18 (forwardRef) or React 19 (ref as a prop), read from source or type declarations. onsystem does not depend on React |
| Tailwind CSS | v4 (@theme) and v3 (tailwind.config, read without running it). Without Tailwind, tokens come from CSS custom properties, DTCG files or a DESIGN.md |
| shadcn/ui | Both bases, Radix (asChild) and Base UI (render), on Tailwind v3 or v4, with no config |
| MCP clients | Any client that starts a stdio server; CI connects on the 2025-11-25 and 2026-07-28 protocols. Set up your agent has each client's config and support tier |
Docs
On the website, and as Markdown in docs/:
- Quickstart, Claude Code plugin, CI and baselines and Set up your agent, with the config for each client
- Configuration, Rules, MCP tools and Troubleshooting
- How it works, FAQ and Migrating from design-system-mcp
Contributing, security and the changelog are in the repository.
License
MIT © Diogo Esteves
onsystem MCP 질문
onsystem MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add onsystem -- npx -y onsystem를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
onsystem MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
onsystem은 무엇을 확인하나요?
알 수 없는 컴포넌트, 유효하지 않은 props, 잘못된 variant, 하드코딩된 색상, 하드코딩된 간격(spacing), 하드코딩된 반경(radius)을 감지하며, 네이티브 요소 대신 디자인 시스템 컴포넌트를 사용하도록 제안합니다.