@mastergo/magic-mcp 0.0.2-alpha.2 → 0.0.3-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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mastergo/magic-mcp",
3
- "version": "0.0.2-alpha.2",
4
- "description": "MasterGo MCP 独立服务",
3
+ "version": "0.0.3-beta",
4
+ "description": "MasterGo MCP standalone service",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
7
  "mastergo-magic-mcp": "bin/cli.js"
@@ -19,18 +19,7 @@
19
19
  },
20
20
  "scripts": {
21
21
  "build": "node build.js",
22
- "build:tsc": "tsc",
23
- "build:prod": "node build.js && node -e \"console.log('产物大小: ' + require('fs').statSync('dist/index.js').size / 1024 + 'KB')\"",
24
- "build:advanced": "node build-advanced.js",
25
- "build:analyze": "node build-advanced.js --analyze",
26
- "build:watch": "node build-advanced.js --watch",
27
- "build:gzip": "node build-advanced.js --gzip",
28
- "build:dev": "node build-advanced.js --no-minify --sourcemap",
29
- "start": "node bin/cli.js --token=test",
30
- "dev": "ts-node src/index.ts",
31
- "lint": "eslint src/**/*.ts",
32
- "format": "prettier --write \"src/**/*.ts\"",
33
- "test": "jest",
22
+ "start": "node bin/cli.js --token=test --url=http://localhost:3000 --debug",
34
23
  "prepublishOnly": "npm run build"
35
24
  },
36
25
  "keywords": [
package/readme.md ADDED
@@ -0,0 +1,63 @@
1
+ # MasterGo Magic MCP
2
+
3
+ MasterGo Magic MCP is a standalone MCP (Model Context Protocol) service designed to connect MasterGo design tools with AI models. It enables AI models to directly retrieve DSL data from MasterGo design files.
4
+
5
+ ## Key Features
6
+
7
+ - Retrieves DSL data from MasterGo design files
8
+ - Runs directly with npx
9
+ - No external dependencies required, only Node.js environment needed
10
+
11
+ ## Usage
12
+
13
+ ### Obtaining MG_MCP_TOKEN
14
+
15
+ 1. Visit https://mastergo.com
16
+ 2. Enter personal settings
17
+ 3. Click the Security Settings tab
18
+ 4. Find the personal access token
19
+ 5. Click to generate the token
20
+
21
+ ### cursor Usage
22
+
23
+ Cursor Mcp usage guide reference: 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
+ }
40
+ ```
41
+
42
+ ### cline Usage
43
+
44
+ ```json
45
+ {
46
+ "mcpServers": {
47
+ "@master/mastergo-magic-mcp": {
48
+ "command": "npx",
49
+ "args": [
50
+ "-y",
51
+ "@mastergo/magic-mcp",
52
+ "--token=<MG_MCP_TOKEN>",
53
+ "--url=https://mastergo.com"
54
+ ],
55
+ "env": {}
56
+ }
57
+ }
58
+ }
59
+ ```
60
+
61
+ ## License
62
+
63
+ ISC
package/README.md DELETED
@@ -1,44 +0,0 @@
1
- # MasterGo Magic MCP
2
-
3
- MasterGo Magic MCP 是一个独立的 MCP (Model Context Protocol) 服务,用于连接 MasterGo 设计工具与 AI 模型。它允许 AI 模型直接从 MasterGo 设计文件中获取 DSL 数据。
4
-
5
- 如需使用 MasterGo MCP,请通过[申请表单](https://jwzg.feishu.cn/share/base/form/shrcndyuVPtisV2bJmEdtiZnfqF)进行申请。
6
-
7
- ## 功能特点
8
-
9
- - 获取 MasterGo 设计文件的 DSL 数据
10
- - 直接 npx 运行
11
- - 无需安装外部依赖,只需 Node.js 环境
12
-
13
- ## 使用
14
-
15
- ### cursor 使用
16
-
17
- Cursor Mcp 使用指导参考: https://docs.cursor.com/context/model-context-protocol#using-mcp-tools-in-agent
18
-
19
- ```bash
20
- npx -y @mastergo/magic-mcp --token=test --url=https://mcp-demo.mastergo.com
21
- ```
22
-
23
- ### cline 使用
24
-
25
- ```json
26
- {
27
- "mcpServers": {
28
- "@master/mastergo-magic-mcp": {
29
- "command": "npx",
30
- "args": [
31
- "-y",
32
- "@mastergo/magic-mcp",
33
- "--token=test",
34
- "--url=https://mcp-demo.mastergo.com"
35
- ],
36
- "env": {}
37
- }
38
- }
39
- }
40
- ```
41
-
42
- ## 许可证
43
-
44
- ISC