プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Design Constraint Validator

作者:CseperkePappバージョン 2.3.0i★ –iパソコンで動く
レジストリ名io.github.CseperkePapp/design-constraint-validator

インストール

概要

作者による説明(英語の原文)

Validate design tokens for accessibility, scales, and design-system constraint consistency.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: デザイン・画像・音声

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "design-constraint-validator": {
      "command": "npx",
      "args": [
        "-y",
        "design-constraint-validator"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add design-constraint-validator -- npx -y design-constraint-validator

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "design-constraint-validator": {
      "command": "npx",
      "args": [
        "-y",
        "design-constraint-validator"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "design-constraint-validator": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "design-constraint-validator"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント CseperkePapp で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

デザイン・画像・音声のほかのサーバーとの比較i

  • このカテゴリのほかの2186件のうち0%よりスターが多い
  • このカテゴリのほかの2186件のうち12%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの2186件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Design Constraint Validatorは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(2.3.0)がレジストリに届いたのは5 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Figma Context MCP, Claude Real Video, Figma MCP Server

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Figma Context MCP

作者:GLips

Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.

パソコンで動く★ 16,165MIT5 か月前更新
インストール

Claude Real Video

作者:HUANGCHIHHUNGLeo

Let any LLM watch a video locally — and search everything it has ever watched.

パソコンで動く★ 2,284MIT2 か月前更新
インストール

Figma MCP Server

作者:figma

The Figma MCP server brings Figma design context directly into your AI workflow.

クラウドで動く★ 2,15213 か月前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Design Constraint Validator (DCV)

Mathematical constraint validator for design systems — ensuring consistency, accessibility, and logical coherence.

Design Constraint Validator (DCV) validates design constraints across token sets and styles:

  • ✅ Accessibility: WCAG text contrast, perceptual lightness floor/ceilings
  • ✅ Order & Monotonicity: increasing typography scales, spacing hierarchies
  • ✅ Thresholds & Policies: min/max ranges, cross-axis guards (size × weight × contrast)
  • ✅ Graph Intelligence: Hasse/poset graph export; "why" explanations with implicated edges

This is not a schema linter; it's a reasoning validator for values and relationships.


Installation

# Local (recommended)

npm i -D design-constraint-validator

One-off run, no install (the bin name dcv belongs to an unrelated package)

npx design-constraint-validator --help

After a local install, the shorter dcv bin is available (e.g. npx dcv --help).

Requirements: Node.js ≥ 18.x (ESM)


Quick Start

DCV validates your tokens against your constraints. From an empty directory:

# 1. Your design tokens (DTCG-style "$value")

cat > tokens.json <<'JSON' { "color": { "text": { "$value": "#888888" }, "bg": { "$value": "#999999" } } } JSON

2. Your constraints — auto-discovered as dcv.config.json in the cwd

cat > dcv.config.json <<'JSON' { "constraints": { "enableBuiltInWcagDefaults": false, "enableBuiltInThreshold": false, "wcag": [ { "foreground": "color.text", "background": "color.bg", "ratio": 4.5, "description": "Body text on background" } ] } } JSON

3. Validate (positional path or --tokens; exits non-zero on violations)

npx design-constraint-validator validate tokens.json --summary table

Explain one token (the tokenId is required)

npx design-constraint-validator why color.text --tokens tokens.json --format table

Export the dependency graph

npx design-constraint-validator graph --tokens tokens.json --format mermaid > graph.mmd

These one-offs use the full package name because the bare dcv bin name on npm

belongs to an unrelated package. After npm i -D design-constraint-validator,

use the shorter npx dcv ….

Example output (validate):

validate: 1 error(s), 0 warning(s)

ERROR wcag-contrast color.text|color.bg @ Body text on background — Contrast 1.24:1 < 4.5:1 scope rules warnings errors


global 1 0 1

Exit code is 1 when violations are found, 0 when clean (use --fail-on off to always exit 0). The built-in WCAG/threshold defaults target the bundled example token ids, so disable them (as above) when validating your own token names.


Programmatic API

import { validate } from 'design-constraint-validator';

// Synchronous. Point at files, or pass tokens / constraints inline. const result = validate({ tokensPath: './tokens.json', configPath: './dcv.config.json', // omit to auto-discover dcv.config.json in the cwd });

if (!result.ok) { for (const v of result.violations) { console.log([${v.ruleId}] ${v.message}); } process.exitCode = 1; }

See [API Reference](docs/API.md) for complete programmatic usage.


Use from AI agents (MCP)

DCV ships a second binary, dcv-mcp, that exposes the validator over MCP stdio for agent clients. Add it to a Claude Desktop or generic MCP client config like this:

{

"mcpServers": { "dcv": { "command": "npx", "args": ["-y", "--package", "design-constraint-validator", "dcv-mcp"] } } }

The server exposes six read-only, JSON-returning tools:

  • validate - validate inline tokens or a tokensPath against inline constraints or a config file.
  • why - explain provenance, aliases, dependencies, dependents, and alias chain for one token id.
  • graph - return token dependency nodes and edges.
  • list-constraints - enumerate the active constraints (WCAG pairs, thresholds, order/lightness scales, cross-axis) for the given input.
  • explain - turn a violation into plain-English text plus machine-readable facts.
  • suggest-fix - compute a verified satisfying value for a violation (WCAG color, threshold/monotonic boundary) without writing anything.

The three derivation tools (list-constraints, explain, suggest-fix) stay read-only — they return suggestions; applying them is up to you (dcv set / dcv patch). See [AI Guide](docs/AI-GUIDE.md) for the full agent loop.

Tool failures are returned as structured JSON: { "ok": false, "error": { "code": "...", "message": "..." } }.


Documentation

For Everyone
  • [Getting Started](docs/Getting-Started.md) - 5-minute tutorial
  • [Features & Complete Guide](docs/Features.md) - All features, examples, and FAQ
  • [Examples](docs/Examples.md) - Sample projects and use cases
For Users
  • [Constraints](docs/Constraints.md) - All 5 constraint types in detail
  • [CLI Reference](docs/CLI.md) - Complete command documentation
  • [Configuration](docs/Configuration.md) - Config file options
  • [Concepts](docs/Concepts.md) - Core terminology and defaults
For Developers
  • [API Reference](docs/API.md) - Programmatic usage
  • [Architecture](docs/Architecture.md) - Internal design
  • [Adapters](docs/Adapters.md) - Input/output formats
Additional Resources
  • [Prior Art / Method](docs/prior-art/) - Design rationale (Decision Themes, receipts)
  • [AI Guide](docs/AI-GUIDE.md) - Using DCV with ChatGPT/Claude/Copilot
  • [Contributing](CONTRIBUTING.md) - Contribution guidelines
  • [Security](SECURITY.md) - Supply chain security measures

Why Constraints, Not Conventions?

Conventional linters catch schema issues ("has a value, has a type"). DCV enforces relationships that matter to users and brand integrity:

  • Legible contrast under all themes and states
  • Proper hierarchical spacing/typography (monotonic scales)
  • Coherent cross-axis behavior (e.g., weight increases with size where needed)
  • Policy conformance (AA/AAA, internal thresholds)

This transforms tokens from "bags of numbers" into a formal design system.


Comparison: Schema Linters vs DCV

FeatureSchema LintersDCV
ValidatesJSON structure, typesMathematical relationships, accessibility
CatchesMissing fields, wrong typesContrast violations, hierarchy breaks
PurposeFormat complianceDesign system integrity
ExamplesDTCG schema validatorWCAG checks, monotonic scales

DCV is not affiliated with Anima's design-tokens-validator (schema-focused).


Input Formats

DCV accepts token JSON (flat or nested) and optional policy JSON. Adapters normalize common ecosystems:

  • Style Dictionary - See examples/style-dictionary/
  • Tokens Studio JSON - See examples/tokens-studio/
  • DTCG (Design Tokens Community Group) — reads the 2025.10 stable spec (structured sRGB colors, structured dimensions, {alias} references, $extensions passthrough; non-sRGB spaces warn rather than mis-calculate; composite types out of scope). See examples/dtcg/

Full adapter documentation: [Adapters](docs/Adapters.md)


DCV & DecisionThemes

DCV is the standalone validation engine — use it for any token system.

DecisionThemes (coming 2026) is a complete design system framework built on DCV:

  • 5-axis decision model (Tone, Emphasis, Size, Density, Shape)
  • VT/DT pipeline (Value Themes + Decision Themes → deterministic CSS configs)
  • Studio UI + Hub marketplace for sharing Decision Systems

DCV powers DecisionThemes' validation layer — but works perfectly standalone. Preview: www.decisionthemes.com


Method & Prior Art

The Design Constraint Validator engine is based on a theming and validation method published as defensive prior art.

To understand the underlying architecture (Decision Themes / Value Themes, deterministic compute, post-compute validation and receipts):

  • Decision Themes Method
  • DCV Validation & Receipts

These documents keep the method openly implementable and prevent patent lock-up.


Security & Supply Chain

SBOM (Software Bill of Materials)

DCV generates CycloneDX-compliant SBOMs for supply chain transparency:

  • CI Builds: SBOM artifacts on every CI run (90-day retention)
  • Version tags: SBOM artifacts for release tags
  • GitHub Releases: SBOM files (JSON + XML) attached when a GitHub Release is created
  • Manual: Run npx @cyclonedx/cyclonedx-npm in project root

Download:


Roadmap

  • Plugin API for custom constraints
  • VS Code diagnostics (inline explain)
  • Cross-axis packs (typography × weight × contrast)
  • Signed / attestable receipts — dcv validate --receipt already emits environment + input content hashes today; cryptographic signing is the roadmap part
  • UI graph explorer (node inspector, violations focus)

Philosophy

Constraints, not conventions.

Design systems need mathematical guarantees. This validator:

  1. Enforces relationships - Typography

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く