mozaic-mcp-server 2.0.5 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +383 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,383 @@
1
+ # Mozaic MCP Server
2
+
3
+ [![npm version](https://img.shields.io/npm/v/mozaic-mcp-server.svg)](https://www.npmjs.com/package/mozaic-mcp-server)
4
+ [![npm downloads](https://img.shields.io/npm/dm/mozaic-mcp-server.svg)](https://www.npmjs.com/package/mozaic-mcp-server)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+ [![Documentation](https://img.shields.io/badge/docs-online-blue.svg)](https://merzoukemansouri.github.io/adeo-mozaic-mcp/)
7
+
8
+ Self-contained Claude Code skills and MCP server for the [Mozaic Design System](https://mozaic.adeo.cloud/) by ADEO.
9
+
10
+ **📚 [Documentation](https://merzoukemansouri.github.io/adeo-mozaic-mcp/) • 🎮 [MCP Playground](https://merzoukemansouri.github.io/adeo-mozaic-mcp/#/playground)**
11
+
12
+ ## Overview
13
+
14
+ This package provides two complementary tools for working with the Mozaic Design System in AI assistants:
15
+
16
+ - **🤖 Claude Code Skills** - 5 interactive skills for guided component building and design token usage
17
+ - **🔌 MCP Server** - Model Context Protocol server with 11 tools for programmatic access to Mozaic resources
18
+
19
+ ### What's Included
20
+
21
+ | Resource Type | Count | Description |
22
+ |--------------|-------|-------------|
23
+ | Design Tokens | 586 | Colors, typography, spacing, shadows, borders, breakpoints |
24
+ | Components | 91 | Vue 3 and React components with full documentation |
25
+ | Icons | 1,473 | SVG icons across 15 categories |
26
+ | CSS Utilities | 6 | Flexy grid, Container, Margin, Padding, Ratio, Scroll |
27
+ | Documentation | 281 | Searchable usage guides and best practices |
28
+ | MCP Tools | 11 | Programmatic access to all resources |
29
+ | Claude Skills | 5 | Interactive workflows for Vue, React, and agnostic use |
30
+
31
+ ## Quick Start
32
+
33
+ ### Interactive Installation (Recommended)
34
+
35
+ ```bash
36
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools
37
+ ```
38
+
39
+ Use arrow keys and space to select components, then press Enter to install.
40
+
41
+ ### One-Command Installation
42
+
43
+ ```bash
44
+ # Install everything (skills + MCP server)
45
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools all
46
+
47
+ # Install only skills (for Claude Code)
48
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools skills
49
+
50
+ # Install only MCP server (for Claude Desktop)
51
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools mcp
52
+ ```
53
+
54
+ ### Check Installation Status
55
+
56
+ ```bash
57
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools list
58
+ ```
59
+
60
+ ### Try Before Installing
61
+
62
+ Test the MCP tools directly in your browser without installation:
63
+
64
+ **[🎮 Open MCP Playground](https://merzoukemansouri.github.io/adeo-mozaic-mcp/#/playground)**
65
+
66
+ The playground lets you:
67
+ - Test all 11 MCP tools interactively
68
+ - Browse components, tokens, and icons
69
+ - Generate code snippets
70
+ - Search documentation
71
+
72
+ ## Claude Code Skills
73
+
74
+ 5 self-contained skills that provide interactive workflows for building with Mozaic.
75
+
76
+ ### Available Skills
77
+
78
+ | Skill | Description | Use Case |
79
+ |-------|-------------|----------|
80
+ | **mozaic-vue-builder** | Interactive Vue 3 component generator | Building Vue apps with Mozaic |
81
+ | **mozaic-react-builder** | Interactive React/TSX component generator | Building React apps with Mozaic |
82
+ | **mozaic-design-tokens** | Design tokens and styling expert | Accessing colors, typography, spacing |
83
+ | **mozaic-css-utilities** | CSS utility classes and layouts | Building responsive layouts |
84
+ | **mozaic-icons** | Icon search and integration | Finding and using Mozaic icons |
85
+
86
+ ### How Skills Work
87
+
88
+ Skills are activated automatically in Claude Code based on context, or you can invoke them manually:
89
+
90
+ ```
91
+ User: "I need a login form with Mozaic"
92
+ ```
93
+
94
+ Claude Code will automatically activate the appropriate skill (Vue or React builder) and guide you through:
95
+ 1. Component selection
96
+ 2. Props configuration
97
+ 3. Code generation
98
+ 4. Installation instructions
99
+
100
+ **See [SKILLS.md](./SKILLS.md) for detailed documentation.**
101
+
102
+ ## MCP Server Tools
103
+
104
+ 11 programmatic tools for accessing Mozaic resources via the Model Context Protocol.
105
+
106
+ ### Available Tools
107
+
108
+ | Tool | Category | Description |
109
+ |------|----------|-------------|
110
+ | `get_design_tokens` | Tokens | Query tokens by category (colors, typography, spacing, etc.) |
111
+ | `get_component_info` | Components | Get component props, slots, events, and documentation |
112
+ | `list_components` | Components | List components by category or framework |
113
+ | `generate_vue_component` | Code Gen | Generate Vue 3 SFC code with props |
114
+ | `generate_react_component` | Code Gen | Generate React/TSX code with TypeScript |
115
+ | `search_documentation` | Docs | Full-text search across 281 documentation pages |
116
+ | `get_css_utility` | CSS | Get CSS utility classes and examples |
117
+ | `list_css_utilities` | CSS | List available CSS utilities |
118
+ | `search_icons` | Icons | Search 1,473 icons by name, type, or category |
119
+ | `get_icon` | Icons | Get icon SVG and framework code |
120
+ | `get_install_info` | Install | Get npm/yarn/pnpm installation commands |
121
+
122
+ ### Configuration
123
+
124
+ Add to your Claude Code or Claude Desktop settings:
125
+
126
+ **For Claude Code** (in `.claude/settings.json`):
127
+ ```json
128
+ {
129
+ "mcpServers": {
130
+ "mozaic": {
131
+ "command": "npx",
132
+ "args": ["-y", "mozaic-mcp-server"]
133
+ }
134
+ }
135
+ }
136
+ ```
137
+
138
+ **For Claude Desktop** (in `~/Library/Application Support/Claude/claude_desktop_config.json`):
139
+ ```json
140
+ {
141
+ "mcpServers": {
142
+ "mozaic": {
143
+ "command": "npx",
144
+ "args": ["-y", "mozaic-mcp-server"]
145
+ }
146
+ }
147
+ }
148
+ ```
149
+
150
+ ## Usage Examples
151
+
152
+ ### Using Skills in Claude Code
153
+
154
+ Skills activate automatically based on your request:
155
+
156
+ ```
157
+ You: "I need a responsive grid with 3 columns"
158
+ Claude: [activates mozaic-css-utilities skill]
159
+ Here's the Flexy grid solution...
160
+ ```
161
+
162
+ ```
163
+ You: "Add a shopping cart icon"
164
+ Claude: [activates mozaic-icons skill]
165
+ I found these cart icons...
166
+ ```
167
+
168
+ ### Using MCP Tools Programmatically
169
+
170
+ When configured, Claude can use MCP tools directly:
171
+
172
+ ```
173
+ You: "What design tokens are available?"
174
+ Claude: [calls get_design_tokens tool]
175
+ Found 586 tokens across 7 categories...
176
+ ```
177
+
178
+ ```
179
+ You: "Generate a React button component"
180
+ Claude: [calls get_component_info, then generate_react_component]
181
+ Here's your Button component with TypeScript...
182
+ ```
183
+
184
+ ## CLI Commands
185
+
186
+ The `adeo-mozaic-install-tools` CLI provides several commands:
187
+
188
+ ```bash
189
+ # Interactive mode (default)
190
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools
191
+
192
+ # Install all components
193
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools all
194
+
195
+ # Install skills only
196
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools skills
197
+
198
+ # Install MCP server only
199
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools mcp
200
+
201
+ # Check status
202
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools list
203
+
204
+ # Remove components
205
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools remove skills
206
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools remove mcp
207
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools remove all
208
+
209
+ # Show help
210
+ npx -p mozaic-mcp-server@latest adeo-mozaic-install-tools --help
211
+ ```
212
+
213
+ ## Architecture
214
+
215
+ ```
216
+ ┌─────────────────────────────────────┐
217
+ │ Claude Code / Claude Desktop │
218
+ │ │
219
+ │ ┌─────────────┐ ┌─────────────┐ │
220
+ │ │ Skills │ │ MCP Server │ │
221
+ │ │ (5 total) │ │ (11 tools) │ │
222
+ │ └─────────────┘ └─────────────┘ │
223
+ │ │ │ │
224
+ └──────────┼────────────────┼─────────┘
225
+ │ │
226
+ ▼ ▼
227
+ ┌──────────────────────────┐
228
+ │ Shell Scripts (14) │
229
+ │ ↓ sqlite3 queries │
230
+ └──────────────────────────┘
231
+
232
+ ┌──────────────────────────┐
233
+ │ SQLite Database │
234
+ │ ~/.claude/mozaic.db │
235
+ │ │
236
+ │ • 586 tokens │
237
+ │ • 91 components │
238
+ │ • 1,473 icons │
239
+ │ • 281 docs │
240
+ └──────────────────────────┘
241
+ ```
242
+
243
+ ## File Locations
244
+
245
+ After installation:
246
+
247
+ ```
248
+ ~/.claude/
249
+ ├── mozaic.db # SQLite database (all Mozaic data)
250
+ ├── skills/ # Claude Code skills
251
+ │ ├── mozaic-vue-builder/
252
+ │ ├── mozaic-react-builder/
253
+ │ ├── mozaic-design-tokens/
254
+ │ ├── mozaic-css-utilities/
255
+ │ └── mozaic-icons/
256
+ └── (Claude Code settings.json) # MCP server config
257
+
258
+ ~/Library/Application Support/Claude/
259
+ └── claude_desktop_config.json # Claude Desktop MCP config
260
+ ```
261
+
262
+ ## Development
263
+
264
+ ### Prerequisites
265
+
266
+ - Node.js ≥25.2.0
267
+ - pnpm (recommended)
268
+
269
+ ### Setup
270
+
271
+ ```bash
272
+ # Clone the repository
273
+ git clone https://github.com/MerzoukeMansouri/adeo-mozaic-mcp.git
274
+ cd mozaic-mcp-server
275
+
276
+ # Install dependencies
277
+ pnpm install
278
+
279
+ # Build the project (compiles TypeScript + builds database)
280
+ pnpm build
281
+
282
+ # Run tests
283
+ pnpm test
284
+
285
+ # Start MCP server in debug mode
286
+ pnpm start:debug
287
+ ```
288
+
289
+ ### Project Structure
290
+
291
+ ```
292
+ mozaic-mcp-server/
293
+ ├── src/ # TypeScript source code
294
+ │ ├── index.ts # MCP server entry point
295
+ │ ├── tools/ # MCP tool implementations
296
+ │ └── database/ # Database utilities
297
+ ├── skills/ # Claude Code skills
298
+ │ ├── mozaic-vue-builder/
299
+ │ │ ├── skill.md # Skill instructions
300
+ │ │ └── scripts/ # Shell scripts (4)
301
+ │ └── ... # Other skills
302
+ ├── scripts/ # Build and utility scripts
303
+ │ ├── build-index.ts # Database builder
304
+ │ └── generate-docs.ts # Documentation generator
305
+ ├── data/ # Generated database
306
+ │ └── mozaic.db
307
+ ├── repos/ # Mozaic Design System repositories (git submodules)
308
+ │ ├── mozaic-design-system/
309
+ │ ├── mozaic-vue/
310
+ │ └── mozaic-react/
311
+ ├── bin/ # CLI entry points
312
+ │ └── install.js # Installation CLI
313
+ └── website/ # Documentation website
314
+ ```
315
+
316
+ ### Building the Database
317
+
318
+ The SQLite database is built from the Mozaic Design System repositories:
319
+
320
+ ```bash
321
+ # Update submodules
322
+ git submodule update --init --recursive
323
+
324
+ # Build database
325
+ pnpm build
326
+ ```
327
+
328
+ This indexes:
329
+ - Design tokens from `mozaic-design-system/packages/tokens`
330
+ - Components from `mozaic-vue` and `mozaic-react`
331
+ - Icons from `mozaic-design-system/packages/icons`
332
+ - Documentation from all repositories
333
+
334
+ ## Contributing
335
+
336
+ Contributions are welcome! Please follow these guidelines:
337
+
338
+ 1. Fork the repository
339
+ 2. Create a feature branch (`git checkout -b feature/amazing-feature`)
340
+ 3. Commit your changes using [Conventional Commits](https://www.conventionalcommits.org/)
341
+ 4. Push to the branch (`git push origin feature/amazing-feature`)
342
+ 5. Open a Pull Request
343
+
344
+ ### Commit Convention
345
+
346
+ We use semantic versioning with conventional commits:
347
+
348
+ - `feat:` - New feature (minor version bump)
349
+ - `fix:` - Bug fix (patch version bump)
350
+ - `feat!:` or `BREAKING CHANGE:` - Breaking change (major version bump)
351
+ - `chore:`, `docs:`, `style:`, `refactor:`, `test:` - No version bump
352
+
353
+ ## Resources
354
+
355
+ ### Documentation & Tools
356
+ - **📚 Documentation**: https://merzoukemansouri.github.io/adeo-mozaic-mcp/
357
+ - **🎮 MCP Playground**: https://merzoukemansouri.github.io/adeo-mozaic-mcp/#/playground
358
+ - **GitHub**: https://github.com/MerzoukeMansouri/adeo-mozaic-mcp
359
+ - **npm**: https://www.npmjs.com/package/mozaic-mcp-server
360
+
361
+ ### Related Resources
362
+ - **Mozaic Design System**: https://mozaic.adeo.cloud/
363
+ - **MCP Protocol**: https://modelcontextprotocol.io/
364
+ - **Claude Code**: https://code.claude.com/
365
+
366
+ ## License
367
+
368
+ MIT License - see [LICENSE](LICENSE) file for details.
369
+
370
+ ## Support
371
+
372
+ For issues or questions:
373
+ - 📚 Read the [online documentation](https://merzoukemansouri.github.io/adeo-mozaic-mcp/)
374
+ - 🎮 Try the [MCP playground](https://merzoukemansouri.github.io/adeo-mozaic-mcp/#/playground)
375
+ - 🐛 Open an issue on [GitHub](https://github.com/MerzoukeMansouri/adeo-mozaic-mcp/issues)
376
+ - 📖 Check the [Skills documentation](SKILLS.md)
377
+ - 🎨 Review [Mozaic Design System docs](https://mozaic.adeo.cloud/)
378
+
379
+ ---
380
+
381
+ **Built with ❤️ for the ADEO community**
382
+
383
+ *Mozaic Design System is maintained by ADEO*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozaic-mcp-server",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "Self-contained Claude Code skills for Mozaic Design System by ADEO",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",