bmall-mcp 1.0.1 → 1.0.2
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 +51 -40
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,77 +4,88 @@ MCP Server for bmall development rules and tools.
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- 📋
|
|
8
|
-
- 🔄
|
|
9
|
-
- 📦
|
|
7
|
+
- 📋 从 Git 同步 bmall Rules 到 IDE 目录
|
|
8
|
+
- 🔄 支持 Kiro、Cursor、Windsurf
|
|
9
|
+
- 📦 支持 iOS、Android、Web、Flutter、Common 五种规则类型
|
|
10
|
+
- 🚀 规范化 Git 提交
|
|
10
11
|
|
|
11
12
|
## Installation
|
|
12
13
|
|
|
13
14
|
```bash
|
|
14
|
-
|
|
15
|
-
npm run build
|
|
15
|
+
npx -y bmall-mcp
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
20
|
-
###
|
|
20
|
+
### 在 Kiro 中配置
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
npm run dev
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### In Kiro
|
|
27
|
-
|
|
28
|
-
Add to `.kiro/settings/mcp.json`:
|
|
22
|
+
添加到 `~/.kiro/settings/mcp.json`:
|
|
29
23
|
|
|
30
24
|
```json
|
|
31
25
|
{
|
|
32
26
|
"mcpServers": {
|
|
33
27
|
"bmall": {
|
|
34
28
|
"command": "npx",
|
|
35
|
-
"args": ["-y", "bmall-mcp"]
|
|
36
|
-
"env": {}
|
|
29
|
+
"args": ["-y", "bmall-mcp"]
|
|
37
30
|
}
|
|
38
31
|
}
|
|
39
32
|
}
|
|
40
33
|
```
|
|
41
34
|
|
|
42
|
-
|
|
35
|
+
### 可用工具
|
|
36
|
+
|
|
37
|
+
#### 1. pull_rules - 下载 Rules
|
|
38
|
+
|
|
39
|
+
从 Git 仓库下载 bmall Rules 到 IDE 目录。
|
|
43
40
|
|
|
44
41
|
```
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
同步 bmall iOS 的 rules
|
|
43
|
+
同步 bmall common rules
|
|
47
44
|
```
|
|
48
45
|
|
|
49
|
-
|
|
46
|
+
参数:
|
|
47
|
+
- `ide`: 目标 IDE(可选,默认自动检测)
|
|
48
|
+
- `kiro` | `cursor` | `windsurf`
|
|
49
|
+
- `rulesType`: Rules 类型(可选,默认自动检测)
|
|
50
|
+
- `ios` | `android` | `web` | `flutter` | `common`
|
|
51
|
+
|
|
52
|
+
#### 2. push_rules - 上传 Rules
|
|
53
|
+
|
|
54
|
+
将本地修改的 Rules 上传到 Git 仓库。
|
|
50
55
|
|
|
51
56
|
```
|
|
52
|
-
|
|
53
|
-
├── src/
|
|
54
|
-
│ ├── index.ts # MCP Server entry
|
|
55
|
-
│ └── tools/
|
|
56
|
-
│ └── sync.ts # sync_rules implementation
|
|
57
|
-
├── rules/ # bmall Rules files
|
|
58
|
-
├── package.json
|
|
59
|
-
└── tsconfig.json
|
|
57
|
+
上传修改的 iOS rules
|
|
60
58
|
```
|
|
61
59
|
|
|
62
|
-
|
|
60
|
+
参数:
|
|
61
|
+
- `message`: 提交信息(可选)
|
|
62
|
+
- `rulesType`: Rules 类型(可选,默认自动检测)
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
# Build
|
|
66
|
-
npm run build
|
|
64
|
+
#### 3. standard_git_commit - 规范化提交
|
|
67
65
|
|
|
68
|
-
|
|
69
|
-
npm start
|
|
66
|
+
自动分析改动内容,生成符合约定式提交规范的 commit message 并推送。
|
|
70
67
|
|
|
71
|
-
# Dev with ts-node
|
|
72
|
-
npm run dev
|
|
73
68
|
```
|
|
69
|
+
提交代码,需求名称是语音转写SDK
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
参数:
|
|
73
|
+
- `scope`: 需求名称(必填),如:语音转写SDK、购物车、登录模块
|
|
74
|
+
|
|
75
|
+
## Changelog
|
|
76
|
+
|
|
77
|
+
### v1.0.2 (2026-01-12)
|
|
78
|
+
- ✅ 新增 `common` 规则类型支持
|
|
79
|
+
- ✅ 更新 README 文档
|
|
80
|
+
|
|
81
|
+
### v1.0.1 (2026-01-12)
|
|
82
|
+
- ⚠️ 跳过(发布时 README 未更新)
|
|
83
|
+
|
|
84
|
+
### v1.0.0
|
|
85
|
+
- ✅ 初始版本
|
|
86
|
+
- ✅ pull_rules / push_rules / standard_git_commit 三个工具
|
|
87
|
+
- ✅ 支持 iOS/Android/Web/Flutter 四种规则类型
|
|
74
88
|
|
|
75
|
-
##
|
|
89
|
+
## License
|
|
76
90
|
|
|
77
|
-
|
|
78
|
-
- [ ] Add Git sync functionality
|
|
79
|
-
- [ ] Publish to npm
|
|
80
|
-
- [ ] Create one-click setup script
|
|
91
|
+
MIT
|