{"id":"design-mcp","name":"Design System MCP","endpoint":"https://p31-design-mcp.trimtab-signal.workers.dev/mcp","kind":"remote","category":"design","description":"P31 Design System — tokens, components, recipes, generation, WCAG audit, parity validation.","tags":["design-system","tokens","components","audit"],"author":"P31 Labs, Inc.","icon":"🎨","status":"live","verify":{"alg":"ML-DSA-65","checkedAt":"2026-09-23T00:00:00Z"},"scan":{"verdict":"malicious","score":5,"maliciousCount":1,"suspiciousCount":1,"scannedAt":"2026-11-23T12:07:56.563Z"},"capabilities":{"tools":["token_resolve","component_schema","component_usage","generate_component","component_search","token_list","list_tokens_dtc","get_component_metadata","component_catalog","search_catalog","resolve_brand","layout_generate","list_icons","get_icon","icon_search","icon_preview","propose_component","propose_icon","propose_token","validate_component","audit_tokens","audit_icons","get_template_spec","template_preview","scan_ui","propose_from_spec","toggleDrawer","navigate","setSpoonLevel","list_contracts","get_contract","validate_contract","clarify","list_skills","get_skill","propose_page","scaffold_component","validate_output","resolve_device_tier","get_tier_tokens"],"dataSources":["string"],"externalServices":[],"writeCapable":true,"auto":true},"readOnlySafe":true,"source":"p31","role":"design system","oauth":{"enabled":false,"resource":null,"authorization_servers":[]},"protocol":"2026-07-28","approval":"approved","priceTier":null,"pricedTools":[],"probed":true,"upstream":null,"health":"up","latencyMs":36,"checkedAt":"2026-11-23T12:26:30.968Z","conformance":{"discover":false,"resultType":false,"headerEnforced":false,"checkedAt":"2026-11-23T12:26:31.249Z","detail":"discover: probe error Too many subrequests by single Worker invocation. To configure this limit, refer to https://develope; resultType: probe error Too many subrequests by single Worker invocation. To configure this limit, refer to https://develope; headerEnforced: probe error Too many subrequests by single Worker invocation. To configure this limit, refer to https://develope"},"toolCount":40,"tools":[{"name":"token_resolve","description":"Resolve a DTCG token path to its computed value.","inputSchema":{"type":"object","properties":{"path":{"type":"string","description":"Dotted token path (e.g. p31.color.accent.default)"}},"required":["path"]},"risk":"read"},{"name":"component_schema","description":"Get the full schema for a P31 design system component.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Component name (e.g. GlassCard, Button)"}},"required":["name"]},"risk":"read"},{"name":"component_usage","description":"List all P31 components with descriptions and CSS classes.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional filter by component name"}}},"risk":"read"},{"name":"generate_component","description":"Generate a React/TSX component from components.yml. Returns the component code, test, and Storybook story.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Component name to generate (e.g. GlassCard, Button, SpoonMeter). Omit to generate all."}}},"risk":"read"},{"name":"component_search","description":"Search P31 design components by name, description, CSS class, or AI guidance keywords.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Search query — matches component name, description, css_class, or aiGuidance fields (e.g. \"form\", \"button\", \"spoons\", \"crisis\")."}},"required":["query"]},"risk":"read"},{"name":"token_list","description":"List all available token categories with key values.","inputSchema":{"type":"object","properties":{"prefix":{"type":"string","description":"Optional filter prefix"}}},"risk":"read"},{"name":"list_tokens_dtc","description":"List all P31 design tokens in W3C DTCG 2025.10 format. Returns the full token exchange format for design tool integration.","inputSchema":{"type":"object","properties":{}},"risk":"read"},{"name":"get_component_metadata","description":"Get structured metadata for a P31 component: props, slots, variants, accessibility requirements, status, and import path. Optimized for AI agent consumption.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Component name, e.g. \"GlassPanel\", \"Topbar\", \"SpoonDial\""}},"required":["name"]},"risk":"read"},{"name":"component_catalog","description":"Get the full GenUI component catalog: every P31 component with description, props, tokens, variants, accessibility, AI guidance, and Storybook stories. Derived from the Storybook components manifest merged with canonical component definitions.","inputSchema":{"type":"object","properties":{"category":{"type":"string","enum":["surface","navigation","action","feedback","accessibility","ambient"],"description":"Optional filter by component category."}}},"risk":"read"},{"name":"search_catalog","description":"Search the component catalog by name, description, CSS class, category, tokens, or AI-guidance keywords. Returns matching entries including Storybook stories and render snippets.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Search text (matches name, description, cssClass, category, tokens, aiGuidance useWhen/avoidWhen — e.g. \"navigation\", \"spoons\", \"crisis\", \"glass\")."},"category":{"type":"string","enum":["surface","navigation","action","feedback","accessibility","ambient"],"description":"Optional category filter."}},"required":["query"]},"risk":"read"},{"name":"resolve_brand","description":"Resolve a brand token set by extending a base theme. Returns merged tokens for the brand.","inputSchema":{"type":"object","properties":{"brand":{"type":"string","description":"Brand ID: p31ca, phos, phosphorus31, willow, bonding"}},"required":["brand"]},"risk":"read"},{"name":"layout_generate","description":"Generate sovereign HTML layout from a JSON description. Supports hero, tetra-grid, card-grid, section, and cta layout types. Set format: \"a2ui\" for A2UI JSON output.","inputSchema":{"type":"object","properties":{"type":{"type":"string","enum":["hero","tetra-grid","card-grid","section","cta"],"description":"Layout type to render."},"format":{"type":"string","enum":["html","a2ui"],"description":"Output format. Default \"html\". Set \"a2ui\" for JSON component tree."},"title":{"type":"string","description":"Main heading (hero, section)."},"subtitle":{"type":"string","description":"Subtitle text (hero)."},"heading":{"type":"string","description":"Section heading (card-grid, section, cta)."},"description":{"type":"string","description":"Section description (card-grid, section, cta)."},"columns":{"type":"number","description":"Number of grid columns (card-grid, default 3, max 4)."},"badge":{"type":"string","description":"Badge text (hero)."},"content":{"type":"string","description":"Raw HTML content (section)."},"ctas":{"type":"array","description":"Array of {label, href, variant} buttons (hero)."},"stats":{"type":"array","description":"Array of {value, label} stat cards (hero)."},"buttons":{"type":"array","description":"Array of {label, href, variant} buttons (cta)."},"items":{"type":"array","description":"Array of {component: \"GlassCard\", props: {color, title, description, href}} (tetra-grid, card-grid)."}},"required":["type"]},"risk":"read"},{"name":"list_icons","description":"List all P31 icons with family, colors, animation, and description.","inputSchema":{"type":"object","properties":{"family":{"type":"string","enum":["regular","advanced"],"description":"Optional filter by icon family."}}},"risk":"read"},{"name":"get_icon","description":"Get a single P31 icon SVG + metadata by id.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Icon id (e.g. sovereign-crown, spoon)."}},"required":["name"]},"risk":"read"},{"name":"icon_search","description":"Search P31 icons by name, concept keyword, or color palette. Returns matching icons with metadata.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Search query — matches icon id, name, description, or colors (e.g. \"crown\", \"gold\", \"sovereign\")."},"family":{"type":"string","enum":["regular","advanced"],"description":"Optional filter by icon family."}},"required":["query"]},"risk":"read"},{"name":"icon_preview","description":"Get a rendered P31 icon preview (HTML with embedded SVG) plus metadata for agent visualization.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Icon id (e.g. sovereign-crown, spoon)."},"size":{"type":"string","enum":["sm","md","lg"],"description":"Preview size: sm=24px, md=40px, lg=64px. Default md."}},"required":["name"]},"risk":"read"},{"name":"propose_component","description":"Propose a new P31 design system component from a natural language description.","inputSchema":{"type":"object","properties":{"description":{"type":"string","description":"Natural language description of the component."},"style":{"type":"string","enum":["glass","solid","minimal"],"description":"Visual style preference."},"interactive":{"type":"boolean","description":"Whether the component accepts user input."},"surfaceId":{"type":"string","description":"The surface ID this component proposal belongs to"},"userId":{"type":"string","description":"The user ID for this request"}},"required":["description"]},"risk":"read"},{"name":"propose_icon","description":"Propose a new P31 icon from a natural language description.","inputSchema":{"type":"object","properties":{"description":{"type":"string","description":"What the icon represents."},"family":{"type":"string","enum":["regular","advanced"],"description":"Icon family preference."},"colors":{"type":"array","items":{"type":"string"},"description":"Preferred color tokens."},"surfaceId":{"type":"string","description":"The surface ID this icon proposal belongs to"},"userId":{"type":"string","description":"The user ID for this request"}},"required":["description"]},"risk":"read"},{"name":"propose_token","description":"Propose a new P31 design token from a natural language description. Returns path, value, type, category, and rationale.","inputSchema":{"type":"object","properties":{"description":{"type":"string","description":"Natural language description of the token need (e.g. \"a soft purple glow for hover states\")."},"category":{"type":"string","enum":["primitive","semantic","theme"],"description":"Token namespace. Defaults to primitive."},"type":{"type":"string","enum":["color","dimension","fontFamily","shadow"],"description":"Token value type. Defaults inferred from description."},"surfaceId":{"type":"string","description":"The surface ID this token proposal belongs to"},"userId":{"type":"string","description":"The user ID for this request"}},"required":["description"]},"risk":"read"},{"name":"validate_component","description":"Validate a P31 component against the design system schema.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Component name to validate."}},"required":["name"]},"risk":"read"},{"name":"audit_tokens","description":"Audit the P31 token tree for inconsistencies, orphans, and dead tokens.","inputSchema":{"type":"object","properties":{}},"risk":"read"},{"name":"audit_icons","description":"Audit the P31 icon catalog for missing SVGs, metadata, family mismatches, color count errors, duplicates, animation/viewBox/aria-label issues, and catalog mismatches.","inputSchema":{"type":"object","properties":{}},"risk":"read"},{"name":"get_template_spec","description":"Get the DESIGN.md spec for a canonical P31 page template. Returns the full template specification including visual theme, color palette, typography, layout, components used, tokens used, and agent generation rules.","inputSchema":{"type":"object","properties":{"template":{"type":"string","enum":["template-developer-hub","template-institutional","template-caregiver"],"description":"Template identifier."},"returnFormat":{"type":"string","enum":["json","markdown"],"description":"Output format. \"json\" (default) returns structured fields. \"markdown\" returns the full DESIGN.md prose optimized for AI agent reasoning."}},"required":["template"]},"risk":"read"},{"name":"template_preview","description":"Get a live preview URL and metadata for a P31 canonical page template. Returns the live URL, screenshot placeholder, source file path, and a concise visual description optimized for AI agents to \"see\" the template.","inputSchema":{"type":"object","properties":{"template":{"type":"string","enum":["template-developer-hub","template-institutional","template-caregiver"],"description":"Template identifier."}},"required":["template"]},"risk":"read"},{"name":"scan_ui","description":"Scan HTML for WebMCP annotations (data-mcp-* attributes). Returns structured list of all annotations found.","inputSchema":{"type":"object","properties":{"html":{"type":"string","description":"HTML string to scan (usually a component or page)."}},"required":["html"]},"risk":"read"},{"name":"propose_from_spec","description":"Propose a component from a spec contract. Takes a spec name (e.g. button, glass-panel), looks up its contract, generates a proposal, validates it, and returns a visual baseline path. One-pass spec→verify pipeline.","inputSchema":{"type":"object","properties":{"spec":{"type":"string","description":"Spec/component name (e.g. button, glass-panel, chat-composer). Must match a contract in specs/."}},"required":["spec"]},"risk":"read"},{"name":"toggleDrawer","description":"Open or close the navigation drawer","inputSchema":{"type":"object","properties":{"state":{"type":"string","enum":["open","closed"],"description":"Desired drawer state"},"target":{"type":"string","description":"Which drawer to toggle (e.g. nav-drawer)"},"surfaceId":{"type":"string","description":"The surface ID this drawer belongs to"},"userId":{"type":"string","description":"The user ID for this request"}},"required":["state","target"]},"risk":"read"},{"name":"navigate","description":"Navigate to a URL","inputSchema":{"type":"object","properties":{"href":{"type":"string","description":"URL to navigate to"},"external":{"type":"boolean","description":"Whether the URL is external"},"surfaceId":{"type":"string","description":"The surface ID this navigation occurs in"},"userId":{"type":"string","description":"The user ID for this request"}},"required":["href"]},"risk":"read"},{"name":"setSpoonLevel","description":"Set cognitive load level (0–5)","inputSchema":{"type":"object","properties":{"level":{"type":"number","minimum":0,"maximum":5,"description":"Spoon level (0 = crisis, 5 = quantum)"},"surfaceId":{"type":"string","description":"The surface ID this spoon level applies to"},"userId":{"type":"string","description":"The user ID for this request"}},"required":["level"]},"risk":"write"},{"name":"list_contracts","description":"List all machine-readable component contracts with semantic parts, token categories, and required ARIA.","inputSchema":{"type":"object","properties":{}},"risk":"read"},{"name":"get_contract","description":"Fetch the full machine-readable contract for a specific component: closed token lists, semantic parts, required ARIA, interaction states, spoon rules, forbidden patterns.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Component name (e.g. Button, GlassPanel, ChatMessage)"}},"required":["name"]},"risk":"read"},{"name":"validate_contract","description":"Validate generated code against a component contract. Checks for hardcoded hex, inline styles, emoji icons, and forbidden patterns.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Component name to validate against"},"code":{"type":"string","description":"Generated code to validate"}},"required":["name"]},"risk":"read"},{"name":"clarify","description":"Detect ambiguities in a generation prompt before synthesis. Returns prioritized questions to resolve intent gaps that cause agents to invent tokens or skip required ARIA.","inputSchema":{"type":"object","properties":{"prompt":{"type":"string","description":"The user prompt or generation request to analyze"},"context":{"type":"object","description":"Optional context (theme, brand, age, sensory mode)"}},"required":["prompt"]},"risk":"read"},{"name":"list_skills","description":"List all available P31 skills — machine-readable standards agents can load at runtime via p31://skills resources.","inputSchema":{"type":"object","properties":{}},"risk":"read"},{"name":"get_skill","description":"Get the full body of a P31 skill (machine-readable standard) by name. Returns the SKILL.md content with audit rules and golden eval cases.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Skill name (e.g. p31-standards)"}},"required":["name"]},"risk":"read"},{"name":"propose_page","description":"Propose a sovereign page composed from canon components. Every component name is resolved against the closed catalog; an unknown component refuses the whole proposal (fail-closed).","inputSchema":{"type":"object","properties":{"title":{"type":"string","description":"Optional page title."},"type":{"type":"string","enum":["hero","tetra-grid","card-grid","section","cta"],"description":"Page layout type."},"components":{"type":"array","items":{"type":"string"},"description":"Component names to compose (e.g. [\"GlassCard\", \"Button\"])."}},"required":["type","components"]},"risk":"read"},{"name":"scaffold_component","description":"Return a contract-conformant scaffold (tsx + test + story) for a known component. No file is written by the worker; the write path is the local CLI under pnpm gate. Unknown component is refused.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Component name to scaffold (e.g. Button, GlassPanel, GlassCard)."}},"required":["name"]},"risk":"read"},{"name":"validate_output","description":"Fail-closed validation of generated code: flags hardcoded hex, raw color, inline style, emoji icons, legacy token vocabulary, and contract forbidden patterns. Returns valid=false when any violation is found.","inputSchema":{"type":"object","properties":{"code":{"type":"string","description":"Generated code to validate."},"component":{"type":"string","description":"Optional component name to also check against its contract forbidden patterns."}},"required":["code"]},"risk":"write"},{"name":"resolve_device_tier","description":"Resolve the delivery tier (mobile/tablet/desktop/embedded) from capability, never device brand. Independent pointer/hover flags are surfaced, never collapsed; unknown input fails closed.","inputSchema":{"type":"object","properties":{"widthDp":{"type":"number","description":"Viewport width in dp (CSS px)."},"pointer":{"type":"string","description":"Pointer capability: none | coarse | fine | mixed."},"hover":{"type":"string","description":"Hover capability: none | hover | mixed."}},"required":["widthDp","pointer","hover"]},"risk":"read"},{"name":"get_tier_tokens","description":"Get the tier contract (touch floor, navigation, delivery surfaces) for a tier. Token VALUES resolve via token_resolve / list_tokens_dtc.","inputSchema":{"type":"object","properties":{"tier":{"type":"string","description":"Tier: embedded | mobile | tablet | desktop."}},"required":["tier"]},"risk":"read"}],"contentHash":"[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]","baselineHash":null,"drifted":false,"baselineTools":null}