An MCP (Model Context Protocol) server that provides instructions and templates for building UI components following the kickstartDS Design System patterns.
This MCP server exposes tools to help LLMs understand and generate code for:
- Component Structure: Standard file organization for components
- JSON Schema First Development: Schema templates for defining component APIs
- React Patterns: Pure functional components with Context pattern
- Client-Side Behavior: Separated JavaScript for DOM interactions
- SCSS/BEM Styling: Design Token layers and BEM naming conventions
- Storybook Integration: Story templates and documentation
npm installAdd to your claude_desktop_config.json:
{
"mcpServers": {
"design-system-component-builder": {
"command": "node",
"args": ["/path/to/component-implementation-mcp/src/index.js"]
}
}
}Add to your VS Code settings:
{
"mcp.servers": {
"design-system-component-builder": {
"command": "node",
"args": ["${workspaceFolder}/src/index.js"]
}
}
}Get comprehensive instructions for building UI components. Always call this first before any component development work.
Get the standard file structure and creation order for a new component.
Generate a JSON Schema template for defining component props. The schema is the source of truth for component APIs.
Get a React component template following the Design System patterns (pure functional, forwardRef, Context pattern).
Get templates for adding client-side JavaScript behavior to components using the kickstartDS Component class.
Get SCSS templates with BEM naming and Design Token layers.
Get Storybook story templates with schema integration.
Get a defaults file template for component default props.
Get documentation on the three-layer Design Token architecture.
List all existing components in the Design System with their file structures.
Each component lives in its own folder with colocated files:
src/components/{component-name}/
├── {ComponentName}Component.tsx # React implementation
├── {ComponentName}Props.ts # TypeScript types (generated)
├── {ComponentName}Defaults.ts # Default prop values
├── {component-name}.schema.json # JSON Schema (source of truth)
├── {component-name}.scss # Component styles
├── _{component-name}-tokens.scss # Design Tokens
├── {ComponentName}.stories.tsx # Storybook stories
├── {ComponentName}.mdx # Documentation
└── js/ # Client behavior (optional)
└── {ComponentName}.client.js
Component APIs are defined in JSON Schema, then types are generated:
- Create
{component-name}.schema.json - Run
yarn schemato generate TypeScript types - Implement the component using generated types
Components are pure functions with no local state:
- Use
forwardReffor ref forwarding - Use Context pattern for component overrides
- Use
deepMergeDefaultsfor prop defaults - Client-side behavior is separated into
.client.jsfiles
Branding Tokens (--ks-brand-*)
↓
Semantic Tokens (--ks-*)
↓
Component Tokens (--dsa-*)
- kickstartDS - The underlying Design System framework
- Model Context Protocol - The protocol specification
MIT