text-to-design-mcp 0.3.0 → 0.3.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 +14 -21
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,29 +18,22 @@
|
|
|
18
18
|
|
|
19
19
|
**第一步:告诉 AI 工具**
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
```json
|
|
24
|
-
{
|
|
25
|
-
"mcp": {
|
|
26
|
-
"text-to-design": {
|
|
27
|
-
"type": "local",
|
|
28
|
-
"command": ["npx", "-y", "text-to-design-mcp@latest"],
|
|
29
|
-
"enabled": true
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
如果想全局安装(装一次、不依赖联网拉取),也可以用任意包管理器:
|
|
21
|
+
后台服务不用手动安装,注册命令统一为 `npx -y text-to-design-mcp@latest`,任意 AI 工具都会自动化拉取运行。把下面需求丢给 AI,它会按自己工具的格式注册 MCP 服务:
|
|
36
22
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
23
|
+
```
|
|
24
|
+
请为你在当前 AI 工具里注册 text-to-design MCP 服务:
|
|
25
|
+
|
|
26
|
+
1. 后台服务无需手动安装,调用时你会通过 npx 自动拉取运行。
|
|
27
|
+
2. 用你工具原生的方式注册一个 stdio MCP server:
|
|
28
|
+
命令: npx -y text-to-design-mcp@latest
|
|
29
|
+
(按你自己的配置文件格式写入即可)
|
|
30
|
+
3. 验证服务能启动:
|
|
31
|
+
timeout 5 npx -y text-to-design-mcp@latest
|
|
32
|
+
预期输出含 "[text-to-design-mcp] shim 模式" 或 "daemon 就绪"(首次会自动拉起常驻服务)
|
|
33
|
+
4. 完成注册后告诉我「已就绪」。
|
|
34
|
+
```
|
|
42
35
|
|
|
43
|
-
|
|
36
|
+
若希望全局安装(装一次、不依赖联网拉取),可 `npm i -g text-to-design-mcp`,注册命令可简化为 `text-to-design-mcp`。
|
|
44
37
|
|
|
45
38
|
**第二步:安装设计软件插件**
|
|
46
39
|
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { isTag } from "domhandler";
|
|
|
13
13
|
import { parseDocument } from "htmlparser2";
|
|
14
14
|
import Fuse from "fuse.js";
|
|
15
15
|
//#region package.json
|
|
16
|
-
var version = "0.3.
|
|
16
|
+
var version = "0.3.1";
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/config.ts
|
|
19
19
|
var PORT = Number(process.env.TEXT_TO_DESIGN_MCP_PORT ?? 47812);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "text-to-design-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "MCP server bridging AI clients to the jsDesign (即时设计) desktop plugin via a local WebSocket",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"fuse.js": "^7.5.0",
|
|
34
34
|
"htmlparser2": "^10.0.0",
|
|
35
35
|
"lucide-static": "^1.30.0",
|
|
36
|
-
"text-to-design-shared": "workspace:*",
|
|
37
36
|
"ws": "^8.21.1",
|
|
38
37
|
"zod": "^4.4.3"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
41
40
|
"@types/node": "^24.13.3",
|
|
42
41
|
"@types/ws": "^8.18.1",
|
|
42
|
+
"text-to-design-shared": "workspace:*",
|
|
43
43
|
"tsx": "^4.20.0",
|
|
44
44
|
"typescript": "^7.0.2",
|
|
45
45
|
"vite": "^8.2.0"
|