basecoat-ui
This MCP server is an offline, read-only-plus-session design registry that lets an AI agent discover Basecoat/shadcn-style components, compose macro dashboard layouts, and statically validate generated markup without any network access.
Search and retrieve components —
search_componentsreturns up to 8 compact summaries (id, name, intent) from 62 curated components;get_component_detailsreturns one minimal Astro or HTML template with dependencies and composition tips.Statically validate markup —
validate_compositionchecks up to 256 KiB of HTML/Astro for Basecoat migration errors, rhythm, FSM bindings, missing scripts, nested cards, spacing, and hierarchy (no rendering or code execution).Discover macro layout blocks —
search_macro_blocksfinds blueprints by query, role, family, tag, or design/page/slot context across 84 blocks and aliases, with cursor pagination.Read macro block sections —
get_macro_blockpulls manifest, structure, slots, ports, rules, dependencies, or provenance sections, optionally pinned to a design session.Run persistent design sessions —
begin_designcreates a hash-verified session under.basecoat/designer/, pinning the macro registry revision;get_design_contextreads sessions, overview, decisions, graph, rules, focus, or next views.Mutate design graphs atomically —
apply_design_patchapplies operations such asinstantiate_recipe,attach_block,replace_block,remove_block,connect_ports,set_decision,record_written, andmark_plan_ready, guarded byexpectedRevisionand idempotentoperationId.Validate designs —
validate_designchecks a draft or complete design graph (or one page) and returns paginated diagnostics.Read rhythm and token rules —
get_rhythm_rulesreturns effective semantic spacing/typography/surface profiles by family, including project-local.basecoat/rhythm.jsonoverrides, with semantic IDs kept separate from approved Tailwind utilities.Read FSM recipes —
get_fsm_recipereturns states, events, guards, actions, and transitions for interactive primitives like dialog, navigation, auth-flow, and tabs (structural metadata only, not runtime code).Stay deterministic and bounded — every result is a bounded MCP packet (≤1,999 UTF-8 bytes) with cursor pagination, zero runtime network requests, and no writing of host application source files.
Enables composing Basecoat UI components in Astro projects, with setup guidance for Vite, Tailwind CSS 4, selective JavaScript imports, and native dialog wiring.
Provides Tailwind CSS 4 integration for Basecoat UI components, including CSS ordering and stylesheet setup for Astro or static HTML projects.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@basecoat-ui Search for a card component template"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
The server exposes a deterministic, offline registry for AI coding agents instead of requiring clients to scrape documentation. It runs over local stdio with zero runtime network requests, bounded < 2 KB responses, and bounded lexical/heuristic static source validation. The host application remains responsible for rendering, data access, authentication, sessions, credentials, OAuth, captcha, and other runtime behavior.
Install
Requires Node.js 22.14.0 or newer.
Quick Start by Client
Cursor (.cursor/mcp.json)
{
"mcpServers": {
"basecoat-ui": {
"command": "npx",
"args": ["-y", "@intellmedia/basecoat-ui-mcp", "--project-root", "${workspaceFolder}"]
}
}
}Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"basecoat-ui": {
"command": "npx",
"args": ["-y", "@intellmedia/basecoat-ui-mcp", "--project-root", "/absolute/path/to/your/application"]
}
}
}Claude Code (CLI)
claude mcp add basecoat-ui -- npx -y @intellmedia/basecoat-ui-mcp --project-root $(pwd)Generic npx (no install)
{
"mcpServers": {
"basecoat-ui": {
"command": "npx",
"args": ["-y", "@intellmedia/basecoat-ui-mcp", "--project-root", "/absolute/path/to/your/application"]
}
}
}npm
npm install --global @intellmedia/basecoat-ui-mcpAdd the server to an MCP client. Use an absolute path for the host application so design context and persistent sessions belong to the intended project:
{
"mcpServers": {
"basecoat-ui": {
"command": "basecoat-ui-mcp",
"args": ["--project-root", "/absolute/path/to/your/application"]
}
}
}The compiled entry can also be invoked directly:
{
"mcpServers": {
"basecoat-ui": {
"command": "node",
"args": [
"/absolute/path/to/node_modules/@intellmedia/basecoat-ui-mcp/dist/server/stdio.js",
"--project-root",
"/absolute/path/to/your/application"
]
}
}
}Published packages include prebuilt dist/ and the immutable semantic snapshot
under src/semantics/. Server startup reads that snapshot and does not write
inside the installed package. The package contract test builds first, creates
and extracts an actual npm tarball, marks the extracted package tree read-only,
starts its dist/server/stdio.js under a network tripwire, completes MCP
initialize and tool-list requests, and closes the connection. A source checkout
does not include dist/.
From source
git clone https://github.com/zygiu-zygis/basecoat-ui-mcp.git
cd basecoat-ui-mcp
npm ci
npm run build
npm start -- --project-root /absolute/path/to/your/application--project-root takes precedence over BASECOAT_PROJECT_ROOT, which takes precedence over the launch directory. The selected directory is the host project, not the MCP installation directory. The server exposes stdio only.
Related MCP server: Maket
Project-root configuration
The configured root controls two things:
DESIGN.mdis read from that directory bybasecoat://project/context.Persistent macro sessions are stored under
<project-root>/.basecoat/designer/..basecoat/rhythm.jsonis an optional strict override. It must live under a real.basecoatdirectory inside the project root, be a regular non-symlink file no larger than 65,536 UTF-8 bytes, and resolve inside that root; missing or rejected files leave the packaged profile unchanged. Matching mapping IDs replace in place and keep packaged order.
Only that exact directory is used. The server does not walk parent directories. Keep .basecoat/ in the host project and back it up if design sessions are part of your workflow. The MCP server never writes host application source files.
Basecoat MCP tools
The server exposes 22 offline MCP tools organized across six architectural layers: project setup and configuration, intent-driven layout orchestration, theme-aware charts, component retrieval, macro design graphs, and semantic state contracts. Every tool result is a bounded MCP packet of at most 1,999 UTF-8 bytes. Larger result sets use cursors; responses are not sliced mid-JSON.
Complete MCP Tool Table
Tool Name | Layer | Description | Mode |
| Setup & Config | Generates framework boilerplates, Tailwind CSS 4 imports, OKLCH variables, and no-flash dark mode scripts | Read-only |
| Intent Fast Path | Plans complete layout scaffolds with container grid contracts and explicit slot topology | Read-only |
| Intent Fast Path | Assembles composable component stacks into canonical shells (sidebar-01..16, topbar, inset, split) with slot hydration | Read-only |
| Intent Fast Path | Enforces technical constraints across Tailwind v4, FSM state contracts, semantic tokens, and dashboard rules | Read-only |
| Intent Fast Path | Surfaces Kanso minimalism, 4px/8px optical rhythm, density profiles, typography ladders, and contrast pairings | Read-only |
| Intent Fast Path | Delivers copy-pasteable HTML/Astro component markup with pre-configured FSM state variants and inline SVG icons | Read-only |
| Charts & Data Viz | Lists and filters 56 theme-aware chart blueprints across 7 categories with keyword search | Read-only |
| Charts & Data Viz | Retrieves chart HTML using semantic CSS tokens (--chart-1..5) and mount scripts for 5 frameworks | Read-only |
| Quality & Audit | Audits HTML/Astro markup with Score (0-100), letter grade, syntax violations, a11y omissions, and auto-fix suggestions | Read-only |
| Components | Searches up to 8 compact component summaries by intent and/or query across 62 curated components | Read-only |
| Components | Retrieves minimal component template, dependencies, and composition guidance for Astro or HTML | Read-only |
| Components | Retrieves HTML markup template and dependencies for any curated component | Read-only |
| Static Analysis | Statically checks up to 256 KiB of markup for migration errors, rhythm, FSM bindings, and accessibility | Read-only |
| Static Analysis | Validates HTML/Astro markup syntax, structure, landmark ordering, and semantic constraints | Read-only |
| Macro Graph | Searches approved macro layout blocks by query, role, family, or tag across 84 blocks and aliases | Read-only |
| Macro Graph | Retrieves a section of a compiled macro block blueprint (manifest, structure, slots, ports, rules, etc.) | Read-only |
| Macro Graph | Creates a persistent, hash-verified design session under .basecoat/designer/ pinning profile and registry revision | Mutation (idempotent) |
| Macro Graph | Reads focused design session views (sessions, overview, decisions, graph, rules, focus, next) | Read-only |
| Macro Graph | Applies atomic graph mutations with expectedRevision and idempotent operationId | Mutation (idempotent) |
| Macro Graph | Validates draft or complete design graphs, returning diagnostic totals and paginated issues | Read-only |
| Semantics & Tokens | Reads effective semantic rhythm profiles and approved utilities by family, supporting project-local overrides | Read-only |
| Semantics & State | Reads finite state machine interaction states, events, transitions, guards, and actions | Read-only |
Intent-Driven Design Layer (Fast Path)
basecoat_setup_config- Framework and styling configuration generator. Outputs ready-to-use boilerplate for 6 targets (astro,vanilla,nextjs,sveltekit,vite,htmx), 8 aesthetic style packs (vega,nova,maia,lyra,mira,luma,sera,rhea), complete OKLCH@theme inlineblocks, and synchronous<head>inline dark mode scripts.basecoat_page_architect- Query recipes (src/macros/authoring/recipes/*.json) and macro blocks (src/macros/authoring/blocks/*.json) byintent,recipe, orblock. Delivers full layout scaffolds with explicitdata-slotmarkers, semantic HTML skeletons, grid structures, and responsive containers. Fully covers 5 dashboard page archetypes:Executive Dashboard (
workspace-dashboard,executive-dashboard) - KPI stat cards, revenue chart, and recent activity.E-commerce Overview (
ecommerce-overview) - Sales metrics, revenue analytics, top products card, and order summary.Analytics Workspace (
analytics-workspace) - Filter toolbar, time-series interactive chart, and cohort analysis breakdown.Data Table Detail (
workspace-detail,data-table-detail) - Paginated data table with search/filters and slide-over inspection drawer.Settings Split-Screen (
workspace-settings,settings-split-screen) - Two-column responsive layout with vertical section navigation and form controls. Supports density controls (compactfor high-density enterprise tools,comfortablefor standard interfaces).
basecoat_compose_stack- Dynamically composes 45 pre-built component stacks across 7 categories (shell-stacks,header-stacks,kpi-stacks,chart-stacks,table-stacks,overlay-stacks,form-stacks) into canonical shells (sidebar-01..sidebar-16,topbar-shell,inset-shell,split-shell) with automated slot hydration.basecoat_rules_enforcer- Enforces strict technical constraints acrosstailwind-v4,fsm-contracts,tokens,semantic-html, anddashboard-patterns:MET-01: KPI numerals requiretext-2xl/text-3xlwithtabular-numsand semantic trend indicators.TBL-01: Data tables require<div class="overflow-x-auto">wrapper, sticky blurred<thead class="sticky top-0 bg-background/90 backdrop-blur">, and right-aligned numeric cells.FRM-01: Input controls require<div class="field">wrappers with associated<label class="label" for="id">.NAV-01: Headers must use compacth-12orh-14(forbidding oversizedh-16).TW4-01: Rejects deprecated Tailwind v3 utilities (bg-opacity-*,flex-shrink-*,@tailwinddirectives).TOK-01: Rejects arbitrary bracket dimensions (w-[327px]) and hardcoded hex colors (#ff0000,bg-[#123456]).FSM-01: Enforces finite state machine contracts on interactive primitives (dialog,dropdown-menu,accordion,tabs).
basecoat_creative_director- Surfaces Kanso minimalism and Basecoat design intelligence:Density profiles:
compact(p-4 gap-4, header h-12, table py-2),standard(p-6 gap-4/gap-6, header h-14, table py-3), andcomfortable(p-6 md:p-8, header h-14).Mathematical 4px/8px optical rhythm grid and typography ladders (
tabular-numson all metrics and numeric table cells).Subtle 1px card ring elevation without conflicting
borderutilities.WCAG 2.1 AA (contrast >= 4.5:1) and APCA ($L_c \ge 60$) token pairings.
basecoat_component_syntax- Delivers copy-pasteable HTML or Astro component markup fromsrc/registry/components.jsonwith pre-configured FSM state variants (default,active,loading,disabled,open,closed,open/closed), verified inline SVG action icons (plus,edit,trash,search,chevron-down,check,external-link), and composite component patterns:metric-card(metrics-summary,kpi-card) - Stat card with tabular-nums numeral and trend badge.data-table(datatable) - Sticky header table wrapped inoverflow-x-autowith right-aligned numeric cells.sidebar-shell(sidebar-dashboard-shell) - Desktop sticky navigation with responsive flyout belowmd.
basecoat_quality_inspector- Audits HTML/Astro compositions against dashboard audit rules:table-overflow-wrapper,kpi-metric-tabular-nums,table-numeric-alignment,a11y-focus-ring(flaggingoutline-nonewithout focus visible ring), arbitrary color/dimension violations, and WCAG/APCA contrast pairings. Returnsscore(0-100), lettergrade(A-F), structured issues, and actionableautoFixSuggestions.
Theme-Aware Charts and Data Visualization
basecoat_list_charts- Discovers and filters 56 theme-aware chart blueprints across 7 categories (area,bar,line,pie,radar,radial,tooltip) with keywordsearch/query, layout footprint (layoutFootprint),requiredTokens, and variant summaries.basecoat_get_chart_blueprint- Retrieves chart container HTML (chart-container,role="img", accessible<table class="sr-only">fallback, and glassmorphic tooltip markup withbg-background/95 backdrop-blur-sm), CSS tokens (var(--chart-1)throughvar(--chart-5),var(--color-border),var(--color-muted-foreground)), clientoptions,layoutFootprint, and framework mount code for 5 frameworks (vanilla,astro,react,vue,svelte) with optionalthemeTokensoverrides. AcceptschartIdor aliasid(defaults toarea-default). Integrated directly intodashboard-01andsvg-area-chart(data-chart-id="area-interactive"). Generated deterministically vianode scripts/ingest-shadcn-charts.mjs.
Component tools
search_componentsreturns up to 8 compact{id, name, intent}summaries across the 62 curated components and never returns markup.intentandqueryare optional; an empty search returns an empty list.get_component_detailsreturns one Astro or HTML template with dependencies and composition guidance. Oversized entries fail closed.theme-toggleresolves totheme-switcher.get_component_htmlreturns the HTML markup template and dependencies for any curated component (environmentdefaults tohtml).validate_compositionstatically checks up to 256 KiB (262,144 UTF-8 bytes) of HTML or Astro source and returns at most 24 issues (including WCAG 2.1 / APCA token contrast, arbitrary dimensions, dialog focus traps, andaria-controlsbindings). Passcodeorhtml, and optionalsemanticProfileordensityProfile(comfortable|compact). It does not render, execute, resolve application modules, or certify runtime browser accessibility.validate_markupstatically validates HTML/Astro source syntax, container tags, landmark ordering, and semantic constraints against Basecoat guidelines.
Macro tools
The macro layer is this project's curated, project-specific composition system for shells, auth flows, data workspaces, slots, ports, rules, and recipes. It is compiled into a pinned registry snapshot. These layout contracts are not supplied automatically by shadcn or by MCP.
search_macro_blocks- find compatible blueprint blocks by query, role, family, or tag across 84 blocks and aliases.get_macro_block- read a block section such asmanifest,structure,slots,ports,rules,dependencies, orprovenance.begin_design- create a persistent design session and pin its profile and registry revision. Pinned registries are hash-verified on load.get_design_context- read session lists or focused views such asoverview,graph,rules,focus, andnext.apply_design_patch- apply atomic graph changes withexpectedRevisionand an idempotentoperationId. A committed mutation always returns a success acknowledgement; oversized optional payload may be omitted withtruncated: true.validate_design- validate a draft or complete design graph and page its diagnostics.
Design sessions persist under <project-root>/.basecoat/designer/. Registry revisions are content-addressed; a session keeps using its pinned revision even after the package snapshot changes. Design snapshots use the form d:<designId>@<revision>.
Curated block blueprints (84 blocks and aliases including translated shadcn/ui v4 blocks):
Canonical Shells & Sidebars:
sidebar-01throughsidebar-16,sidebar-dashboard-shell,sidebar-inset-shell,sidebar-collapsible-icon,sidebar-mobile-flyout,sidebar-nav,topbar-shell,topbar-nav,app-shell,page-header.Dashboards & Workspaces:
dashboard-01throughdashboard-07,dashboard-workspace,dashboard-main,dashboard-activity,analytics,analytics-workspace,ecommerce-overview,tasks,tasks-table-workspace,mail,mail-workspace.Metrics & Data Tables:
metrics-summary,data-table-rich,data-table,data-table-detail-layout,data-workspace,data-bulk-actions,data-filters,data-pager,products,billing,settings.Forms & Authentication:
login-01throughlogin-05,signup-01throughsignup-05,otp-01throughotp-05,form-field-group,forms,form-section,authentication,auth-sign-in,auth-sign-up,auth-split-screen,auth-recovery,auth-reset.Charts & Feedback:
svg-area-chart,empty-state,error-boundary,newsletter-waitlist,pricing-tiers,segmented-toggle,detail-drawer-panel,product-detail-layout,settings-workspace.
Multi-block recipes (11 page recipes):
workspace-dashboard- full analytics dashboard (KPI cards, activity chart, records table).ecommerce-overview- e-commerce operational dashboard with order metrics and product highlights.analytics-workspace- analytics dashboard with time-series charts and cohort views.workspace-settings- application shell with navigation, header, and settings workspace tabs.workspace-detail/tasks-table-workspace- data table workspace with slide-over detail inspection drawer.mail-workspace- multi-pane email client layout with inbox list and detail view.auth-flow- bidirectional authentication flow between sign-in and sign-up cards.auth-split-flow- split-screen auth frame pairing sign-in and sign-up with hero media.data-records- records page with filters, table, and pager.marketing-pricing- 3-tier pricing table paired with newsletter/waitlist banner.
Semantic tools
The semantic layer provides compiled rhythm profiles and finite state machine recipes:
get_rhythm_rules- access approved spacing, typography, surfaces, borders, and layout patterns by profile and family filters.get_fsm_recipe- read interaction states, events, transitions, guards, and actions fordialog,navigation(collapsible-navigation),auth-flow, andtabs.
Semantic tools use the same bounded pagination as macro tools. Each rhythm record keeps the semantic token ID separate from its approved Tailwind utility. Put the utility in class; keep the semantic ID in design metadata and agent reasoning. Project overrides from <project-root>/.basecoat/rhythm.json are reflected in an effective content ref and revision. FSM recipes are structural metadata, not runtime implementations.
End-to-end example
A dashboard page can follow this sequence:
get_design_context(view="sessions")
begin_design(designId="admin", profile="app-default", operationId="begin-admin")
get_rhythm_rules(profile="default", family="density")
search_macro_blocks(q="shell", limit=8)
apply_design_patch(
designId="admin",
expectedRevision=0,
operationId="add-dashboard",
operations=[{ op: "instantiate_recipe",
recipe: "workspace-dashboard",
pagePrefix: "admin" }]
)
get_design_context(view="overview", designId="admin")
get_macro_block(idOrRef="app-shell", section="structure", designId="admin")
get_fsm_recipe(recipe="dialog", section="transitions")Implement the selected component leaves in the host project, then record completed regions with apply_design_patch(record_written). Finish with validate_design(mode="complete") and validate_composition on the generated Astro or HTML source. After a conflict or restart, reread the session and use the returned revision and cursors.
Copy templates/cursor/basecoat-designer.mdc into a host project's .cursor/rules for agent guidance. The MCP server does not write consumer application source files.
Auditing or restyling an existing UI
No design session is needed. Read basecoat://design/theming and basecoat://design/rhythm, call get_component_details for each control you change, then run validate_composition on the rendered layout source including <head> scripts and <style>. Theme rules:
theme-strategy-mixed-@media (prefers-color-scheme: dark)combined with the.darkclass strategy (dark tokens leak into light mode).theme-storage-key- a theme script persists under a key other than Basecoat'sthemeMode, creating a second resolver that drifts fromwindow.basecoat.theme.
Check light and dark screenshots with an OS dark preference and empty localStorage before deploying.
Source adaptation and offline import
The macro importer is intentionally local-first. It accepts a checked-out or otherwise
locally saved shadcn-style registry-item.json, a reviewed mapping, and a local
dependency lock:
npm run import:blocks -- \
--item=/path/to/registry-item.json \
--mapping=/path/to/mapping.json \
--lock=/path/to/dependency-lock.json \
--dry-runThis command does not fetch live shadcn registry items, install packages, execute upstream code, or make runtime network requests. Unknown, unlocked, or explicitly unsupported dependencies produce diagnostics instead of guesses. Omitted OAuth, captcha, session, credential, and other application features are reported as obligations. The importer emits only the curated structural block; the host application must implement the runtime behavior.
The mapping and resulting provenance make the boundary explicit: shadcn-style source is an input reference, while layout contracts, slots, ports, rules, and recipes are curated adaptations owned by this project's macro layer. They are not features provided by shadcn or by MCP. Upstream refreshes are separate maintainer authoring operations and never occur from the MCP server.
Basecoat MCP resources
The server exposes 8 authoritative MCP resources spanning the 3-pillar Skill Vault, core design system contracts, multi-framework integration guides, and live host project context:
Complete MCP Resource Table
Resource URI | Category | Description | MIME Type |
| Skill Vault | Core Basecoat UI design philosophy, Kanso minimalism, and foundational component usage |
|
| Skill Vault | Comprehensive dashboard architecture, layout patterns, page types, sidebar configurations, and audit checklists |
|
| Skill Vault | Theme-aware chart blueprints, CSS token mapping (--chart-1..5), ApexCharts configuration, and multi-framework integration |
|
| Skill Vault | Dynamic file access resource to read individual documentation and reference markdown files across the 96-file Skill Vault |
|
| Design System | Content hierarchy, 4px/8px optical spacing rhythm, typography ladders, density profiles, and structural composition rules |
|
| Theming & Dark Mode | Basecoat OKLCH token contract, 8 official style packs (Vega..Rhea), class-based dark mode (themeMode resolver), and no-flash bootstrap |
|
| Integration Guide | Production integration guide covering Astro, Next.js, Express, Vite, Tailwind CSS 4 setup, and framework-agnostic HTML |
|
| Project Context | Live on-demand read of the host project's DESIGN.md (bounded to 6,000 UTF-8 bytes) |
|
basecoat://skills/coreprovides foundational guidelines for building clean, minimal interfaces using Basecoat CSS, including design philosophy, atomic styling principles, and component construction.basecoat://skills/dashboardprovides enterprise dashboard architecture, navigation patterns, data display conventions, form layouts, and accessibility checklists.basecoat://skills/chartsprovides complete guidance on theme-aware ApexCharts and SVG data visualization using pure Basecoat CSS color tokens (var(--chart-1)throughvar(--chart-5)) across 5 frameworks.basecoat://skills/files/*enables dynamic lookup and retrieval of any specific markdown file within the 96-file Skill Vault (skills/basecoat,skills/basecoat-dashboard,skills/basecoat-charts).basecoat://design/rhythmprovides content hierarchy, spacing, typography, component-family, and structural composition rules.basecoat://design/themingprovides the Basecoat token contract, all 8 official style packs (Vega, Nova, Maia, Lyra, Mira, Luma, Sera, Rhea), class-based dark mode viawindow.basecoat.theme(themeModekey), no-flash bootstrap, and form-control/autofill pitfalls. Read it before restyling or auditing an existing UI.basecoat://integration/frameworksprovides Astro, Next.js, Express, Vite, Tailwind CSS 4 (including style pack imports like@import "basecoat-css/vega";), selective Basecoat JavaScript, and native dialog setup.basecoat://project/contextreads the configured host project'sDESIGN.mdon demand. Output is capped at 6,000 UTF-8 bytes and truncates on a newline or sentence boundary when possible. Symlinks and non-regular files are refused.
Recommended flow:
Read the rhythm and project-context resources.
Decide content hierarchy and layout.
Search summaries, then request details only for selected components.
Read the integration resource when connecting production assets.
Validate the final source.
Minimal HTML example
The host application supplies its compiled Tailwind and Basecoat stylesheet:
<link rel="stylesheet" href="/assets/basecoat.css">
<button type="button" class="btn" data-variant="default">Save changes</button>Header Control Cluster (Style Preset Selector + Theme Switcher)
<div class="flex items-center gap-2">
<select id="style-variant-select" class="select h-8 w-28 text-sm leading-none" aria-label="Style pack">
<option value="vega">Vega</option>
<option value="nova">Nova</option>
<option value="maia">Maia</option>
<option value="lyra">Lyra</option>
<option value="mira">Mira</option>
<option value="luma">Luma</option>
<option value="sera">Sera</option>
<option value="rhea">Rhea</option>
</select>
<button type="button" aria-label="Toggle dark mode" data-tooltip="Toggle dark mode" data-side="bottom" onclick="window.basecoat.theme.toggle()" class="btn size-8" data-variant="outline" data-size="icon">
<span class="hidden dark:block" aria-hidden="true"><svg class="lucide lucide-sun size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2m-7.07-2.93 1.41-1.41m11.32-11.32 1.41-1.41M2 12h2m16 0h2m-2.93 7.07-1.41-1.41M6.34 6.34 4.93 4.93"/></svg></span>
<span class="block dark:hidden" aria-hidden="true"><svg class="lucide lucide-moon size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"/></svg></span>
</button>
</div>Basecoat 1.x uses btn with data-variant and data-size. Interactive components list the granular JavaScript modules the host must load.
Macro-Driven Dashboard Generation
The MCP server provides a robust set of macro layouts (search_macro_blocks) that enable connected LLMs to predictably assemble complex layouts (like Shadcn dashboards) out-of-the-box.
Layout Neutrality: Supports both sidebar (
sidebar-dashboard-shell,sidebar-inset-shell) and top-bar architectures (topbar-shell,topbar-nav).Strict Validation: The
validate_compositiontool ensures that generated layouts adhere to the Basecoat CSS theming contracts, strict spacing rhythm scales (0, 2, 4, 6, 8, 12), and proper landmark accessibility.Agent Guidance: LLMs are encouraged to use
search_macro_blocksto find ashell(layout wrapper), anddashboard-mainordashboard-workspaceto populate themaincontainer, guaranteeing deterministic, pixel-perfect Shadcn/ui parody without React runtime artifacts.
Registry and exclusions
The checked-in registry contains 62 curated components: all 57 shadcn/ui New York v4 primitives adapted for pure Basecoat CSS without React, plus Basecoat extensions (theme-switcher, segmented-toggle, svg-area-chart, native-select) with explicit FSM state contracts:
accordion, alert, alert-dialog, aspect-ratio, avatar, badge, breadcrumb, button, button-group, calendar, card, carousel, chart, checkbox, collapsible, combobox, command, context-menu, data-table, date-picker, dialog, drawer, dropdown-menu, empty, field, form, hover-card, input, input-group, input-otp, item, kbd, label, menubar, native-select, navigation-menu, pagination, popover, progress, radio-group, resizable, scroll-area, segmented-toggle, select, separator, sheet, sidebar, skeleton, slider, sonner, spinner, svg-area-chart, switch, table, tabs, textarea, theme-switcher, toast, toggle, toggle-group, tooltip
Comprehensive Catalog Counts
62 Curated Components: All 57
shadcn/uinew-york-v4 primitives plus Basecoat extensions with verified HTML/Astro markup templates, zero React bundling requirements, and finite state machine (FSM) contracts.84 Macro Blocks & Aliases: Layout blueprints covering
sidebar-01..16,dashboard-01..07,login-01..05,signup-01..05,otp-01..05,mail,tasks,forms,products,analytics,billing, andsettings.11 Page Recipes: End-to-end multi-page layout graphs (
workspace-dashboard,ecommerce-overview,analytics-workspace,workspace-settings,workspace-detail,tasks-table-workspace,mail-workspace,auth-flow,auth-split-flow,data-records,marketing-pricing).45 Composable Component Stacks: Composable stacks across 7 categories (
shell-stacks,header-stacks,kpi-stacks,chart-stacks,table-stacks,overlay-stacks,form-stacks) with slot hydration into canonical shells.56 Theme-Aware Chart Blueprints: Visualizations across 7 categories (
area,bar,line,pie,radar,radial,tooltip) mapped to CSS tokens (var(--chart-1)throughvar(--chart-5)) with mounts for 5 frameworks (vanilla,astro,react,vue,svelte).96 Markdown Files across the 3-Pillar Skill Vault: Distributed across
skills/basecoat(core foundations and 57 component guides),skills/basecoat-dashboard(dashboard architecture, block patterns, and audit checklist), andskills/basecoat-charts(ApexCharts blueprints and token mapping).
The maintenance snapshot records 41 discovered upstream components. All 57 shadcn/ui primitives are now curated with templates, dependencies, and state contracts. Slider uses basecoat-css/range, not a slider module.
The runtime has no network client, remote documentation dependency, frontend framework runtime, remote media analysis, or bundled host assets. Generated templates may not use basecoat-css/all; each controller is imported explicitly. Search results do not contain markup, newly discovered components are never auto-promoted, and JSON or HTML is never sliced to fit a response budget.
Astro and static HTML use cases
In Astro, use the integration resource for Vite, Tailwind CSS 4, CSS ordering, selective controller imports, native <dialog> wiring, and ClientRouter hooks. In static HTML, copy the listed built controller files from basecoat-css into the host application's asset directory and preserve dependency order. Chart templates require host-supplied Chart.js.
Maintainers can refresh the pinned Basecoat snapshot only with an explicit immutable
commit source, for example npm run sync -- --ref <40-character-commit-sha>.
This is the only command that uses HTTPS. It validates schema, exports, notices,
response budgets, version direction, and atomic replacement before changing the
registry. It does not refresh shadcn mappings or macro blocks.
Development and verification
Install dependencies with npm ci, then run the focused checks:
npm run check
npm pack --dry-run
npm audit --omit=devnpm run check type-checks, verifies both compiled snapshots, builds and runs
the Node test suite, and checks the branch diff for whitespace errors. The test
suite also exercises the packed read-only MCP bin offline. npm pack --dry-run
checks the package file allowlist without retaining a tarball.
npm audit --omit=dev checks production dependencies against the npm advisory
database and therefore requires network access. Maintainers can
verify the pinned Basecoat source with:
For release parity evidence, run the local-only routine before and after any approved publication:
npm run release:check -- --phase=pre-release --write=tmp/release-pre.json
npm run release:check -- --phase=post-release --write=tmp/release-post.jsonThe routine discovers surfaces from current repository metadata, compares local
authoritative values, and records current, expected, correction, status,
and verification. It checks package identity, server manifest parity, stdio
transport, advertised capabilities, install metadata, and restrained
discoverability copy. It never performs network requests or external writes;
GitHub, npm, the MCP Registry, and directory/catalog corrections remain
explicitly approved manual actions. Do not treat badges, download counts,
upstream references, or search-result snippets as release authority.
npm run sync -- --ref <40-character-commit-sha> --checkThe sync command is the only network boundary. Macro authoring changes require
npm run compile:blocks; review the generated
src/macros/registry.snapshot.json and then run
npm run compile:blocks:check.
Contributing
Create a focused branch from the default branch.
Keep component templates, macro contracts, and documentation aligned with checked-in source.
Run
npm run typecheck,npm run compile:semantics:check,npm run compile:blocks:check, andnpm run test.Run
npm pack --dry-runwhen package contents or metadata change.Describe behavior changes, bounded-output effects, and any required host application work in the pull request.
Do not add GitHub Actions workflows. Upstream registry refreshes and macro authoring are maintainer-reviewed changes, not server startup tasks.
Troubleshooting
The server starts but reads the wrong project: set an absolute
--project-rootorBASECOAT_PROJECT_ROOT. The fallback is the process launch directory.DESIGN.mdis not available: place a regular file at the configured root. Parent directories and symlinks are not followed.A source checkout cannot start: run
npm run buildbeforenpm start.A macro result has a cursor: request the next page with that cursor; do not concatenate or parse partial JSON. Changed registry, design, or effective rhythm revisions make prior cursors stale.
An apply acknowledgement includes
truncated: true: the mutation committed; reread context or validation tools for the omitted detail.An importer diagnostic mentions OAuth, captcha, or an unsupported dependency: implement or resolve it in the host application or reviewed mapping. The importer does not guess runtime behavior.
A design patch conflicts: reread
get_design_context, use its current revision, and send a new uniqueoperationId.
See ARCHITECTURE.md for runtime boundaries, persistence, packet limits, and sync policy. Report reproducible defects in the issue tracker.
Author, license, and upstream attribution
Created and maintained by Žygimantas Jasiulionis / Intellmedia under the MIT License.
Basecoat UI is an independent MIT-licensed project by Ronan Berder. Adapted templates and metadata retain the complete Basecoat notice in THIRD_PARTY_NOTICES.md. Basecoat adapts design patterns from shadcn/ui; the notice preserves that attribution. No Basecoat CSS or shadcn source is vendored here.
Available Tools
33 toolsapply_design_patchAIdempotent
Apply one atomic list of design graph operations with expectedRevision and operationId. Replay with the same operationId returns the original receipt. A committed mutation always acknowledges success; oversized optional fields may be omitted with truncated:true. Does not write application source files.
Inputs: designId (required), operations (required), operationId (required), expectedRevision (required).
basecoat_component_syntaxARead-onlyIdempotent
[STAGE 3: SYNTAX & STACKS] Retrieve copy-pasteable Basecoat component markup with pre-configured FSM state variants (default, active, loading, disabled, open, closed) and dependencies for any of the 57 Basecoat components. Next step: Call basecoat_quality_inspector to audit assembled markup.
Inputs: id, icon, name, state, +5 more.
basecoat_compose_stackARead-onlyIdempotent
[STAGE 3: SYNTAX & STACKS] Assemble full shell architectures (sidebar-01..16, topbar-shell, inset-shell, split-shell) and hydrate pre-configured component stacks (kpi-4-col-delta, area-revenue-stack, data-table-full-crud, detail-inspector-drawer, field-group-settings) into slots with optical density control. Next step: Call basecoat_quality_inspector to verify markup compliance.
Inputs: id, name, shell, title, +6 more.
basecoat_creative_directorBRead-onlyIdempotent
[STAGE 2: RULES & RHYTHM] Surface Kanso minimalism and Basecoat design intelligence: typography ladders, optical spacing rhythm, whitespace density, contrast ratios, style packs, and subtle elevation strategies. Next step: Call basecoat_compose_stack or basecoat_component_syntax.
Inputs: id, name, topic, density, +4 more.
basecoat_get_chart_blueprintARead-onlyIdempotent
[STAGE 3: SYNTAX & STACKS] Retrieve complete chart markup, CSS theme tokens (--chart-1..5), layout footprint, client options, and framework mount code (vanilla, astro, react, vue, svelte) with optional theme token overrides for a specific chart blueprint ID or category. Next step: Call basecoat_quality_inspector to audit the assembled page.
Inputs: id, name, engine, chartId, +4 more.
basecoat_list_chartsARead-onlyIdempotent
[STAGE 3: SYNTAX & STACKS] List and filter 50+ Basecoat ApexCharts and SVG data visualization blueprints by category (area, bar, line, pie, radar, radial, tooltip) or keyword search/query. Next step: Call basecoat_get_chart_blueprint with the selected chart ID.
Inputs: id, name, query, search, +2 more.
basecoat_page_architectARead-onlyIdempotent
[STAGE 1: ARCHITECT] Search and retrieve complete layout scaffolds (Workspace Dashboard, Auth Split-Screen, Data Table Detail, Workspace Settings, Pricing, etc.) with explicit slot markers, grid structures, and responsive containers. Next step: Call basecoat_rules_enforcer and basecoat_creative_director, then basecoat_compose_stack or basecoat_component_syntax.
Inputs: id, name, block, intent, +4 more.
basecoat_quality_inspectorBRead-onlyIdempotent
[STAGE 4: QUALITY AUDIT] Audit HTML/Astro markup and return a structured quality report with Score (0-100), Syntax Violations, Accessibility/ARIA omissions, and Auto-Fix suggestions. Final quality gate for all generated Basecoat UI code.
Inputs: id, code, html, name, +6 more.
basecoat_rules_enforcerBRead-onlyIdempotent
[STAGE 2: RULES & RHYTHM] Retrieve indexed technical implementation constraints covering strict Tailwind CSS v4 syntax, mandatory FSM data-state contracts, semantic CSS variable tokens, and semantic HTML landmarks. Next step: Call basecoat_creative_director or basecoat_component_syntax.
Inputs: id, code, html, name, +4 more.
basecoat_setup_configARead-onlyIdempotent
[STAGE 1: ARCHITECT] Generate production Tailwind CSS v4 @import statements, OKLCH design tokens, @theme inline blocks, and theme bootstrap scripts for a selected framework (astro, vanilla, nextjs, sveltekit, vite, htmx) and style pack (vega, nova, maia, lyra, mira, luma, sera, rhea). Next step: Call basecoat_compose_stack or basecoat_page_architect.
Inputs: id, name, framework, stylePack, +3 more.
begin_designAIdempotent
Create a persistent design session under the host project root. Pass designId, profile (alias or ref), operationId, and optional decisions. Pins and hash-verifies the packaged macro registry. Idempotent for the same operationId. Oversized optional receipt fields may be omitted with truncated:true after commit.
Inputs: profile (required), designId (required), operationId (required), decisions.
compose_stackARead-onlyIdempotent
[STAGE 3: SYNTAX & STACKS] Alias of basecoat_compose_stack. Assemble shell architectures and hydrate pre-configured component stacks into slots.
Inputs: id, name, shell, title, +6 more.
enforce_rulesCRead-onlyIdempotent
[STAGE 2: RULES & RHYTHM] Alias of basecoat_rules_enforcer. Retrieve indexed technical implementation constraints.
Inputs: id, code, html, name, +4 more.
get_chart_blueprintBRead-onlyIdempotent
[STAGE 3: SYNTAX & STACKS] Alias of basecoat_get_chart_blueprint. Retrieve complete chart markup, CSS theme tokens, and client options.
Inputs: id, name, engine, chartId, +4 more.
get_component_detailsARead-onlyIdempotent
Get one minimal component template, dependencies, and composition tips for Astro or HTML. Valid IDs: any of the 57 Basecoat components (button, card, dialog, dropdown-menu, table, tabs, badge, etc.). When called with {}, returns the top-level component catalog index. Next step: Call validate_composition or basecoat_quality_inspector after integrating markup.
Inputs: id, name, componentId, environment.
get_component_htmlARead-onlyIdempotent
Fetch HTML markup template and dependencies for a Basecoat component. Valid IDs: any of 57 Basecoat components. When called with {}, returns the top-level component catalog index. Next step: Call validate_composition or basecoat_quality_inspector to audit.
Inputs: id, name, componentId, environment.
get_component_syntaxARead-onlyIdempotent
[STAGE 3: SYNTAX & STACKS] Alias of basecoat_component_syntax. Retrieve copy-pasteable Basecoat component markup with FSM state variants.
Inputs: id, icon, name, state, +5 more.
get_creative_directionCRead-onlyIdempotent
[STAGE 2: RULES & RHYTHM] Alias of basecoat_creative_director. Surface Kanso minimalism and Basecoat design intelligence.
Inputs: id, name, topic, density, +4 more.
get_design_contextARead-onlyIdempotent
Read a focused design view: sessions (no designId), overview, decisions, graph, rules, focus, or next. Pin revision on first read; continuations must match. Does not create sessions.
Inputs: id, name, view, cursor, +6 more.
get_design_rulesARead-onlyIdempotent
Retrieve technical implementation constraints covering Tailwind CSS v4 syntax, mandatory FSM data-state contracts, semantic CSS variables, and HTML landmarks. When called with {}, returns the top-level catalog index.
Inputs: id, code, html, name, +6 more.
get_fsm_recipeBRead-onlyIdempotent
Read finite FSM states, events, guards, actions, or transitions. Recipes are structural metadata, not executable runtime code.
Inputs: id, name, limit, cursor, +4 more.
get_macro_blockARead-onlyIdempotent
Retrieve one section of a compiled macro block blueprint (manifest, structure, slots, ports, rules, dependencies, provenance). Follow next cursors until complete. Optional designId pins aliases to that session registry.
Inputs: id, name, cursor, idOrRef, +4 more.
get_page_architectBRead-onlyIdempotent
[STAGE 1: ARCHITECT] Alias of basecoat_page_architect. Search and retrieve complete layout scaffolds with explicit slot markers.
Inputs: id, name, block, intent, +4 more.
get_rhythm_rulesARead-onlyIdempotent
Read the effective semantic rhythm profile by family, including project-local overrides under a contained .basecoat/rhythm.json. Semantic IDs and approved implementation utilities are returned separately. Results are content-addressed and cursor-paginated; changed effective revisions invalidate prior cursors.
Inputs: id, name, limit, cursor, +4 more.
inspect_qualityBRead-onlyIdempotent
[STAGE 4: QUALITY AUDIT] Alias of basecoat_quality_inspector. Audit HTML/Astro markup and return a structured quality report.
Inputs: id, code, html, name, +6 more.
list_blocksARead-onlyIdempotent
Alias of search_macro_blocks. Search or list approved macro layout blocks by query, role, family, or tag. When called with {}, returns the top-level macro block catalog index.
Inputs: q, id, tag, name, +10 more.
list_chartsBRead-onlyIdempotent
[STAGE 3: SYNTAX & STACKS] Alias of basecoat_list_charts. List and filter 50+ Basecoat ApexCharts and SVG data visualization blueprints.
Inputs: id, name, query, search, +2 more.
search_componentsARead-onlyIdempotent
Find up to 8 compact component summaries by intent and/or query (either field may be omitted). Valid component IDs include: button, card, dialog, dropdown-menu, table, tabs, badge, avatar, input, select, etc. Next step: Call get_component_details or basecoat_component_syntax with the selected component id.
Inputs: id, name, query, intent, +2 more.
search_macro_blocksARead-onlyIdempotent
Search approved macro layout blocks by query, role, family, or tag. Optional design/page/slot context filters to slot-compatible roles. Returns summaries and immutable refs only; use cursors for more.
Inputs: q, id, tag, name, +10 more.
setup_configBRead-onlyIdempotent
[STAGE 1: ARCHITECT] Alias of basecoat_setup_config. Generate production Tailwind CSS v4 setup, OKLCH tokens, and theme scripts.
Inputs: id, name, framework, stylePack, +3 more.
validate_compositionARead-onlyIdempotent
[STAGE 4: QUALITY AUDIT] Statically check HTML/Astro source for Basecoat migration errors, semantic rhythm, FSM bindings, missing scripts, nested cards, spacing and hierarchy issues. Pass code or alias html and optionally a semanticProfile and densityProfile. Does not render or evaluate dynamic code. Next step: Fix any errors/warnings reported in the diagnostic output.
Inputs: code, html, densityProfile, semanticProfile.
validate_designARead-onlyIdempotent
Validate a design session (or one page) in draft or complete mode. Returns totals plus paginated diagnostics. A plan-ready graph is not proof of rendered correctness.
Inputs: designId (required), mode, cursor, pageId, +1 more.
validate_markupARead-onlyIdempotent
[STAGE 4: QUALITY AUDIT] Alias of validate_composition. Statically check HTML/Astro source for Basecoat migration errors, semantic rhythm, FSM bindings, missing scripts, nested cards, spacing and hierarchy issues. Next step: Fix any errors/warnings reported in the diagnostic output.
Inputs: code, html, densityProfile, semanticProfile.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 33 tools
Several tools are explicit aliases (validate_composition/validate_markup, basecoat_setup_config/setup_config, basecoat_page_architect/get_page_architect), and the component-retrieval cluster (search_components, get_component_details, get_component_html, basecoat_component_syntax, get_component_syntax) has heavily overlapping purposes. An agent must guess which of several near-identical tools to call.
Names mix conventions: some are bare snake_case (search_components, validate_markup, begin_design) while others carry a basecoat_ prefix (basecoat_setup_config, basecoat_quality_inspector), and the aliases use entirely different stems for the same operation. Verb styles vary across get/search/fetch/read/apply.
33 tools is heavy for the scope, and roughly half are declared aliases of other tools, which inflates the surface without adding capability. The genuine functional set is closer to 18-20, making this bloated.
The workflow surface is fairly complete: setup config, page scaffolds, rules/rhythm, component and chart retrieval, stack composition, design sessions, macro blocks, and a quality audit gate. Minor gaps like no explicit delete/update for design graph artifacts, but the generation lifecycle is well covered.
Maintenance
Related MCP Connectors
Live React design-system APIs, patterns, and code validation so AI agents build real UI, not slop.
Access and maintain design system docs, tokens, components, skills, and contexts across any project.
Find, read and install shadcn components with Salesforce Lightning's look, for Radix and Base UI.
AI-native Git-based CMS for Astro. Create and publish content in the browser, without learning git.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides programmatic access to 30+ Basecoat CSS (HTML port of ShadCN UI) components with usage documentation, setup scripts, and theme switching code. Enables AI assistants to help developers build accessible HTML interfaces with forms, navigation, feedback, interactive, and layout components.772 npm16MIT
- AlicenseAqualityBmaintenanceLocal-first visual design workspace for AI assistants. Compose wireframes and branded multi-page HTML/CSS documents with live preview, annotations, brand and asset libraries, typed data collections, layout validation, PDF export, and draft-only Gmail handoff.1621MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI coding assistants to inspect frontend projects, search a curated design and motion recipe catalog, prepare and preview structured design plans, apply changes with backups and rollback, capture previews, audit UI accessibility and performance, and monitor activity via a web dashboard.-
- AlicenseNot gradedqualityBmaintenanceEnables AI coding assistants to generate bespoke design systems by synthesizing OKLCH color palettes, chamfer highlights and spring physics, teaching layout composition grammar, and returning micro-interaction primitives and component blueprints. Also audits JSX/TSX/HTML through a senior design director's lens to score and critique UI quality.1MIT