bmall-mcp 1.1.1 → 1.1.3
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 +42 -46
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,89 +28,85 @@ npx -y bmall-mcp
|
|
|
28
28
|
"mcpServers": {
|
|
29
29
|
"bmall": {
|
|
30
30
|
"command": "npx",
|
|
31
|
-
"args": ["-y", "bmall-mcp"]
|
|
31
|
+
"args": ["-y", "--registry", "https://registry.npmjs.org/", "bmall-mcp"]
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
> 💡 指定 `--registry https://registry.npmjs.org/` 确保从 npm 官方源获取最新版本,避免镜像源同步延迟。
|
|
38
|
+
|
|
37
39
|
### 可用工具
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
| 工具 | 说明 | 示例 |
|
|
42
|
+
|------|------|------|
|
|
43
|
+
| `pull_rules` | 下载 Rules 到 IDE | `同步 bmall iOS 的 rules` |
|
|
44
|
+
| `push_rules` | 上传本地 Rules 到 Git | `上传修改的 iOS rules` |
|
|
45
|
+
| `standard_git_commit` | 规范化 Git 提交 | `提交代码,需求名称是语音转写SDK` |
|
|
46
|
+
| `mta_read` | 从流式平台提取埋点需求 | `提取埋点需求 https://stream.jd.com/ddrx/#/requirement/29582` |
|
|
47
|
+
| `mta_implementation` | 生成埋点管理类代码 | `生成埋点代码 34747` |
|
|
48
|
+
| `mta_integration` | 埋点业务集成指导 | `集成埋点 34747` |
|
|
40
49
|
|
|
41
|
-
|
|
50
|
+
### 工具详情
|
|
42
51
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
同步 bmall common rules
|
|
46
|
-
```
|
|
52
|
+
<details>
|
|
53
|
+
<summary><b>pull_rules</b> - 下载 Rules</summary>
|
|
47
54
|
|
|
48
|
-
|
|
49
|
-
- `ide`: 目标 IDE(可选,默认自动检测)
|
|
50
|
-
- `kiro` | `cursor` | `windsurf` | `joycode`
|
|
51
|
-
- `rulesType`: Rules 类型(可选,默认自动检测)
|
|
52
|
-
- `ios` | `android` | `common`
|
|
55
|
+
从 Git 仓库下载 bmall Rules 到 IDE 目录。
|
|
53
56
|
|
|
54
|
-
|
|
57
|
+
**参数:**
|
|
58
|
+
- `ide`: 目标 IDE(可选,自动检测)- `kiro` | `cursor` | `windsurf` | `joycode`
|
|
59
|
+
- `rulesType`: Rules 类型(可选,自动检测)- `ios` | `android` | `common`
|
|
60
|
+
</details>
|
|
55
61
|
|
|
56
|
-
|
|
62
|
+
<details>
|
|
63
|
+
<summary><b>push_rules</b> - 上传 Rules</summary>
|
|
57
64
|
|
|
58
|
-
|
|
59
|
-
上传修改的 iOS rules
|
|
60
|
-
```
|
|
65
|
+
将本地修改的 Rules 上传到 Git 仓库。会自动创建以项目名命名的分支。
|
|
61
66
|
|
|
62
|
-
|
|
67
|
+
**参数:**
|
|
63
68
|
- `message`: 提交信息(可选)
|
|
64
|
-
- `rulesType`: Rules
|
|
69
|
+
- `rulesType`: Rules 类型(可选,自动检测)
|
|
70
|
+
</details>
|
|
65
71
|
|
|
66
|
-
|
|
72
|
+
<details>
|
|
73
|
+
<summary><b>standard_git_commit</b> - 规范化提交</summary>
|
|
67
74
|
|
|
68
75
|
自动分析改动内容,生成符合约定式提交规范的 commit message 并推送。
|
|
69
76
|
|
|
70
|
-
|
|
71
|
-
提交代码,需求名称是语音转写SDK
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
参数:
|
|
77
|
+
**参数:**
|
|
75
78
|
- `scope`: 需求名称(必填),如:语音转写SDK、购物车、登录模块
|
|
79
|
+
</details>
|
|
76
80
|
|
|
77
|
-
|
|
81
|
+
<details>
|
|
82
|
+
<summary><b>mta_read</b> - 埋点文档生成</summary>
|
|
78
83
|
|
|
79
84
|
从京东流式平台提取埋点需求,生成结构化埋点文档。
|
|
80
85
|
|
|
81
|
-
|
|
82
|
-
提取埋点需求 https://stream.jd.com/ddrx/#/requirement/29582
|
|
83
|
-
提取 iOS 端埋点 https://stream.jd.com/ddrx/#/requirement/29582
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
参数:
|
|
86
|
+
**参数:**
|
|
87
87
|
- `requirementUrl`: 埋点需求文档URL(必填)
|
|
88
|
-
- `platform`:
|
|
89
|
-
|
|
88
|
+
- `platform`: 目标端(可选,自动检测)- `iOS` | `Android` | `H5` | `Web` | `鸿蒙`
|
|
89
|
+
</details>
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
<details>
|
|
92
|
+
<summary><b>mta_implementation</b> - 埋点代码生成</summary>
|
|
92
93
|
|
|
93
94
|
根据埋点需求文档生成埋点管理类代码。
|
|
94
95
|
|
|
95
|
-
|
|
96
|
-
生成埋点代码 34747
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
参数:
|
|
96
|
+
**参数:**
|
|
100
97
|
- `requirementId`: 埋点需求ID(必填)
|
|
101
98
|
- `moduleName`: 模块名称(可选)
|
|
99
|
+
</details>
|
|
102
100
|
|
|
103
|
-
|
|
101
|
+
<details>
|
|
102
|
+
<summary><b>mta_integration</b> - 埋点业务集成</summary>
|
|
104
103
|
|
|
105
104
|
指导在业务代码中集成埋点调用。
|
|
106
105
|
|
|
107
|
-
|
|
108
|
-
集成埋点 34747
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
参数:
|
|
106
|
+
**参数:**
|
|
112
107
|
- `requirementId`: 埋点需求ID(必填)
|
|
113
108
|
- `businessCodePath`: 业务代码路径(可选)
|
|
109
|
+
</details>
|
|
114
110
|
|
|
115
111
|
## 项目架构
|
|
116
112
|
|