Skip to content

yearn/eg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eg

design system by example with mcp server for ai integration

🚀 LFG

bun i
bun dev

🤖 MCP Server for AI Assistants

The EG design system includes a Model Context Protocol (MCP) server that exposes all components to AI assistants like Claude Code, Codex, Cursor, and VS Code.

Quick Install

Clone and build the repo:

git clone https://github.com/yearn/eg.git ~/git/eg
(cd ../eg && bun install && bun run build:mcp)

Install MCP server:

claude mcp add-json eg '{"command":"bun","args":["../eg/packages/mcp/dist/index.js"]}'

Check health:

claude mcp list

To remove:

claude mcp remove eg

To update:

(cd ../eg && git pull && bun install && bun run build:mcp)

To explore:

claude
/mcp
# find eg in the list, enter

What You Get

The MCP server provides AI assistants with:

  • React components across elements, motion, and complex components
  • Design system documentation and principles
  • CSS theme tokens and color palettes
  • Usage examples for every component
  • Installation instructions with dependencies
  • Full-text search across components

Available Components

Elements: Button, Card, Input, Switch, Textarea Motion: FlyInFromLeft, FlyInFromTop, FlyInFromBottom, ScaleIn Components: ChainIcon, ChainSelect, HoverCard, HoverSelect, Odometer, Skeleton, ThemeToggle, TokenIcon, Yearn

Testing

cd packages/mcp
bun run build
bunx @modelcontextprotocol/inspector dist/index.js

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •