@mastergo/magic-mcp 0.0.4-beta.10 → 0.0.4-beta.11

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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # MasterGo Magic MCP
2
2
 
3
+ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/mastergo-design/mastergo-magic-mcp)
4
+
3
5
  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
6
 
5
7
  ## Key Features
package/README.zh-CN.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # MasterGo Magic MCP
2
2
 
3
+ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/mastergo-design/mastergo-magic-mcp)
4
+
3
5
  MasterGo Magic MCP 是一个独立的 MCP(Model Context Protocol)服务,旨在连接 MasterGo 设计工具与 AI 模型。它使 AI 模型能够直接从 MasterGo 设计文件中获取 DSL 数据。
4
6
 
5
7
  ## 主要特性
package/bin/cli.js CHANGED
@@ -36,7 +36,7 @@ for (let i = 0; i < args.length; i++) {
36
36
  }
37
37
 
38
38
  // Check required arguments
39
- if (!token) {
39
+ if (!token && !process.env.MASTERGO_API_TOKEN) {
40
40
  console.error("Error: Missing MasterGo API Token");
41
41
  console.error(
42
42
  "Usage: npx mastergo-magic-mcp --token=YOUR_TOKEN [--url=API_URL] [--rule=RULE_NAME]"
@@ -47,8 +47,8 @@ if (!token) {
47
47
 
48
48
  // Set environment variables
49
49
  const env = {
50
- ...process.env,
51
50
  MASTERGO_API_TOKEN: token,
51
+ ...process.env,
52
52
  API_BASE_URL: baseUrl,
53
53
  DEBUG: debug ? "true" : "false",
54
54
  // Add RULES environment variable as stringified array