@zat-design/sisyphus-react-mcp 4.5.7 → 4.5.8-beta.1
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/README.md +27 -26
- package/meta/components.json +1 -1
- package/meta/examples.json +1 -1
- package/meta/manifest.json +5 -5
- package/meta/props.json +1 -1
- package/meta/types.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
# @zat-design/sisyphus-react-mcp
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 用途
|
|
4
4
|
|
|
5
|
-
向 AI
|
|
5
|
+
Sisyphus MCP 向 AI 暴露真实的组件清单、API、TypeScript 类型和 demo。只查组件用法时单独使用 MCP;需要从截图或需求生成保险业务页骨架时,配合 Scene Agent 使用。
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## 安装与版本
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- `@zat-design/sisyphus-react@4.5.7`
|
|
11
|
-
- `@zat-design/sisyphus-react-mcp@4.5.7`
|
|
9
|
+
需要 Node.js 18+。新项目默认安装 npm `latest` 稳定版:
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
```bash
|
|
12
|
+
npm install @zat-design/sisyphus-react
|
|
13
|
+
```
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
2. 在 `.mcp.json` 或 `.cursor/mcp.json` 配置:
|
|
15
|
+
在 Claude Code `.mcp.json` 或 Cursor `.cursor/mcp.json` 中配置:
|
|
19
16
|
|
|
20
17
|
```json
|
|
21
18
|
{
|
|
22
19
|
"mcpServers": {
|
|
23
20
|
"sisyphus-react": {
|
|
24
21
|
"command": "npx",
|
|
25
|
-
"args": ["-y", "@zat-design/sisyphus-react-mcp
|
|
22
|
+
"args": ["-y", "@zat-design/sisyphus-react-mcp"]
|
|
26
23
|
}
|
|
27
24
|
}
|
|
28
25
|
}
|
|
29
26
|
```
|
|
30
27
|
|
|
31
|
-
|
|
28
|
+
锁版或 beta 项目将组件库、MCP 和 Scene 均设为 `@<完整版本>`,三包必须完全同版。MCP 启动时会校验版本、schema v2 和 SHA-256。
|
|
32
29
|
|
|
33
|
-
##
|
|
30
|
+
## MCP 工具
|
|
34
31
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
| MCP 工具 | 用途 |
|
|
33
|
+
| ---------------------------- | ----------------------------- |
|
|
34
|
+
| `sisyphus-get-meta-status` | 验证版本、schema 和元数据 |
|
|
35
|
+
| `sisyphus-search` | 将业务语言映射到候选组件/能力 |
|
|
36
|
+
| `sisyphus-list-components` | 确认候选组件存在 |
|
|
37
|
+
| `sisyphus-get-component-api` | 获取候选组件的真实 API |
|
|
38
|
+
| `sisyphus-get-type` | 核对公开 TypeScript 类型 |
|
|
39
|
+
| `sisyphus-list-examples` | 按组件和场景词筛选 demo ID |
|
|
40
|
+
| `sisyphus-get-example` | 获取选中的单个 demo 源码 |
|
|
41
|
+
| `sisyphus-get-examples` | 仅供旧工作流兼容 |
|
|
41
42
|
|
|
42
|
-
|
|
43
|
+
## 推荐顺序
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
1. `sisyphus-get-meta-status`
|
|
46
|
+
2. 按需 `sisyphus-search`,再用 `sisyphus-list-components` 确认候选组件。
|
|
47
|
+
3. 编码前调用 `sisyphus-get-component-api`,按需补查 `sisyphus-get-type`。
|
|
48
|
+
4. 先 `sisyphus-list-examples`,再 `sisyphus-get-example`。
|
|
49
|
+
5. 只使用已验证 API 编码并运行项目校验。
|
package/meta/components.json
CHANGED
package/meta/examples.json
CHANGED
package/meta/manifest.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.8-beta.1",
|
|
4
4
|
"counts": {
|
|
5
5
|
"components": 29,
|
|
6
6
|
"examples": 280,
|
|
7
7
|
"types": 64
|
|
8
8
|
},
|
|
9
9
|
"files": {
|
|
10
|
-
"components.json": "
|
|
11
|
-
"props.json": "
|
|
12
|
-
"examples.json": "
|
|
13
|
-
"types.json": "
|
|
10
|
+
"components.json": "de8ecdb5288b411d3d9dc504dafb28ebccd847146e4472870e95c11a8b26c6c2",
|
|
11
|
+
"props.json": "23653cc71f0bd9f8dcfda3ba70ae0ae25f25c1a8d1f7bc459831034aecd20326",
|
|
12
|
+
"examples.json": "f196a7ad2a24d4e472a0d806d55b2728753a96be10bb6c237c3dcf25c7e1dc9b",
|
|
13
|
+
"types.json": "5bd7d73a6fcc2905c421565d218a45651957b4e94a9fb2f6576818c33a5ac434"
|
|
14
14
|
}
|
|
15
15
|
}
|
package/meta/props.json
CHANGED
package/meta/types.json
CHANGED