standby-design-mcp 0.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/LICENSE +21 -0
- package/README.md +72 -0
- package/dist/index.js +3458 -0
- package/package.json +51 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Karsten Kreh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# @standby/mcp-server
|
|
2
|
+
|
|
3
|
+
MCP server for [standby.design](https://standby.design) — generate and export
|
|
4
|
+
production-ready design systems directly from Claude (or any MCP client),
|
|
5
|
+
without touching the web UI.
|
|
6
|
+
|
|
7
|
+
All computation is shared with the standby.design web apps (`packages/core` +
|
|
8
|
+
`system-react/src/lib`), so results are identical to what the UI produces.
|
|
9
|
+
Every tool returns a shareable `standby.design/system` URL — open it in the
|
|
10
|
+
browser to view and fine-tune the system visually; the URL *is* the state.
|
|
11
|
+
|
|
12
|
+
## Tools
|
|
13
|
+
|
|
14
|
+
| Tool | Purpose |
|
|
15
|
+
|------|---------|
|
|
16
|
+
| `generate_color_palette` | OKLCH palette from a brand color: 18-step scales, semantic tokens (shadcn/ui compatible), accents, light+dark |
|
|
17
|
+
| `generate_type_scale` | Fluid type scale (CSS `clamp()`), 11 levels, Fontshare fonts, line heights & letter spacing |
|
|
18
|
+
| `generate_shape_tokens` | Radii, shadows, borders, focus rings — styles: paper / glass / neomorph / neobrutalism |
|
|
19
|
+
| `generate_icon_tokens` | Icon set recommendation/selection + sizing tokens (xs–2xl, stroke) |
|
|
20
|
+
| `generate_space_tokens` | Spacing tokens, breakpoints, containers, prose measure, aspect ratios |
|
|
21
|
+
| `get_design_system` | Decode any standby.design URL into a full overview |
|
|
22
|
+
| `export_design_system` | Full code export: `css`, `tailwind`, `design-tokens` (DTCG), `llm-briefing`, `font-embed` |
|
|
23
|
+
| `list_fonts` | Fontshare slugs for `generate_type_scale` |
|
|
24
|
+
|
|
25
|
+
Each `generate_*` tool accepts an optional `url` and only changes its own
|
|
26
|
+
section, so calls chain: color → type → shape → … accumulate into one URL.
|
|
27
|
+
|
|
28
|
+
## Build
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
cd packages/mcp-server
|
|
32
|
+
npm install
|
|
33
|
+
npm run build # bundles @core + system-react/src/lib into dist/index.js
|
|
34
|
+
npm run smoke # end-to-end protocol test against the built server
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Install
|
|
38
|
+
|
|
39
|
+
Claude Code:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
claude mcp add standby-design -- npx -y standby-design-mcp
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Claude Desktop — add to `claude_desktop_config.json`
|
|
46
|
+
(Settings → Developer → Edit Config), then restart the app:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"mcpServers": {
|
|
51
|
+
"standby-design": {
|
|
52
|
+
"command": "npx",
|
|
53
|
+
"args": ["-y", "standby-design-mcp"]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Any other MCP client: run `npx -y standby-design-mcp` as a stdio server.
|
|
60
|
+
|
|
61
|
+
Then ask things like:
|
|
62
|
+
|
|
63
|
+
> Build me a design system for a calm fintech product — dark blue brand,
|
|
64
|
+
> sharp corners, corporate icons. Give me the Tailwind tokens.
|
|
65
|
+
|
|
66
|
+
## Local development
|
|
67
|
+
|
|
68
|
+
Register your local build instead of the npm package:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
claude mcp add standby-design -- node "<absolute-path-to-repo>/packages/mcp-server/dist/index.js"
|
|
72
|
+
```
|