@mastergo/magic-mcp 0.0.3-beta → 0.0.4-beta.2
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.zh-CN.md +67 -0
- package/dist/index.js +29 -15
- package/package.json +2 -2
- package/readme.md +4 -0
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# MasterGo Magic MCP
|
|
2
|
+
|
|
3
|
+
MasterGo Magic MCP 是一个独立的 MCP(Model Context Protocol)服务,旨在连接 MasterGo 设计工具与 AI 模型。它使 AI 模型能够直接从 MasterGo 设计文件中获取 DSL 数据。
|
|
4
|
+
|
|
5
|
+
## 主要特性
|
|
6
|
+
|
|
7
|
+
- 从 MasterGo 设计文件中获取 DSL 数据
|
|
8
|
+
- 可直接通过 npx 运行
|
|
9
|
+
- 仅需 Node.js 环境,无需其他外部依赖
|
|
10
|
+
|
|
11
|
+
### 教程
|
|
12
|
+
|
|
13
|
+
- https://mastergo.com/file/155675508499265?page_id=158:0002
|
|
14
|
+
|
|
15
|
+
## 使用方法
|
|
16
|
+
|
|
17
|
+
### 获取 MG_MCP_TOKEN
|
|
18
|
+
|
|
19
|
+
1. 访问 https://mastergo.com
|
|
20
|
+
2. 进入个人设置
|
|
21
|
+
3. 点击安全设置选项卡
|
|
22
|
+
4. 找到个人访问令牌
|
|
23
|
+
5. 点击生成令牌
|
|
24
|
+
|
|
25
|
+
### Cursor 使用方法
|
|
26
|
+
|
|
27
|
+
Cursor Mcp 使用指南参考:https://docs.cursor.com/context/model-context-protocol#using-mcp-tools-in-agent
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"mcpServers": {
|
|
32
|
+
"mastergo-magic-mcp": {
|
|
33
|
+
"command": "npx",
|
|
34
|
+
"args": [
|
|
35
|
+
"-y",
|
|
36
|
+
"@mastergo/magic-mcp",
|
|
37
|
+
"--token=<MG_MCP_TOKEN>",
|
|
38
|
+
"--url=https://mastergo.com"
|
|
39
|
+
],
|
|
40
|
+
"env": {}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### cline 使用方法
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"mcpServers": {
|
|
51
|
+
"@master/mastergo-magic-mcp": {
|
|
52
|
+
"command": "npx",
|
|
53
|
+
"args": [
|
|
54
|
+
"-y",
|
|
55
|
+
"@mastergo/magic-mcp",
|
|
56
|
+
"--token=<MG_MCP_TOKEN>",
|
|
57
|
+
"--url=https://mastergo.com"
|
|
58
|
+
],
|
|
59
|
+
"env": {}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## 许可证
|
|
66
|
+
|
|
67
|
+
ISC
|