mcp-probe-kit 1.2.4 → 1.2.7
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 +808 -736
- package/build/index.js +4 -4
- package/build/tools/gencommit.js +19 -9
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { detectShell, initSetting, initProject, gencommit, debug, genapi, codeRe
|
|
|
6
6
|
// 创建MCP服务器实例
|
|
7
7
|
const server = new Server({
|
|
8
8
|
name: "mcp-probe-kit",
|
|
9
|
-
version: "1.2.
|
|
9
|
+
version: "1.2.7",
|
|
10
10
|
}, {
|
|
11
11
|
capabilities: {
|
|
12
12
|
tools: {},
|
|
@@ -69,7 +69,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
name: "gencommit",
|
|
72
|
-
description: "【生成提交】分析代码变更并生成规范的 Git commit
|
|
72
|
+
description: "【生成提交】分析代码变更并生成规范的 Git commit 消息(支持 emoji)",
|
|
73
73
|
inputSchema: {
|
|
74
74
|
type: "object",
|
|
75
75
|
properties: {
|
|
@@ -79,7 +79,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
79
79
|
},
|
|
80
80
|
type: {
|
|
81
81
|
type: "string",
|
|
82
|
-
description: "提交类型:
|
|
82
|
+
description: "提交类型:fixed, fix, feat, docs, style, chore, refactor, test",
|
|
83
83
|
},
|
|
84
84
|
},
|
|
85
85
|
required: [],
|
|
@@ -528,7 +528,7 @@ server.setRequestHandler(ReadResourceRequestSchema, async (request) => {
|
|
|
528
528
|
timestamp: new Date().toISOString(),
|
|
529
529
|
serverInfo: {
|
|
530
530
|
name: "mcp-probe-kit",
|
|
531
|
-
version: "1.
|
|
531
|
+
version: "1.2.7",
|
|
532
532
|
description: "Cursor 开发增强工具集",
|
|
533
533
|
},
|
|
534
534
|
tools: {
|
package/build/tools/gencommit.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export async function gencommit(args) {
|
|
3
3
|
try {
|
|
4
4
|
const changes = args?.changes || "";
|
|
5
|
-
const type = args?.type || ""; //
|
|
5
|
+
const type = args?.type || ""; // fixed, fix, feat, docs, style, chore, refactor, test
|
|
6
6
|
const message = `请按以下步骤生成规范的 Git commit 消息:
|
|
7
7
|
|
|
8
8
|
**第一步:获取变更信息**
|
|
@@ -31,13 +31,14 @@ ${changes ? `已提供变更内容:\n${changes}` : `
|
|
|
31
31
|
\`\`\`
|
|
32
32
|
|
|
33
33
|
**类型(type)**:
|
|
34
|
-
-
|
|
35
|
-
- fix
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
34
|
+
- fixed 🐛: 线上/测试缺陷修复
|
|
35
|
+
- fix 🐛: 历史中也存在的写法,语义同 fixed,保持兼容
|
|
36
|
+
- feat 🎸: 新增或迭代业务功能
|
|
37
|
+
- docs ✏️: 文档相关更新
|
|
38
|
+
- style 💄: UI/样式调整,无业务逻辑变更
|
|
39
|
+
- chore 🤖: 构建、脚本、依赖等杂项
|
|
40
|
+
- refactor ♻️(可选): 重构、内部结构调整,不改变外部行为
|
|
41
|
+
- test ✅(可选): 测试相关
|
|
41
42
|
|
|
42
43
|
**要求**:
|
|
43
44
|
1. subject 使用中文,简洁明了(不超过 50 字)
|
|
@@ -47,7 +48,7 @@ ${changes ? `已提供变更内容:\n${changes}` : `
|
|
|
47
48
|
|
|
48
49
|
**示例**:
|
|
49
50
|
\`\`\`
|
|
50
|
-
feat(auth): 添加用户登录功能
|
|
51
|
+
feat(auth): 🎸 添加用户登录功能
|
|
51
52
|
|
|
52
53
|
- 实现 JWT 认证机制
|
|
53
54
|
- 添加密码加密存储
|
|
@@ -56,6 +57,15 @@ feat(auth): 添加用户登录功能
|
|
|
56
57
|
Closes #123
|
|
57
58
|
\`\`\`
|
|
58
59
|
|
|
60
|
+
\`\`\`
|
|
61
|
+
fixed(api): 🐛 修复用户数据返回异常
|
|
62
|
+
|
|
63
|
+
- 修复空值判断逻辑
|
|
64
|
+
- 优化错误处理机制
|
|
65
|
+
|
|
66
|
+
Closes #456
|
|
67
|
+
\`\`\`
|
|
68
|
+
|
|
59
69
|
---
|
|
60
70
|
|
|
61
71
|
**第三步:生成并提交**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-probe-kit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "Cursor Development Enhancement Toolkit - MCP Server with 23 practical tools for code quality, development efficiency, and project management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|