hig-mcp
v0.3.0Structured Apple HIG design-system MCP: tokens, Liquid Glass constraints, SwiftUI mapping.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hig_get_tokens
Return curated Apple HIG design tokens for a category. Tokens carry provenance: 'src' tags each value (apple-system, apple-hig, figma-effect, community-bestpractice, convention, wcag-aa) and 'verify':true flags values to confirm against the current OS. Semantic colors are dynamic — reference by name, never hardcode hex. Args: params.category: one of color | typography | materials | layout | swiftui | sf_symbols | all Returns: dict: the requested token category (or all categories), as structured data.
| Parameter | Type | Description |
|---|---|---|
params * |
hig_check_liquid_glass
Return the Liquid Glass guardrails for a given usage context. Surfaces the budgets agents routinely get wrong — blur radius cap, max compositing layers, contrast-after-blur, depth/frost ranges, and the required reduced-transparency fallback — with provenance so you know which numbers are Apple's vs. community/Figma-derived. Args: params.context: where the material is applied (free text) params.platform: 'iphone' or 'ipad_mac' (selects blur budget) Returns: dict: applicable rules, the platform blur cap, and a checklist.
| Parameter | Type | Description |
|---|---|---|
params * |
hig_swiftui
Map a HIG component to its SwiftUI API plus the token references to apply. Stable APIs are confident; Liquid-Glass-era modifiers are flagged verify:true because names shift between betas — confirm via hig_fetch or Xcode before shipping. Args: params.component: one of the 14 mapped components, e.g. button, tab_bar, sheet (omit to list all) Returns: dict: mapping with swiftui API, token refs, hig_path, and verify flags.
| Parameter | Type | Description |
|---|---|---|
params * |
hig_fetch
Fetch current HIG prose as clean Markdown via sosumi.ai. Thin convenience wrapper so this one server covers both tokens and prose. sosumi.ai renders Apple's DocC pages to AI-friendly Markdown. Returned text is for grounding only: summarize and cite the canonical Apple URL, do not reproduce it wholesale. Override the backend with HIG_SOSUMI_BASE. Args: params.path: HIG slug, /design/... path, or full developer.apple.com URL. Returns: dict: markdown content, the sosumi source, and the canonical Apple URL.
| Parameter | Type | Description |
|---|---|---|
params * |