Skip to main content
Glama
sulabhdubey

astra-fable-styleguide-mcp

by sulabhdubey

Astra + Fable Style Constitution

Give your coding agent shared design rules. Check the UI. Review the correction.

A versioned design contract, a read-only MCP server for coding agents, and a local UI checker with reviewed repairs. For developers who want their interfaces to follow the same rules as their code changes.

Try the demo → · Connect your agent · Install locally · v0.9.0 release

See a check in action

The browser measures a 24px button, flags it against this project's 40px rule, then measures again after you approve a supplied correction.

1 · Find the mismatch

Demo before correction: measured button height of 24px is below the project's 40px rule.

2 · Apply and recheck

Demo after correction: rechecked button height of 40px meets the project's rule.

Actual v0.7.0 demo screenshots. This sample checks button height only; 40px is a project rule, not a universal accessibility minimum. Try it without an account, install or AI call.

Related MCP server: eds-mcp-server

How it works

flowchart LR
  Rules["Design rules /spec"] --> MCP["Read-only MCP"]
  MCP --> Agent["Your coding agent"]
  Rules --> Check["Local UI check"]
  Check --> Review["Inspect findings; review correction"]
  Review --> Recheck["Apply, rebuild if needed, recheck"]
  Recheck -.-> Undo["Undo if needed"]

You want to…

Start with…

Give an agent consistent tokens and component rules

Public MCP setup

Inspect a supported interface and review corrections

Local Studio · React/Vite guide

Create and pin your team's design contract

Constitution authoring

See new, resolved and incomplete checks in a PR

PR regression summaries

Hand findings to an agent, revisit history, or adopt team rules

Individual and team workflows — included in v0.9.0

Start locally

Use Node 22.12+ and pnpm 10.34.5 in this repository:

pnpm install --frozen-lockfile
pnpm build
pnpm stylecon browser-install
pnpm stylecon check examples/profile

Prefer the packaged CLI? Follow the verified installation guide. The CLI is distributed as a release archive; it is not published to npm.

Production MCP

Add this to your client's MCP configuration; merge it with existing servers:

{
  "mcpServers": {
    "style-constitution": {
      "url": "https://astra-fable-styleguide-mcp.vercel.app/mcp"
    }
  }
}

Eight public read/compliance tools. No provider key required. The server supplies rules and checks submitted values; it cannot inspect or edit your local files. Client trial evidence · TypeScript SDK

Guided setup showing the Cursor MCP configuration and copy action.

Open guided setup · Health · Version

Why Astra + Fable?

Two configurable agent roles independently propose design changes, then review them. They are roles, not fixed model vendors.

flowchart TD
  Brief["Same design brief"] --> A["Astra: independent proposal"]
  Brief --> F["Fable: independent proposal"]
  A --> Review["Cross-review and deterministic checks"]
  F --> Review
  Review --> Candidate["Revise candidate or request clarification"]
  Candidate --> Approval["Both roles approve the exact candidate hash"]
  Approval --> Human["Human release approval and release checks"]

A changed candidate invalidates prior approvals. Unresolved requirements and pending checks block release. Collaboration is experimental; an overall advantage over a single agent has not been demonstrated. Governance · Measured comparison

Supported scope

  • Configured static UI journeys and trusted local React/Vite production previews.

  • Selected typography, spacing, contrast, overflow and interaction checks; browser coverage · source-text checks.

  • Supported repairs require explicit source mappings. React/Vite literal CSS corrections require a trusted rebuild before rechecking.

  • Experimental Dembrandt token comparison checks declared colors against a versioned export using a controlled local render.

  • Experimental software: no complete accessibility certification, arbitrary-framework coverage or autonomous repair guarantee.

Go deeper

Quickstart · Repair walkthrough · Release notes · Changelog · Deployment

pnpm install
pnpm lint
pnpm typecheck
pnpm test
pnpm validate
pnpm build

After installing Chromium, pnpm test:product checks the built product pages. CI requires no external AI calls.

Project goal · Build specification · Agent rules · Versioning

Inspired by Tibo's post on X.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    A read-only MCP server that provides AI coding agents with a queryable contract for design system tokens, components, patterns, and anti-patterns.
    15 npm
    1
    Apache 2.0
  • A
    license
    B
    quality
    B
    maintenance
    Enables AI agents to access design system tokens and component contracts through MCP, reducing token usage and ensuring consistency.
    29
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Manages design tokens (colors, spacing, fonts) in a JSON file and enables agents to read, write, export, and detect drift between tokens and CSS via MCP.
    5
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Read-only MCP server that exposes a design system's tokens, components, conventions, and deprecations as queryable tools, enabling agents to look up canonical values, assess change impact, and detect hardcoded value drift.
    8
    0
    MIT