stnd.build

@stnd/mcp

Circle 2 — Application Superpower (Official Extension) · Stable · First-Party

Role: Model Context Protocol server (local stdio & remote https://stnd.build/api/mcp) exposing tokens, laws, and stnd_lint_markup.

When to use: Connect Claude Code, Cursor, Zed, or Antigravity to verify the 8 Laws and audit HTML/Astro markup automatically. Full guide at MCP Specification.

Quick Start (TL;DR)

// mcp.json
{
  "mcpServers": {
    "standard": { "url": "https://stnd.build/api/mcp" }
  }
}

The Standard Framework MCP Server (Model Context Protocol). It guides humans and AI coding agents by exposing the core laws, unified hooks specifications, CSS design tokens, HTML utility classes, and real-time architectural compliance auditors.

Features

Running the Server

1. Remote Endpoint (Zero Local Setup)

The Standard MCP Server is deployed live on edge Cloudflare Workers via stnd.build:

Remote Configuration for Cursor / Claude Desktop / Antigravity

{
  "mcpServers": {
    "stnd-remote": {
      "url": "https://stnd.build/api/mcp"
    }
  }
}

2. Local StdIO Server (Offline / CI)

Via CLI

pnpm --filter @stnd/mcp start
# or directly:
node packages/mcp/bin/stnd-mcp.js

In Zed (~/.config/zed/settings.json)

{
  "context_servers": {
    "stnd": {
      "command": "node",
      "args": ["/Users/francisfontaine/Documents/GitHub/utopie/packages/mcp/bin/stnd-mcp.js"]
    }
  }
}

In Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "stnd": {
      "command": "node",
      "args": ["/Users/francisfontaine/Documents/GitHub/utopie/packages/mcp/bin/stnd-mcp.js"]
    }
  }
}

Architecture Audit Rules

The auditor enforces the invariants defined in the root README:

  1. Law #1: No backward compatibility shims.
  2. Law #3: .astro files hold no business logic (queries and mutations belong in domain models or actions).
  3. Law #4: Vertical slices & one-way dependency flow (feature modules must never import from sibling feature modules).
  4. Law #5: Minimal src/ (feature logic belongs in modules/).
  5. Component Vocabulary: Zero-class button is the primary action (no .primary), .secondary renamed to .accent, article.card with header/body/footer structure.
  6. Styling Rules: Zero literal hex/rgb colors, no fallback smell on framework tokens (var(--x, fallback)).