@domphy/mcp
An MCP (Model Context Protocol) server that exposes Domphy's knowledge base to AI assistants. Connect it to Cursor, VS Code, or any MCP-compatible tool to get accurate Domphy context without hallucination.
What it gives AI assistants
- Patch catalog — full API of every
@domphy/uipatch (host tag, props, style contract) - Package map — all packages, their purpose, and when to use them
- Rules —
domphy_rulesreturnsllms.txt(the code-generation guide) - Doctor integration — validate and fix Domphy element trees live
- App block registry — the current app's exported trees from
app-manifest.json
Installation
npm install -g @domphy/mcp
# or run directly:
npx @domphy/mcpConnect your MCP client
Add to your MCP client's config (see Client Setup for per-editor paths):
{
"mcpServers": {
"domphy": {
"command": "npx",
"args": ["@domphy/mcp"]
}
}
}Tools reference
See the Tools Reference for all 10 tools with full input/output schemas.