mozaic-mcp-server 1.0.2 → 1.1.0
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.
- package/INSTALLATION.md +220 -147
- package/README.md +52 -61
- package/SKILLS.md +64 -44
- package/bin/install-skills.js +46 -0
- package/data/mozaic.db +0 -0
- package/dist/index.js +149 -0
- package/dist/index.js.map +1 -1
- package/package.json +10 -2
- package/skills/mozaic-css-utilities/scripts/get-utility.sh +77 -0
- package/skills/mozaic-css-utilities/scripts/list-utilities.sh +37 -0
- package/skills/mozaic-css-utilities/skill.md +11 -8
- package/skills/mozaic-design-tokens/scripts/get-tokens.sh +77 -0
- package/skills/mozaic-design-tokens/scripts/search-docs.sh +40 -0
- package/skills/mozaic-design-tokens/skill.md +18 -14
- package/skills/mozaic-icons/scripts/get-icon.sh +110 -0
- package/skills/mozaic-icons/scripts/search-icons.sh +54 -0
- package/skills/mozaic-icons/skill.md +13 -9
- package/skills/mozaic-react-builder/scripts/generate-component.sh +46 -0
- package/skills/mozaic-react-builder/scripts/get-component.sh +96 -0
- package/skills/mozaic-react-builder/scripts/get-install-info.sh +83 -0
- package/skills/mozaic-react-builder/scripts/list-components.sh +42 -0
- package/skills/mozaic-react-builder/skill.md +21 -17
- package/skills/mozaic-vue-builder/scripts/generate-component.sh +46 -0
- package/skills/mozaic-vue-builder/scripts/get-component.sh +113 -0
- package/skills/mozaic-vue-builder/scripts/get-install-info.sh +70 -0
- package/skills/mozaic-vue-builder/scripts/list-components.sh +42 -0
- package/skills/mozaic-vue-builder/skill.md +21 -16
package/INSTALLATION.md
CHANGED
|
@@ -1,138 +1,169 @@
|
|
|
1
1
|
# Installation Guide
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package provides **two installation modes**: Skills (recommended) and MCP Server.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Quick Install (Skills Mode - Recommended)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Install skills for Claude Code:**
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
```bash
|
|
10
|
+
npx mozaic-mcp-server install-skills
|
|
11
|
+
```
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
That's it! Skills are now available in Claude Code.
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
## Alternative Install (MCP Server Mode)
|
|
15
16
|
|
|
16
|
-
**
|
|
17
|
-
```bash
|
|
18
|
-
npx mozaic-mcp-server install
|
|
19
|
-
```
|
|
17
|
+
**Install as MCP server for Claude Desktop:**
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- `mozaic-react-builder`
|
|
24
|
-
- `mozaic-design-tokens`
|
|
25
|
-
- `mozaic-css-utilities`
|
|
26
|
-
- `mozaic-icons`
|
|
27
|
-
|
|
28
|
-
### Step 2: Configure MCP Server
|
|
29
|
-
|
|
30
|
-
Add the MCP server to your Claude Code settings:
|
|
31
|
-
|
|
32
|
-
**Option A: Using npx** (no installation needed):
|
|
33
|
-
```json
|
|
34
|
-
{
|
|
35
|
-
"mcpServers": {
|
|
36
|
-
"mozaic": {
|
|
37
|
-
"command": "npx",
|
|
38
|
-
"args": ["mozaic-mcp-server"]
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
19
|
+
```bash
|
|
20
|
+
npx mozaic-mcp-server install-mcp
|
|
42
21
|
```
|
|
43
22
|
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
# Clone and build
|
|
47
|
-
git clone https://github.com/merzoukemansouri/adeo-mozaic-mcp.git
|
|
48
|
-
cd adeo-mozaic-mcp
|
|
49
|
-
pnpm install
|
|
50
|
-
pnpm build
|
|
23
|
+
This adds the MCP server to Claude Desktop config. Restart Claude Desktop after installation.
|
|
51
24
|
|
|
52
|
-
|
|
53
|
-
```
|
|
25
|
+
## View All Commands
|
|
54
26
|
|
|
55
|
-
|
|
56
|
-
{
|
|
57
|
-
"mcpServers": {
|
|
58
|
-
"mozaic": {
|
|
59
|
-
"command": "node",
|
|
60
|
-
"args": ["/absolute/path/to/adeo-mozaic-mcp/dist/index.js"]
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
```
|
|
27
|
+
**Show help menu:**
|
|
65
28
|
|
|
66
|
-
**Option C: Using global installation**:
|
|
67
29
|
```bash
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
# Configure in Claude Code settings
|
|
30
|
+
npx mozaic-mcp-server install
|
|
71
31
|
```
|
|
72
32
|
|
|
73
|
-
|
|
74
|
-
{
|
|
75
|
-
"mcpServers": {
|
|
76
|
-
"mozaic": {
|
|
77
|
-
"command": "mozaic-mcp-server"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
```
|
|
33
|
+
## What Gets Installed
|
|
82
34
|
|
|
83
|
-
###
|
|
35
|
+
### Skills Mode (`install-skills`)
|
|
84
36
|
|
|
85
|
-
|
|
37
|
+
The installer:
|
|
38
|
+
1. Copies 5 skills to `~/.claude/skills/`
|
|
39
|
+
2. Copies the Mozaic database to `~/.claude/mozaic.db`
|
|
40
|
+
3. Makes skills immediately available (no configuration needed)
|
|
86
41
|
|
|
87
|
-
|
|
88
|
-
|
|
42
|
+
**Installed skills:**
|
|
43
|
+
- `mozaic-vue-builder` - Interactive Vue 3 component generator
|
|
44
|
+
- `mozaic-react-builder` - Interactive React/TSX component generator
|
|
45
|
+
- `mozaic-design-tokens` - Design tokens and styling expert
|
|
46
|
+
- `mozaic-css-utilities` - CSS utilities and layout systems
|
|
47
|
+
- `mozaic-icons` - Icon search and integration
|
|
89
48
|
|
|
90
|
-
|
|
49
|
+
**Database location:** `~/.claude/mozaic.db` (8.3 MB)
|
|
91
50
|
|
|
92
|
-
|
|
51
|
+
**Total size:** ~15 MB
|
|
93
52
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
53
|
+
### MCP Server Mode (`install-mcp`)
|
|
54
|
+
|
|
55
|
+
The installer:
|
|
56
|
+
1. Adds MCP server configuration to `~/.claude/config.json`
|
|
57
|
+
2. Enables 11 MCP tools in Claude Desktop
|
|
58
|
+
3. Requires Claude Desktop restart
|
|
97
59
|
|
|
98
|
-
**
|
|
60
|
+
**Database location:** Uses the package's built-in database (not copied)
|
|
99
61
|
|
|
100
|
-
##
|
|
62
|
+
## Verify Installation
|
|
101
63
|
|
|
102
|
-
|
|
64
|
+
Check that files were installed:
|
|
103
65
|
|
|
104
66
|
```bash
|
|
105
|
-
#
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
#
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
67
|
+
# Check skills
|
|
68
|
+
ls ~/.claude/skills/
|
|
69
|
+
|
|
70
|
+
# Should show:
|
|
71
|
+
# mozaic-vue-builder
|
|
72
|
+
# mozaic-react-builder
|
|
73
|
+
# mozaic-design-tokens
|
|
74
|
+
# mozaic-css-utilities
|
|
75
|
+
# mozaic-icons
|
|
76
|
+
|
|
77
|
+
# Check database
|
|
78
|
+
ls -lh ~/.claude/mozaic.db
|
|
79
|
+
|
|
80
|
+
# Should show: mozaic.db (8.3M)
|
|
114
81
|
```
|
|
115
82
|
|
|
116
|
-
|
|
83
|
+
Skills will activate automatically in Claude Code based on context.
|
|
117
84
|
|
|
118
85
|
## Uninstallation
|
|
119
86
|
|
|
120
87
|
### Remove Skills
|
|
88
|
+
|
|
121
89
|
```bash
|
|
122
|
-
npx mozaic-mcp-server uninstall
|
|
90
|
+
npx mozaic-mcp-server uninstall-skills
|
|
123
91
|
```
|
|
124
92
|
|
|
125
|
-
|
|
126
|
-
|
|
93
|
+
This removes:
|
|
94
|
+
- All 5 skills from `~/.claude/skills/`
|
|
95
|
+
- Database from `~/.claude/mozaic.db`
|
|
96
|
+
|
|
97
|
+
### Remove MCP Server
|
|
127
98
|
|
|
128
|
-
### Remove Local Installation
|
|
129
99
|
```bash
|
|
130
|
-
|
|
131
|
-
|
|
100
|
+
npx mozaic-mcp-server uninstall-mcp
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
This removes:
|
|
104
|
+
- MCP server configuration from `~/.claude/config.json`
|
|
105
|
+
- Requires Claude Desktop restart
|
|
106
|
+
|
|
107
|
+
## How It Works
|
|
108
|
+
|
|
109
|
+
### Skills Mode
|
|
110
|
+
1. **Installation**: `npx mozaic-mcp-server install-skills` runs the installer
|
|
111
|
+
2. **Skills**: Each skill contains a `skill.md` file and `scripts/` folder
|
|
112
|
+
3. **Scripts**: Bash scripts query the SQLite database and return JSON
|
|
113
|
+
4. **Database**: `~/.claude/mozaic.db` contains all Mozaic data (tokens, components, icons)
|
|
114
|
+
5. **No Server**: Everything runs locally - no MCP server configuration needed
|
|
115
|
+
|
|
116
|
+
### MCP Server Mode
|
|
117
|
+
1. **Installation**: `npx mozaic-mcp-server install-mcp` updates Claude Desktop config
|
|
118
|
+
2. **Server**: Runs as MCP server when Claude Desktop starts
|
|
119
|
+
3. **Tools**: Provides 11 MCP tools for component info, tokens, icons, etc.
|
|
120
|
+
4. **Database**: Uses package's built-in database
|
|
121
|
+
|
|
122
|
+
## Architecture
|
|
132
123
|
|
|
133
|
-
# If cloned locally
|
|
134
|
-
rm -rf /path/to/adeo-mozaic-mcp
|
|
135
124
|
```
|
|
125
|
+
~/.claude/
|
|
126
|
+
├── skills/
|
|
127
|
+
│ ├── mozaic-vue-builder/
|
|
128
|
+
│ │ ├── skill.md
|
|
129
|
+
│ │ └── scripts/
|
|
130
|
+
│ │ ├── list-components.sh
|
|
131
|
+
│ │ ├── get-component.sh
|
|
132
|
+
│ │ ├── generate-component.sh
|
|
133
|
+
│ │ └── get-install-info.sh
|
|
134
|
+
│ ├── mozaic-react-builder/
|
|
135
|
+
│ │ ├── skill.md
|
|
136
|
+
│ │ └── scripts/ (same structure)
|
|
137
|
+
│ ├── mozaic-design-tokens/
|
|
138
|
+
│ │ ├── skill.md
|
|
139
|
+
│ │ └── scripts/
|
|
140
|
+
│ │ ├── get-tokens.sh
|
|
141
|
+
│ │ └── search-docs.sh
|
|
142
|
+
│ ├── mozaic-css-utilities/
|
|
143
|
+
│ │ ├── skill.md
|
|
144
|
+
│ │ └── scripts/
|
|
145
|
+
│ │ ├── list-utilities.sh
|
|
146
|
+
│ │ └── get-utility.sh
|
|
147
|
+
│ └── mozaic-icons/
|
|
148
|
+
│ ├── skill.md
|
|
149
|
+
│ └── scripts/
|
|
150
|
+
│ ├── search-icons.sh
|
|
151
|
+
│ └── get-icon.sh
|
|
152
|
+
└── mozaic.db (SQLite database)
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Database Contents
|
|
156
|
+
|
|
157
|
+
The `mozaic.db` SQLite database contains:
|
|
158
|
+
|
|
159
|
+
| Type | Count | Description |
|
|
160
|
+
| -------------------- | ----- | --------------------------------------------------------------- |
|
|
161
|
+
| **Design Tokens** | 586 | Colors, typography, spacing, shadows, borders, screens, grid |
|
|
162
|
+
| **Vue Components** | 52 | Props, slots, events, examples |
|
|
163
|
+
| **React Components** | 39 | Props, callbacks, examples |
|
|
164
|
+
| **Icons** | 1,473 | SVG icons in 15 categories (354 unique, 5 sizes each) |
|
|
165
|
+
| **CSS Utilities** | 6 | Flexy, Container, Margin, Padding, Ratio, Scroll (500+ classes) |
|
|
166
|
+
| **Documentation** | 281 | MDX pages with full-text search |
|
|
136
167
|
|
|
137
168
|
## Troubleshooting
|
|
138
169
|
|
|
@@ -142,87 +173,129 @@ rm -rf /path/to/adeo-mozaic-mcp
|
|
|
142
173
|
```bash
|
|
143
174
|
ls ~/.claude/skills/
|
|
144
175
|
```
|
|
145
|
-
Should show
|
|
176
|
+
Should show 5 `mozaic-*` directories
|
|
146
177
|
|
|
147
178
|
2. Restart Claude Code
|
|
148
179
|
|
|
149
|
-
3. Check skill
|
|
180
|
+
3. Check skill activation - skills activate automatically based on context
|
|
150
181
|
|
|
151
|
-
###
|
|
182
|
+
### Database Not Found
|
|
152
183
|
|
|
153
|
-
|
|
184
|
+
If skills report database errors:
|
|
154
185
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
# Should start without errors
|
|
159
|
-
```
|
|
186
|
+
```bash
|
|
187
|
+
# Check database exists
|
|
188
|
+
ls -lh ~/.claude/mozaic.db
|
|
160
189
|
|
|
161
|
-
|
|
190
|
+
# If missing, reinstall
|
|
191
|
+
npx mozaic-mcp-server install-skills
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Shell Scripts Not Executable
|
|
195
|
+
|
|
196
|
+
If you see permission errors:
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
# Make all scripts executable
|
|
200
|
+
find ~/.claude/skills/mozaic-*/scripts -name "*.sh" -exec chmod +x {} \;
|
|
201
|
+
```
|
|
162
202
|
|
|
163
203
|
### Database Errors
|
|
164
204
|
|
|
165
|
-
If
|
|
205
|
+
If the database is corrupted:
|
|
166
206
|
|
|
167
207
|
```bash
|
|
168
|
-
|
|
169
|
-
|
|
208
|
+
# Uninstall and reinstall
|
|
209
|
+
npx mozaic-mcp-server uninstall-skills
|
|
210
|
+
npx mozaic-mcp-server install-skills
|
|
170
211
|
```
|
|
171
212
|
|
|
172
|
-
|
|
213
|
+
## Requirements
|
|
173
214
|
|
|
174
|
-
|
|
215
|
+
- **Node.js**: ≥18.0.0
|
|
216
|
+
- **Claude Code**: Latest version
|
|
217
|
+
- **Disk Space**: ~15 MB
|
|
218
|
+
- **OS**: macOS, Linux, Windows (with bash/WSL)
|
|
175
219
|
|
|
176
|
-
|
|
220
|
+
## Upgrading
|
|
177
221
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
222
|
+
### Upgrade Skills
|
|
223
|
+
|
|
224
|
+
To upgrade to the latest version:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
# Uninstall old version
|
|
228
|
+
npx mozaic-mcp-server uninstall-skills
|
|
229
|
+
|
|
230
|
+
# Clear npm cache (optional)
|
|
231
|
+
npx clear-npx-cache
|
|
232
|
+
|
|
233
|
+
# Install new version
|
|
234
|
+
npx mozaic-mcp-server install-skills
|
|
185
235
|
```
|
|
186
236
|
|
|
187
|
-
### MCP Server
|
|
237
|
+
### Upgrade MCP Server
|
|
188
238
|
|
|
189
|
-
|
|
190
|
-
- **Local**: ~150 MB (includes node_modules, source, database)
|
|
191
|
-
- **Global**: ~50 MB (npm global packages)
|
|
239
|
+
MCP server updates automatically when you restart Claude Desktop (it uses the latest npx version).
|
|
192
240
|
|
|
193
|
-
##
|
|
241
|
+
## Manual Installation
|
|
194
242
|
|
|
195
|
-
|
|
196
|
-
- **Claude Code**: Latest version
|
|
197
|
-
- **Disk Space**: ~60 MB for complete setup
|
|
243
|
+
### Manual Skills Installation
|
|
198
244
|
|
|
199
|
-
|
|
245
|
+
If you prefer manual installation:
|
|
200
246
|
|
|
247
|
+
1. Clone the repository:
|
|
248
|
+
```bash
|
|
249
|
+
git clone https://github.com/merzoukemansouri/adeo-mozaic-mcp.git
|
|
250
|
+
cd adeo-mozaic-mcp
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
2. Install dependencies and build:
|
|
254
|
+
```bash
|
|
255
|
+
pnpm install
|
|
256
|
+
pnpm compile
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
3. Run the installer:
|
|
260
|
+
```bash
|
|
261
|
+
node bin/install-skills.js install-skills
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
Alternatively, copy files manually:
|
|
265
|
+
|
|
266
|
+
```bash
|
|
267
|
+
# Copy skills
|
|
268
|
+
cp -r skills/* ~/.claude/skills/
|
|
269
|
+
|
|
270
|
+
# Copy database
|
|
271
|
+
cp data/mozaic.db ~/.claude/mozaic.db
|
|
272
|
+
|
|
273
|
+
# Make scripts executable
|
|
274
|
+
find ~/.claude/skills/mozaic-*/scripts -name "*.sh" -exec chmod +x {} \;
|
|
201
275
|
```
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
```
|
|
276
|
+
|
|
277
|
+
### Manual MCP Server Installation
|
|
278
|
+
|
|
279
|
+
1. Follow steps 1-2 above to build the project
|
|
280
|
+
|
|
281
|
+
2. Add to `~/.claude/config.json`:
|
|
282
|
+
```json
|
|
283
|
+
{
|
|
284
|
+
"mcpServers": {
|
|
285
|
+
"mozaic": {
|
|
286
|
+
"command": "node",
|
|
287
|
+
"args": ["/path/to/adeo-mozaic-mcp/dist/index.js"]
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
3. Restart Claude Desktop
|
|
221
294
|
|
|
222
295
|
## Next Steps
|
|
223
296
|
|
|
224
|
-
- Read [SKILLS.md](./SKILLS.md) for skill documentation
|
|
225
|
-
- Read [README.md](./README.md) for
|
|
297
|
+
- Read [SKILLS.md](./SKILLS.md) for skill documentation and usage
|
|
298
|
+
- Read [README.md](./README.md) for project overview
|
|
226
299
|
- Try the [Web Playground](https://merzoukemansouri.github.io/adeo-mozaic-mcp/#/playground)
|
|
227
300
|
|
|
228
301
|
## Support
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Mozaic
|
|
1
|
+
# Mozaic Design System Skills for Claude Code
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Self-contained Claude Code skills that provide instant access to the **Mozaic Design System** by ADEO. No MCP server configuration required!
|
|
4
4
|
|
|
5
5
|
**[View Documentation](https://merzoukemansouri.github.io/adeo-mozaic-mcp/)** | **[Try the Playground](https://merzoukemansouri.github.io/adeo-mozaic-mcp/#/playground)**
|
|
6
6
|
|
|
@@ -8,66 +8,74 @@ An MCP (Model Context Protocol) server that exposes the **Mozaic Design System**
|
|
|
8
8
|
|
|
9
9
|
## What It Does
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Five interactive skills that help you work with the Mozaic Design System directly in Claude Code. Each skill queries a local SQLite database to provide:
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
13
|
+
- Design tokens (colors, spacing, typography, etc.)
|
|
14
|
+
- Component documentation with props, slots, events, and examples
|
|
15
|
+
- Icon search with SVG/React/Vue code
|
|
16
|
+
- CSS utility classes and layout systems
|
|
17
|
+
- Code generation for Vue 3 and React/TSX
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## Available Skills
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
This package includes **5 self-contained Claude Code skills** with interactive, guided workflows:
|
|
22
22
|
|
|
23
23
|
- **`mozaic-vue-builder`** - Interactive Vue 3 component generator
|
|
24
|
-
- **`mozaic-react-builder`** - Interactive React/TSX component generator
|
|
25
|
-
- **`mozaic-design-tokens`** - Design tokens and styling expert
|
|
26
|
-
- **`mozaic-css-utilities`** - CSS utilities and layout systems expert
|
|
27
|
-
- **`mozaic-icons`** - Icon search and integration
|
|
24
|
+
- **`mozaic-react-builder`** - Interactive React/TSX component generator with TypeScript
|
|
25
|
+
- **`mozaic-design-tokens`** - Design tokens and styling expert (JSON, SCSS, CSS, JS formats)
|
|
26
|
+
- **`mozaic-css-utilities`** - CSS utilities and layout systems expert (Flexy, Margin, Padding, etc.)
|
|
27
|
+
- **`mozaic-icons`** - Icon search and integration (1,473 icons, Vue & React)
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npx mozaic-mcp-server install
|
|
32
|
-
```
|
|
29
|
+
## Installation
|
|
33
30
|
|
|
34
|
-
**
|
|
31
|
+
**Quick start - Install skills (recommended):**
|
|
35
32
|
```bash
|
|
36
|
-
|
|
37
|
-
npx mozaic-mcp-server install
|
|
38
|
-
|
|
39
|
-
# 2. Configure MCP server in Claude Code settings:
|
|
40
|
-
# Command: npx mozaic-mcp-server
|
|
41
|
-
# (or point to local installation)
|
|
33
|
+
npx mozaic-mcp-server install-skills
|
|
42
34
|
```
|
|
43
35
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
## Quick Start
|
|
47
|
-
|
|
48
|
-
### MCP Server
|
|
36
|
+
This installs all 5 skills to `~/.claude/skills/` and the database to `~/.claude/mozaic.db`. Skills work immediately in Claude Code - no configuration needed!
|
|
49
37
|
|
|
38
|
+
**Alternative - Install as MCP server:**
|
|
50
39
|
```bash
|
|
51
|
-
|
|
52
|
-
pnpm build # Compiles TypeScript & builds the database
|
|
53
|
-
pnpm start # Starts the MCP server
|
|
40
|
+
npx mozaic-mcp-server install-mcp
|
|
54
41
|
```
|
|
55
42
|
|
|
56
|
-
|
|
43
|
+
This adds the MCP server configuration to Claude Desktop settings. Requires Claude Desktop restart.
|
|
57
44
|
|
|
58
|
-
**
|
|
45
|
+
**View all commands:**
|
|
59
46
|
```bash
|
|
60
|
-
npx mozaic-mcp-server install
|
|
61
|
-
npx mozaic-mcp-server uninstall # Uninstall skills
|
|
47
|
+
npx mozaic-mcp-server install
|
|
62
48
|
```
|
|
63
49
|
|
|
64
|
-
**
|
|
50
|
+
**Uninstall:**
|
|
65
51
|
```bash
|
|
66
|
-
|
|
67
|
-
|
|
52
|
+
# Remove skills
|
|
53
|
+
npx mozaic-mcp-server uninstall-skills
|
|
54
|
+
|
|
55
|
+
# Remove MCP server config
|
|
56
|
+
npx mozaic-mcp-server uninstall-mcp
|
|
68
57
|
```
|
|
69
58
|
|
|
70
|
-
|
|
59
|
+
**Learn more:** [SKILLS.md](./SKILLS.md) | [INSTALLATION.md](./INSTALLATION.md)
|
|
60
|
+
|
|
61
|
+
## How It Works
|
|
62
|
+
|
|
63
|
+
This package provides **two ways** to access Mozaic Design System in Claude:
|
|
64
|
+
|
|
65
|
+
### Skills Mode (Recommended)
|
|
66
|
+
1. **Installation**: `npx mozaic-mcp-server install-skills` copies skills and database to your system
|
|
67
|
+
2. **Database**: Skills query a local SQLite database (`~/.claude/mozaic.db`) containing all Mozaic data
|
|
68
|
+
3. **Shell Scripts**: Each skill uses bash scripts to query the database and return results
|
|
69
|
+
4. **No Server Needed**: Everything runs locally - no MCP server configuration required
|
|
70
|
+
|
|
71
|
+
### MCP Server Mode
|
|
72
|
+
1. **Installation**: `npx mozaic-mcp-server install-mcp` adds server to Claude Desktop config
|
|
73
|
+
2. **Server**: Runs as MCP server providing 11 tools (see MCP Tools section below)
|
|
74
|
+
3. **Configuration**: Requires Claude Desktop restart after installation
|
|
75
|
+
|
|
76
|
+
**Database Location:** `~/.claude/mozaic.db` (shared by both modes)
|
|
77
|
+
|
|
78
|
+
See [SKILLS.md](./SKILLS.md) for detailed skill documentation and usage examples.
|
|
71
79
|
|
|
72
80
|
## What's Indexed
|
|
73
81
|
|
|
@@ -85,7 +93,9 @@ Documentation sources:
|
|
|
85
93
|
- Vue Storybook docs (58 pages) - Getting Started, Usage guides
|
|
86
94
|
- React Storybook docs (3 pages) - Getting Started, Usage guides
|
|
87
95
|
|
|
88
|
-
## MCP Tools
|
|
96
|
+
## MCP Tools (MCP Server Mode)
|
|
97
|
+
|
|
98
|
+
Available when using `install-mcp` mode in Claude Desktop:
|
|
89
99
|
|
|
90
100
|
### Component Tools
|
|
91
101
|
|
|
@@ -204,25 +214,6 @@ Compare performance and effectiveness of MCP server approach vs native Claude sk
|
|
|
204
214
|
- [ ] Evaluate context window efficiency
|
|
205
215
|
- [ ] Document trade-offs and recommendations
|
|
206
216
|
|
|
207
|
-
### Release Process
|
|
208
|
-
|
|
209
|
-
Steps to publish the MCP server:
|
|
210
|
-
|
|
211
|
-
- [ ] **npm registry**: Publish to npm
|
|
212
|
-
- Supports [npm Trusted Publishers](./TRUSTED_PUBLISHERS_SETUP.md) for automated, secure publishing
|
|
213
|
-
- Manual: `npm publish` or automated via GitHub release
|
|
214
|
-
- See [PUBLISH.md](./PUBLISH.md) for complete guide
|
|
215
|
-
- [ ] **Smithery**: Submit to [smithery.ai](https://smithery.ai) MCP marketplace
|
|
216
|
-
- [ ] **GitHub release**: Create tagged release with changelog (auto-publishes to npm with Trusted Publishers)
|
|
217
|
-
- [ ] **Claude Desktop config**: Document installation in `claude_desktop_config.json`
|
|
218
|
-
- [ ] **Version strategy**: Define semver policy for database schema changes
|
|
219
|
-
|
|
220
|
-
**Publishing Features**:
|
|
221
|
-
- ✅ Automated publishing via GitHub Actions
|
|
222
|
-
- ✅ npm Trusted Publishers (OIDC) support
|
|
223
|
-
- ✅ Provenance attestation for supply chain security
|
|
224
|
-
- ✅ Skills automatically included in npm package
|
|
225
|
-
|
|
226
217
|
### Future Improvements
|
|
227
218
|
|
|
228
219
|
- [ ] Incremental database updates (avoid full rebuild)
|