Domphy

@domphy/mcp

An MCP (Model Context Protocol) server that exposes Domphy's knowledge base to AI assistants. Connect it to Claude, Cursor, or any MCP-compatible tool to get accurate Domphy context without hallucination.

What it gives AI assistants

  • Patch catalog — full API of every @domphy/ui patch (host tag, props, style contract)
  • Package map — all packages, their purpose, and when to use them
  • Rules — the complete AGENTS.md rule set (tone model, doctor rules, naming conventions)
  • Doctor integration — validate and fix Domphy element trees live
  • App block registry — layout patterns from @domphy/app

Installation

npm install -g @domphy/mcp
# or run directly:
npx @domphy/mcp

Connect to Claude Code

Add to your Claude settings (.claude/settings.json):

{
  "mcpServers": {
    "domphy": {
      "command": "npx",
      "args": ["@domphy/mcp"]
    }
  }
}

Tools reference

See the Tools Reference for all 10 tools with full input/output schemas.