@mastergo/magic-mcp 0.1.1 → 0.1.4
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 +22 -7
- package/README.zh-CN.md +24 -2
- package/dist/index.js +93 -28
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,18 @@ MasterGo Magic MCP is a standalone MCP (Model Context Protocol) service designed
|
|
|
24
24
|
4. Find the personal access token
|
|
25
25
|
5. Click to generate the token
|
|
26
26
|
|
|
27
|
+
### Permission Requirements
|
|
28
|
+
|
|
29
|
+
**Important**: If the tool is connected but returns a "no permission" error, please check the following conditions:
|
|
30
|
+
|
|
31
|
+
1. **Account Version Requirement**:
|
|
32
|
+
- Requires **Team Edition** or higher MasterGo account
|
|
33
|
+
- Personal free edition does not support MCP tool access
|
|
34
|
+
|
|
35
|
+
2. **File Location Requirement**:
|
|
36
|
+
- Design files must be placed in **Team Projects**
|
|
37
|
+
- Files in draft box cannot be accessed via MCP tools
|
|
38
|
+
|
|
27
39
|
### Command Line Options
|
|
28
40
|
|
|
29
41
|
```
|
|
@@ -52,13 +64,16 @@ Alternatively, you can use environment variables instead of command line argumen
|
|
|
52
64
|
- `API_BASE_URL`: API base URL
|
|
53
65
|
- `RULES`: JSON array of rules (e.g., `'["rule1", "rule2"]'`)
|
|
54
66
|
|
|
55
|
-
### Installing via Smithery
|
|
67
|
+
### Installing via Smithery Marketplace
|
|
56
68
|
|
|
57
|
-
|
|
69
|
+
Smithery is an MCP server marketplace that makes it easy to install and manage MCP services.
|
|
58
70
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
71
|
+
#### Method 1: Install via Smithery Website
|
|
72
|
+
|
|
73
|
+
1. Visit [Smithery Marketplace](https://smithery.ai/server/master/mastergo-magic-mcp-smithery)
|
|
74
|
+
2. Click the "Connect" or "Install" button
|
|
75
|
+
3. Select your MCP client (e.g., Claude Desktop, Cursor, etc.)
|
|
76
|
+
4. Follow the prompts to complete installation and configuration
|
|
62
77
|
|
|
63
78
|
### LINGMA Usage
|
|
64
79
|
|
|
@@ -192,14 +207,14 @@ Contains markdown files with additional documentation:
|
|
|
192
207
|
## Local Development
|
|
193
208
|
|
|
194
209
|
1. Run `yarn` and `yarn build` to install dependencies and build the code
|
|
195
|
-
2. Find the absolute path of `
|
|
210
|
+
2. Find the absolute path of `dist/index.js`
|
|
196
211
|
3. Add local MCP configuration with your token
|
|
197
212
|
|
|
198
213
|
```json
|
|
199
214
|
"mastergo-mcp-local": {
|
|
200
215
|
"command": "node",
|
|
201
216
|
"args": [
|
|
202
|
-
"absolute/path/to/
|
|
217
|
+
"absolute/path/to/dist/index.js",
|
|
203
218
|
"--token=mg_xxxxxx",
|
|
204
219
|
"--url=https://mastergo.com",
|
|
205
220
|
"--debug"
|
package/README.zh-CN.md
CHANGED
|
@@ -24,6 +24,18 @@ MasterGo Magic MCP 是一个独立的 MCP(Model Context Protocol)服务,
|
|
|
24
24
|
4. 找到个人访问令牌
|
|
25
25
|
5. 点击生成令牌
|
|
26
26
|
|
|
27
|
+
### 权限要求
|
|
28
|
+
|
|
29
|
+
**重要提示**:如果工具已连接但返回"没有权限"错误,请检查以下条件:
|
|
30
|
+
|
|
31
|
+
1. **账户版本要求**:
|
|
32
|
+
- 需要 **团队版** 或 **团队版以上** 的 MasterGo 账户
|
|
33
|
+
- 个人免费版不支持 MCP 工具访问
|
|
34
|
+
|
|
35
|
+
2. **文件位置要求**:
|
|
36
|
+
- 设计文件必须放在 **团队项目** 中
|
|
37
|
+
- 草稿箱中的文件无法通过 MCP 工具访问
|
|
38
|
+
|
|
27
39
|
### 命令行选项
|
|
28
40
|
|
|
29
41
|
```
|
|
@@ -52,6 +64,16 @@ npx @mastergo/magic-mcp --token YOUR_TOKEN --url API_URL --rule RULE_NAME --debu
|
|
|
52
64
|
- `API_BASE_URL`: API 基础 URL
|
|
53
65
|
- `RULES`: 规则的 JSON 数组 (例如: `'["rule1", "rule2"]'`)
|
|
54
66
|
|
|
67
|
+
### 通过 Smithery 市场安装
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
#### 方式一:通过 Smithery 网站安装
|
|
71
|
+
|
|
72
|
+
1. 访问 [Smithery 市场](https://smithery.ai/server/master/mastergo-magic-mcp-smithery)
|
|
73
|
+
2. 选择你的 MCP 客户端(如 Claude Desktop、Cursor 等)
|
|
74
|
+
4. one-click install 打开对应客户端,弹出tools&mcp 点击install
|
|
75
|
+
5. connect->open->optional setting中填入token->connect
|
|
76
|
+
|
|
55
77
|
### LINGMA 使用方法
|
|
56
78
|
|
|
57
79
|
在 vscode 拓展市场中搜索 LINGMA -> 然后安装该拓展
|
|
@@ -184,14 +206,14 @@ Cursor Mcp 使用指南参考:https://docs.cursor.com/context/model-context-pr
|
|
|
184
206
|
## 本地开发
|
|
185
207
|
|
|
186
208
|
1. 运行 `yarn` 和 `yarn build`,安装依赖并构建代码
|
|
187
|
-
2. 查看 `
|
|
209
|
+
2. 查看 `dist/index.js` 的绝对路径
|
|
188
210
|
3. 在 MCP 配置中添加本地 MCP 配置,其中 token 为您获取的 token
|
|
189
211
|
|
|
190
212
|
```json
|
|
191
213
|
"mastergo-mcp-local": {
|
|
192
214
|
"command": "node",
|
|
193
215
|
"args": [
|
|
194
|
-
"
|
|
216
|
+
"dist/index.js绝对路径地址",
|
|
195
217
|
"--token=mg_xxxxxx",
|
|
196
218
|
"--url=https://mastergo.com",
|
|
197
219
|
"--debug"
|