@mastergo/magic-mcp 0.1.7 → 0.1.8

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
@@ -39,7 +39,7 @@ MasterGo Magic MCP is a standalone MCP (Model Context Protocol) service designed
39
39
  ### Command Line Options
40
40
 
41
41
  ```
42
- npx @mastergo/magic-mcp --token=YOUR_TOKEN [--url=API_URL] [--rule=RULE_NAME] [--debug] [--no-rule]
42
+ npx @mastergo/magic-mcp --token=YOUR_TOKEN [--url=API_URL] [--rule=RULE_NAME] [--proxy=PROXY_URL] [--debug] [--no-rule]
43
43
  ```
44
44
 
45
45
  #### Parameters:
@@ -47,13 +47,14 @@ npx @mastergo/magic-mcp --token=YOUR_TOKEN [--url=API_URL] [--rule=RULE_NAME] [-
47
47
  - `--token=YOUR_TOKEN` (required): MasterGo API token for authentication
48
48
  - `--url=API_URL` (optional): API base URL, defaults to http://localhost:3000
49
49
  - `--rule=RULE_NAME` (optional): Add design rules to apply, can be used multiple times
50
+ - `--proxy=PROXY_URL` (optional): HTTP/HTTPS proxy URL (e.g., `http://127.0.0.1:7890`), also supports `HTTPS_PROXY` / `HTTP_PROXY` environment variables
50
51
  - `--debug` (optional): Enable debug mode for detailed error information
51
52
  - `--no-rule` (optional): Disable default rules
52
53
 
53
54
  You can also use space-separated format for parameters:
54
55
 
55
56
  ```
56
- npx @mastergo/magic-mcp --token YOUR_TOKEN --url API_URL --rule RULE_NAME --debug
57
+ npx @mastergo/magic-mcp --token YOUR_TOKEN --url API_URL --rule RULE_NAME --proxy PROXY_URL --debug
57
58
  ```
58
59
 
59
60
  #### Environment Variables
@@ -63,6 +64,7 @@ Alternatively, you can use environment variables instead of command line argumen
63
64
  - `MG_MCP_TOKEN` or `MASTERGO_API_TOKEN`: MasterGo API token
64
65
  - `API_BASE_URL`: API base URL
65
66
  - `RULES`: JSON array of rules (e.g., `'["rule1", "rule2"]'`)
67
+ - `HTTPS_PROXY` / `https_proxy` / `HTTP_PROXY` / `http_proxy`: HTTP(S) proxy URL (the `--proxy` argument takes priority)
66
68
 
67
69
  ### Installing via Smithery Marketplace
68
70
 
package/README.zh-CN.md CHANGED
@@ -39,7 +39,7 @@ MasterGo Magic MCP 是一个独立的 MCP(Model Context Protocol)服务,
39
39
  ### 命令行选项
40
40
 
41
41
  ```
42
- npx @mastergo/magic-mcp --token=YOUR_TOKEN [--url=API_URL] [--rule=RULE_NAME] [--debug] [--no-rule]
42
+ npx @mastergo/magic-mcp --token=YOUR_TOKEN [--url=API_URL] [--rule=RULE_NAME] [--proxy=PROXY_URL] [--debug] [--no-rule]
43
43
  ```
44
44
 
45
45
  #### 参数:
@@ -47,13 +47,14 @@ npx @mastergo/magic-mcp --token=YOUR_TOKEN [--url=API_URL] [--rule=RULE_NAME] [-
47
47
  - `--token=YOUR_TOKEN` (必需): MasterGo API 认证令牌
48
48
  - `--url=API_URL` (可选): API 基础 URL,默认为 http://localhost:3000
49
49
  - `--rule=RULE_NAME` (可选): 添加要应用的设计规则,可多次使用
50
+ - `--proxy=PROXY_URL` (可选): HTTP/HTTPS 代理地址(如 `http://127.0.0.1:7890`),也支持 `HTTPS_PROXY` / `HTTP_PROXY` 环境变量
50
51
  - `--debug` (可选): 启用调试模式,提供详细错误信息
51
52
  - `--no-rule` (可选): 禁用默认规则
52
53
 
53
54
  你也可以使用空格分隔的参数格式:
54
55
 
55
56
  ```
56
- npx @mastergo/magic-mcp --token YOUR_TOKEN --url API_URL --rule RULE_NAME --debug
57
+ npx @mastergo/magic-mcp --token YOUR_TOKEN --url API_URL --rule RULE_NAME --proxy PROXY_URL --debug
57
58
  ```
58
59
 
59
60
  #### 环境变量
@@ -63,6 +64,7 @@ npx @mastergo/magic-mcp --token YOUR_TOKEN --url API_URL --rule RULE_NAME --debu
63
64
  - `MG_MCP_TOKEN` 或 `MASTERGO_API_TOKEN`: MasterGo API 令牌
64
65
  - `API_BASE_URL`: API 基础 URL
65
66
  - `RULES`: 规则的 JSON 数组 (例如: `'["rule1", "rule2"]'`)
67
+ - `HTTPS_PROXY` / `https_proxy` / `HTTP_PROXY` / `http_proxy`: HTTP(S) 代理地址(`--proxy` 参数优先级更高)
66
68
 
67
69
  ### 通过 Smithery 市场安装
68
70