@csszyx/mcp-server 0.9.9
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 +86 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +785 -0
- package/llms-full.txt +3701 -0
- package/package.json +58 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 csszyx contributors
|
|
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,86 @@
|
|
|
1
|
+
# @csszyx/mcp-server
|
|
2
|
+
|
|
3
|
+
Model Context Protocol (MCP) server for [csszyx](https://github.com/nguyennhutien/csszyx).
|
|
4
|
+
It lets AI assistants (Claude, Cursor, Copilot, …) expand, validate, look up,
|
|
5
|
+
reverse, and migrate `sz` props directly inside your editor.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# run without installing (recommended for MCP clients)
|
|
11
|
+
npx @csszyx/mcp-server
|
|
12
|
+
|
|
13
|
+
# or install globally
|
|
14
|
+
npm install -g @csszyx/mcp-server
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Requires Node.js >= 22.12.
|
|
18
|
+
|
|
19
|
+
## Configure your editor
|
|
20
|
+
|
|
21
|
+
### Claude Desktop / Claude Code
|
|
22
|
+
|
|
23
|
+
Add to `~/.config/claude/claude_desktop_config.json`:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"mcpServers": {
|
|
28
|
+
"csszyx": {
|
|
29
|
+
"command": "npx",
|
|
30
|
+
"args": ["-y", "@csszyx/mcp-server"]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Cursor
|
|
37
|
+
|
|
38
|
+
Add to `.cursor/mcp.json` in your project root:
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
{
|
|
42
|
+
"mcpServers": {
|
|
43
|
+
"csszyx": {
|
|
44
|
+
"command": "npx",
|
|
45
|
+
"args": ["-y", "@csszyx/mcp-server"]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
The server speaks MCP over stdio, so any MCP-compatible client uses the same
|
|
52
|
+
`npx @csszyx/mcp-server` command.
|
|
53
|
+
|
|
54
|
+
## Tools
|
|
55
|
+
|
|
56
|
+
| Tool | Purpose |
|
|
57
|
+
| ----------------- | -------------------------------------------------------------------- |
|
|
58
|
+
| `csszyx_expand` | Expand one `sz` object into a Tailwind class string |
|
|
59
|
+
| `csszyx_batch` | Expand many `sz` objects in one call |
|
|
60
|
+
| `csszyx_reverse` | Convert a Tailwind class string back into an `sz` object |
|
|
61
|
+
| `csszyx_validate` | Validate an `sz` object; reports unknown props and CSS-name mistakes |
|
|
62
|
+
| `csszyx_lookup` | Look up how a CSS property/keyword maps to an `sz` key |
|
|
63
|
+
| `csszyx_migrate` | Rewrite a JSX/TSX snippet's `className` attributes into `sz` props |
|
|
64
|
+
| `csszyx_theme` | Parse `@theme` CSS blocks and categorize design tokens |
|
|
65
|
+
|
|
66
|
+
## Resources
|
|
67
|
+
|
|
68
|
+
Read-only context an AI agent can load:
|
|
69
|
+
|
|
70
|
+
| URI | Content |
|
|
71
|
+
| ----------------------- | --------------------------------------- |
|
|
72
|
+
| `csszyx://setup` | Step-by-step project setup guide |
|
|
73
|
+
| `csszyx://reference` | Full API reference (`llms-full.txt`) |
|
|
74
|
+
| `csszyx://property-map` | `PROPERTY_MAP` as JSON |
|
|
75
|
+
| `csszyx://variants` | All known variant names as a JSON array |
|
|
76
|
+
|
|
77
|
+
## Prompts
|
|
78
|
+
|
|
79
|
+
| Prompt | Description |
|
|
80
|
+
| ------------------- | ------------------------------------------------------------ |
|
|
81
|
+
| `migrate_component` | Paste a Tailwind component and get it migrated to `sz` props |
|
|
82
|
+
| `create_component` | Describe a UI component and get production-ready `sz` code |
|
|
83
|
+
|
|
84
|
+
## License
|
|
85
|
+
|
|
86
|
+
MIT
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|