adeo-mozaic-mcp

MerzoukeMansouri/adeo-mozaic-mcp

3.3

If you are the rightful owner of adeo-mozaic-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Mozaic Design System MCP Server is a work-in-progress project aimed at providing intelligent access to the Mozaic Design System for AI assistants like Claude.

Tools
5
Resources
0
Prompts
0

Mozaic MCP Server

An MCP (Model Context Protocol) server that exposes the Mozaic Design System by ADEO to Claude and other AI assistants.

View Documentation | Try the Playground

Note: This project is under active development. Contributions and feedback are welcome!

What It Does

This server indexes the entire Mozaic Design System and makes it queryable through MCP tools. AI assistants can:

  • Look up design tokens (colors, spacing, typography, etc.)
  • Get component documentation with props, slots, events, and examples
  • Search and retrieve icons with SVG/React/Vue code
  • Search documentation pages
  • Generate component code snippets

Quick Start

pnpm install
pnpm build   # Compiles TypeScript & builds the database
pnpm start   # Starts the MCP server

What's Indexed

TypeCountDescription
Design Tokens586Colors, typography, spacing, shadows, borders, screens, grid
Vue Components52Props, slots, events, examples
React Components39Props, callbacks, examples
Icons1,473SVG icons in 15 categories (354 unique, 5 sizes each)
CSS Utilities6Flexy, Container, Margin, Padding, Ratio, Scroll (500+ classes)
Documentation281MDX pages with full-text search

Documentation sources:

  • Design System docs (220 pages)
  • Vue Storybook docs (58 pages) - Getting Started, Usage guides
  • React Storybook docs (3 pages) - Getting Started, Usage guides

MCP Tools

Component Tools

ToolDescription
get_component_infoGet Vue/React component details (props, slots, events, examples)
list_componentsList framework components by category
generate_vue_componentGenerate Vue component code
generate_react_componentGenerate React component code

CSS Utility Tools

ToolDescription
get_css_utilityGet CSS utility classes and examples (Flexy, Margin, etc.)
list_css_utilitiesList available CSS utilities by category (layout, utility)

Icon Tools

ToolDescription
search_iconsSearch icons by name, type (navigation, media, social), or size (16-64px)
get_iconGet icon details with SVG markup and ready-to-use React/Vue code

Installation Tools

ToolDescription
get_install_infoGet installation commands, imports, and quick start code for a component (beta)

Other Tools

ToolDescription
get_design_tokensQuery tokens by category (color, spacing, typography, shadow, border, screen, grid)
search_documentationFull-text search across all docs

Token Categories

CategoryCountExamples
color482--color-primary-01-100, --color-button-solid-*
typography60--font-size-*, --line-height-*
spacing19$mu025 to $mu1000 (Magic Unit system)
screen12Breakpoints: s, m, l, xl, xxl
shadow3Box shadows with x, y, blur, spread, opacity
border3Border widths
radius3Border radius values
grid4Gutters, magic-unit, rem values

CSS Utilities

CSS-only layout and utility classes (no Vue/React wrapper). Use get_css_utility tool to get full class lists and examples.

UtilityCategoryDescription
FlexylayoutFlexbox 12-column grid with responsive classes
ContainerlayoutResponsive container with max-width
MarginutilityMargin utilities using Magic Unit scale
PaddingutilityPadding utilities using Magic Unit scale
RatioutilityAspect ratio utilities (16:9, 4:3, 1:1, etc.)
ScrollutilityScroll prevention utility

Architecture

┌─────────────────────────────────────────────────────────────┐
│                     Claude Desktop                          │
└─────────────────────────┬───────────────────────────────────┘
                          │ stdio
┌─────────────────────────▼───────────────────────────────────┐
│                    MCP Server                               │
│  ┌─────────────────────────────────────────────────────┐   │
│  │ Tools: get_component_info, get_css_utility, ...     │   │
│  └─────────────────────────┬───────────────────────────┘   │
│                            │                                │
│  ┌─────────────────────────▼───────────────────────────┐   │
│  │                 SQLite Database                     │   │
│  │  tokens | components | icons | css_utilities | docs │   │
│  └─────────────────────────────────────────────────────┘   │
└─────────────────────────────────────────────────────────────┘
                          ▲
                          │ build
┌─────────────────────────┴───────────────────────────────────┐
│                    Source Repositories                      │
│  mozaic-design-system  │  mozaic-vue  │  mozaic-react      │
└─────────────────────────────────────────────────────────────┘

Scripts

ScriptDescription
pnpm buildCompile TypeScript and build database
pnpm build:docsGenerate documentation diagrams
pnpm startStart the MCP server
pnpm devDevelopment mode with watch
pnpm cleanRemove dist and database
pnpm testRun unit tests
pnpm database:sanityValidate database integrity

Documentation

  • - Architecture diagrams and statistics
  • - Testing guide

Next Steps

Benchmarking: MCP vs Claude Skills

Compare performance and effectiveness of MCP server approach vs native Claude skills:

  • Define benchmark scenarios (component lookup, code generation, documentation search)
  • Measure response accuracy and completeness
  • Compare token usage and latency
  • Evaluate context window efficiency
  • Document trade-offs and recommendations

Release Process

Steps to publish the MCP server:

  • npm registry: Publish to npm (npm publish)
  • Smithery: Submit to smithery.ai MCP marketplace
  • GitHub release: Create tagged release with changelog
  • Claude Desktop config: Document installation in claude_desktop_config.json
  • Version strategy: Define semver policy for database schema changes

Future Improvements

  • Incremental database updates (avoid full rebuild)
  • Watch mode for local development
  • Caching layer for frequently accessed data
  • Support for custom/extended tokens
  • Multi-language documentation support

Version History

Compatibility with Mozaic Design System versions:

MCP ServerMozaic VersionDateChanges
1.0.02.x2024-12Initial release with Vue 3, React, CSS utils

Mozaic Repositories Indexed

RepositoryBranchDescription
mozaic-design-systemmainTokens, docs, styles
mozaic-vuemainVue 3 components
mozaic-reactmainReact components

Updating for New Mozaic Versions

When a new Mozaic version is released:

  1. Pull latest changes: pnpm build (clones/updates repos automatically)
  2. Run sanity check: pnpm database:sanity
  3. Run tests: pnpm test
  4. Update version table above
  5. Tag release: git tag vX.Y.Z

License

MIT