
Validator
dev.swatchdogPublished by swatchdog.devv1.0.1Updated Oct 24, 2026
On-demand drift checks: declared CSS color, radius, spacing & type vs your own tokens or a pack
Overview
Swatchdog checks AI-generated CSS against a design system and reports off-token colors, radii, spacing and type with the nearest valid token.
- What you can do
- Check CSS or markup against a curated design pack or your own token set, on demand, and get each off-token color, radius, spacing, font-size and font-family value back with the closest matching token and its location. Supply your own tokens directly for BYO checks, or pick a pack id for zero-config pack checks. Checks are stateless and report-only: nothing is intercepted or rewritten.
- When to use it
- Useful when an AI coding assistant writes styles and you want a deterministic check that the output stays on your design system, rather than relying on the agent to follow tokens it was given. Fits build loops in Claude Code, Cursor and similar MCP clients.
- Requirements
- A remote MCP endpoint over streamable HTTP; OAuth is declared as required for the listed endpoint. The README also describes a keyless connector endpoint and a bearer-key main endpoint, with a free sandbox key for pack checks and paid licenses for uncapped BYO and premium packs. No local runtime or environment variables.
Installation
In SourceWeft
- Open Validator in the dashboard and add it to a workspace.
- Connect the required credentials. They are stored privately and never shown on public pages.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/dev.swatchdog%2Fvalidator/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.
{
"mcpServers": {
"validator": {
"type": "http",
"url": "https://swatchdog-mcp-970396648818.us-central1.run.app/mcp"
}
}
}README
Swatchdog MCP Server
Give your AI agent a visual system to build against — so it writes brand-consistent styles instead of guessing colors, radii, spacing, and type.
✅ Now in the Anthropic Connector Directory. In Claude, open Settings → Connectors, search swatchdog, and click Connect — no URL, no key, no setup.
See it in action
- Live claude.ai run: connector session walkthrough →
- Full test transcript (all green): part-b-transcript.txt →
https://github.com/user-attachments/assets/6ae8b242-d6c7-4a29-8892-27b067835308
What it is
Swatchdog is a Model Context Protocol (MCP) server that runs on-demand design-token drift checks for AI coding assistants — Claude Code, Claude Desktop, Cursor, Google Antigravity, other MCP clients, and claude.ai via the connector.
When your agent asks, Swatchdog checks the generated CSS against a design system — a curated pack or your own tokens — and returns every off-token color, radius, spacing, and type value, each with the closest matching token to use instead. The check is on-demand and the loop is yours: Swatchdog reports drift; it never intercepts writes or changes your code.
Why Swatchdog
AI agents are fast but blind to your design system — they invent off-brand spacing, off-palette colors, and quietly ignore your scales. Swatchdog adds a deterministic drift check to the build loop:
- The agent sets a standard — your own tokens, or a pack.
- It calls Swatchdog on the CSS it generated.
- Swatchdog returns precise fixes (e.g. "use
radius.sm(5px) instead of 7px"). - The agent applies them. The loop, and the review, stay yours.
How is it different from a linter like ESLint?
A linter checks whether your code is valid; Swatchdog checks whether your design is on-system. A linter happily passes color: #ff00ff because it's valid CSS — it has no idea magenta isn't in your palette. Swatchdog catches exactly that, even when the code is flawless. Lint catches broken code; Swatchdog catches broken design.
Can't I just give my agent the tokens, or a design.md?
You can, and it'll still drift. Agents approximate and interpolate even with the rules right in front of them — having the rules isn't the same as following them. Swatchdog verifies conformance in the build loop, where the drift actually happens.
Modes
Pack mode — check against a curated Swatchdog family (Workbench, Showcase, Terminal, plus the free Studio sandbox). Zero-config.
BYO mode — check against your own design system. The agent extracts your tokens (from tailwind.config.js, CSS variables, etc.) and passes them as parameters. Content-only and stateless — your code and tokens are never stored. Free to try on the keyless connector lane, or uncapped with a $12 license.
Intelligent suggestions — Swatchdog doesn't just flag drift, it maps each off-token value to the nearest valid token: color (hex/rgb → nearest theme color), radius, spacing, font-size, and font-family.
Coverage note: checks currently cover hex and standard color formats. HSL-channel representation and complex multi-file token resolution are on the Phase 2 roadmap.
Tools
check_design_drift — connector endpoint · BYO-only · keyless-friendly
reference_tokens(object, required) — your design tokens, e.g.{"color":{"primary":"#b06ed0"},"radius":{"md":"6px"}}code(string, required) — the CSS/markup to check- Returns, per violation: axis · found value · expected token + value · location
check_drift — main endpoint · checks CSS against a pack or a custom token set
content(string, required) — the CSS/markup to checkpaletteId(string, optional) — a pack id (e.g.studio-blue-hour); pack modetokens(object, optional) — your own token set; BYO modesource(string, optional) — telemetry tag (pack,css,tailwind)
Pricing — one-time, no subscriptions
On the main endpoint, a free caller attempting a premium or BYO check gets a structured upgrade payload pointing to swatchdog.dev.
Connect
In Claude (easiest): Settings → Connectors → find swatchdog in the directory → Connect. Nothing to paste, no key.
Other MCP clients (Cursor, Claude Code, Claude Desktop) — add one of these to your MCP config:
Connector endpoint — BYO-only, keyless (add a key to remove the rate cap):
Main endpoint — packs + BYO, bearer key (free sandbox key shown):
Prefer to add the connector to claude.ai manually? Settings → Connectors → Add custom connector → paste the connector URL above → leave auth empty.
Privacy
All checks are on-demand and transient. No source code, files, or tokens are ever stored on our servers. We log only minimal usage metadata — a source tag, which pack, and the finding count — never your license key, your code, or your tokens. Full policy: swatchdog.dev/privacy.html.
Created and maintained by swatchdog.dev · Support: [email protected] · A Ziola Project
Source: README.md at commit 6fc6815
Tools
0Version history
1- v1.0.1LatestSep 16, 2026
Score
75% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.