astra-fable-styleguide-mcp
Enables configurable OpenAI-backed design agent roles to propose and critique style constitution candidates from a product brief.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Astra + Fable Style Constitution
Give your coding agent shared design rules. Check the UI. Review the correction.
Style Constitution helps developers check whether an AI-built interface follows their project's design rules. Give your coding agent approved colors, spacing and component rules, then measure selected parts of the rendered UI and review a correction when they differ.
Use it when a screen works but its design has drifted: a button is too small, a heading uses the wrong size, or a configured dialog does not return focus as expected. The rules live in a versioned /spec directory. You can use the rules or local checker with one coding agent, or without an AI model for local checks.
Try the demo → · Connect your agent · Install locally · v0.10.2 release
Choose how to use it
Your next task | Use | What you get |
Give your coding agent a consistent design reference | Hosted MCP, the connection between your agent and the rule server | Tokens, component rules and checks of submitted text/values. It does not open your app or inspect local files. |
Check a supported page and review a correction | Local CLI or Studio, a browser interface running on your machine | Rendered findings with the element, expected rule and observed value; supported repair previews, rechecks and undo. No AI provider is required. |
Experiment with two agents reviewing design proposals | Astra + Fable collaboration | Independent proposals, cross-review and approval of an exact candidate. Optional and experimental; not required for either workflow above. |
Start small: try the browser demo, then follow one first-use path. The released local checker supports configured static pages and trusted React/Vite production previews. Check the scope before adapting a project.
Related MCP server: eds-mcp-server
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

2 · Apply and recheck

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.
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 | |
Inspect a supported interface and review corrections | |
Create and pin your team's design contract | |
See new, resolved and incomplete checks in a PR | |
Compare two repairs against one baseline | Candidate comparison — matching requirements, explicit ties and incomplete evidence |
Hand findings to an agent, revisit history, or adopt team rules | Individual and team workflows — included in v0.10.0 |
For an individual developer, this makes selected design mismatches inspectable before accepting a change. For a design-system maintainer, it connects approved rules to agent instructions and browser measurements. For a reviewer, it records which source and rules were checked and what remains incomplete. Reduced review effort is a benefit to evaluate in your project, not a measured savings claim.
Start locally
Use Node 22.12+, Git and pnpm 10.34.5 for this source-checkout path:
git clone https://github.com/sulabhdubey/astra-fable-styleguide-mcp.git
cd astra-fable-styleguide-mcp
pnpm install --frozen-lockfile
pnpm build
pnpm stylecon browser-install
pnpm stylecon doctor
pnpm stylecon check examples/profileRead the reported targets and findings. Exit 0 means all recorded checks passed, 1 means violations, and 2 means an error or incomplete check. A pass covers the configured checks only. To see a deliberately broken button, use the local repair walkthrough; its first check is expected to fail.
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"
}
}
}After connecting, ask your agent:
Read the Style Constitution manifest and button/dialog rules. Explain which rules apply to my interface and cite their rule IDs. Separate declared rules from anything you have actually measured. Do not edit files yet.
Success means the client can list the eight public read/compliance tools and retrieve rules, not just display the server URL. No project account or provider key is required for this server; your agent may have its own model costs. Arguments you submit to the hosted tools are sent to that service. It cannot inspect or edit your local files, and connecting it does not automatically launch the local checker. Client trial evidence · TypeScript SDK
Opening /mcp in a normal browser can show “Method not allowed.” Use an MCP client with Streamable HTTP support, or open the product site to explore the project.

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
Do I need two models? No. Astra and Fable are configurable roles in an optional collaboration workflow. The hosted rules and local checking work independently of that experiment.
Can I use my team's design rules? Yes: create a reviewed constitution, then pin and adopt it locally. The public MCP serves this project's published constitution; local rule adoption does not change that shared endpoint.
Does it replace Storybook or a full accessibility audit? No. It measures selected, explicitly configured rules and journeys. The Storybook development trial is separate from the v0.10.2 release. Unsupported checks remain incomplete; arbitrary JSX repair is not supported.
What has been demonstrated? Internal client trials show coding agents retrieving rules and reacting to findings, with failures recorded. The repair demo demonstrates a bounded browser-check and correction workflow. These are engineering examples, not evidence of widespread customer adoption. The developer pilot defines the repeat-use evidence still needed.
Will it save tokens or guarantee better AI output? Neither is established. Local checks do not call an AI provider. The collaboration studies and selective-review experiment record bounded results and do not demonstrate an overall two-agent advantage or general token savings.
pnpm install
pnpm lint
pnpm typecheck
pnpm test
pnpm validate
pnpm buildAfter 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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Give your agent a real design system: tokens, measured WCAG contrast, and rules to follow.
Serves your design system and coding standards to coding agents, so they stop guessing.
BrandPilot brands and design systems for coding agents: tokens, design context, repo rules.
Access and maintain design system docs, tokens, components, skills, and contexts across any project.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA read-only MCP server that provides AI coding agents with a queryable contract for design system tokens, components, patterns, and anti-patterns.24 npm1Apache 2.0
- AlicenseBqualityCmaintenanceEnables AI agents to access design system tokens and component contracts through MCP, reducing token usage and ensuring consistency.29MIT
- AlicenseAqualityCmaintenanceManages 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.5MIT
- AlicenseAqualityCmaintenanceRead-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.83 npmMIT