Loading...
Loading...
> AI-powered development with Fabrk design system knowledge.
The Model Context Protocol (MCP) server gives AI assistants deep knowledge of the Fabrk design system. When connected, your AI tool understands our terminal aesthetic, knows all 78+ components, and generates code that follows design rules automatically. No more manually correcting rounded corners or fixing color tokens.
DESC: The easiest way to configure MCP. Run this from your project root and follow the prompts.
1$npm run mcp:setup23$# The script will:4$# 1. Build the MCP server if needed5$# 2. Ask which AI tool you're using6$# 3. Create the config file automatically78$# Supported tools:9$# - Claude Code (.mcp.json in project)10$# - Cursor (manual config)11$# - Claude Desktop (global config)
DESC: If you prefer manual setup, create .mcp.json in your project root.
1{2 "mcpServers": {3 "fabrk": {4 "command": "node",5 "args": ["./mcp-servers/fabrk/dist/index.js"]6 }7 }8}
DESC: For Claude Desktop, add to your global config file. Use the absolute path to your project.
1// macOS: ~/Library/Application Support/Claude/claude_desktop_config.json2// Windows: %APPDATA%Claudeclaude_desktop_config.json34{5 "mcpServers": {6 "fabrk": {7 "command": "node",8 "args": ["/path/to/your/project/mcp-servers/fabrk/dist/index.js"]9 }10 }11}
DESC: After adding the config, restart Claude Code or Claude Desktop. The MCP server will start automatically when you open your project.
Ask your AI to generate Fabrk-styled components. The MCP provides design context automatically.
1// Example prompt:2"Generate a pricing card component with terminal header"34// The AI will create:5import { Card, CardHeader, CardContent, CardFooter } from '@/components/ui/card';6import { Button } from '@/components/ui/button';7import { cn } from '@/lib/utils';8import { mode } from '@/design-system';910export function PricingCard({ plan, price, features }: { plan: string; price: number; features: string[] }) {11 return (12 <Card className={cn('border border-border', mode.radius)}>13 <CardHeader code="0x10" title={plan.toUpperCase()} />14 <CardContent className="space-y-4">15 <div className={cn('text-3xl font-bold', mode.font)}>16 ${price}17 <span className="text-muted-foreground text-sm">/mo</span>18 </div>19 <ul className="space-y-2">20 {features.map((feature, i) => (21 <li key={i} className={cn('text-muted-foreground', mode.font, 'text-xs')}>22 [OK] {feature}23 </li>24 ))}25 </ul>26 </CardContent>27 <CardFooter>28 <Button className={cn(mode.radius, mode.font, 'w-full text-xs')}>29 > GET STARTED30 </Button>31 </CardFooter>32 </Card>33 );34}
Generate complete pages with proper structure, imports, and components.
1// Example prompt:2"Create a dashboard page with analytics cards and a data table"34// The AI will generate a full page with:5// - Proper imports from @/components/ui/6// - Terminal-styled headers [ [0xXX] TITLE ]7// - Design token colors (bg-background, text-foreground)8// - Correct spacing (8-point grid)9// - Mobile-responsive layout
Check existing code against Fabrk design rules.
1// Example prompt:2"Validate this component: <Button className='rounded-[4px] bg-blue-500'>Submit</Button>"34// The AI will identify issues:5// ✗ Border radius should be rounded-none (terminal aesthetic)6// ✗ bg-blue-500 should be bg-primary (use design tokens)7// ✗ Button text should be "> SUBMIT" (uppercase with prefix)89// And suggest the fix:10<Button className="rounded-none bg-primary text-xs font-mono">11 > SUBMIT12</Button>
Generate Fabrk-styled components with terminal aesthetic.
ParametersScaffold complete pages using Fabrk templates.
ParametersGet detailed docs for any of the $78+ components.
ParametersCheck code against design system rules.
ParametersPrompts are step-by-step guides
Guided workflow for building a terminal-styled landing page with hero, features, pricing, and CTA sections.
ArgumentsAdd a new feature card to a dashboard. Supports analytics cards, data tables, forms, and settings panels.
ArgumentsBuild a form with Zod validation, React Hook Form, and proper terminal styling.
ArgumentsThe MCP server teaches AI these core design principles:
Always use rounded-none. Never use other border radius values like sm, md, or lg.
All text uses font-mono. Body tag has JetBrains Mono applied globally.
Use bg-background, text-foreground, border-border. Never hex values or Tailwind colors.
Buttons: '> UPPERCASE'. Labels: '[LABEL]:'. Headers: '[ [0xXX] TITLE ]'.
Spacing uses 4px, 8px, 16px, 24px, 32px. Classes: p-1, p-2, p-4, p-6, p-8.
ls mcp-servers/fabrk/dist/index.jsnpm run mcp:build"Using the Fabrk MCP server, show me the design system rules"This forces the AI to query the MCP resources before generating code.npm run mcp:setup to auto-generate the config. For Claude Desktop, make sure you're using the absolute path to your project.