@mastergo/magic-mcp 0.0.2-alpha → 0.0.2-beta
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 +28 -5
- package/dist/index.js +18 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MasterGo Magic MCP
|
|
2
2
|
|
|
3
|
-
MasterGo Magic MCP 是一个独立的 MCP (Model Context Protocol) 服务,用于连接 MasterGo 设计工具与 AI 模型。它允许 AI 模型直接从 MasterGo 设计文件中获取 DSL
|
|
3
|
+
MasterGo Magic MCP 是一个独立的 MCP (Model Context Protocol) 服务,用于连接 MasterGo 设计工具与 AI 模型。它允许 AI 模型直接从 MasterGo 设计文件中获取 DSL 数据。
|
|
4
4
|
|
|
5
5
|
## 功能特点
|
|
6
6
|
|
|
@@ -10,10 +10,33 @@ MasterGo Magic MCP 是一个独立的 MCP (Model Context Protocol) 服务,用
|
|
|
10
10
|
|
|
11
11
|
## 使用
|
|
12
12
|
|
|
13
|
+
### 获取 MG_MCP_TOKEN
|
|
14
|
+
|
|
15
|
+
1. 访问 https://mastergo.com
|
|
16
|
+
2. 进入个人设置
|
|
17
|
+
3. 点击安全设置Tab
|
|
18
|
+
4. 找到个人访问令牌
|
|
19
|
+
5. 点击生成令牌
|
|
20
|
+
|
|
13
21
|
### cursor 使用
|
|
14
22
|
|
|
15
|
-
|
|
16
|
-
|
|
23
|
+
Cursor Mcp 使用指导参考: https://docs.cursor.com/context/model-context-protocol#using-mcp-tools-in-agent
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"mcpServers": {
|
|
28
|
+
"mastergo-magic-mcp": {
|
|
29
|
+
"command": "npx",
|
|
30
|
+
"args": [
|
|
31
|
+
"-y",
|
|
32
|
+
"@mastergo/magic-mcp",
|
|
33
|
+
"--token=<MG_MCP_TOKEN>",
|
|
34
|
+
"--url=https://mastergo.com"
|
|
35
|
+
],
|
|
36
|
+
"env": {}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
17
40
|
```
|
|
18
41
|
|
|
19
42
|
### cline 使用
|
|
@@ -26,8 +49,8 @@ npx -y @mastergo/magic-mcp --token=test --url=https://mcp-demo.mastergo.com
|
|
|
26
49
|
"args": [
|
|
27
50
|
"-y",
|
|
28
51
|
"@mastergo/magic-mcp",
|
|
29
|
-
"--token
|
|
30
|
-
"--url=https://
|
|
52
|
+
"--token=<MG_MCP_TOKEN>",
|
|
53
|
+
"--url=https://mastergo.com"
|
|
31
54
|
],
|
|
32
55
|
"env": {}
|
|
33
56
|
}
|