@zzp123/mcp-zentao 1.17.1 → 1.17.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/CHANGELOG.md +26 -0
- package/README.md +9 -12
- package/dist/index-pm.js +0 -70
- package/dist/index-qa.js +0 -83
- package/dist/roleConfig.js +2 -5
- package/package.json +1 -1
- package/scripts/generate-role-versions.cjs +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.17.3] - 2025-11-10
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- **测试工程师版优化** 🧪
|
|
12
|
+
- 从测试工程师版 (mcp-zentao-qa) 移除构建版本管理工具(4个工具)和工单管理工具(5个工具)
|
|
13
|
+
- 工具数量从 38 个减少到 29 个
|
|
14
|
+
- 包大小从 38 KB 减少到约 27 KB
|
|
15
|
+
- 更专注于Bug跟踪和测试用例管理核心功能
|
|
16
|
+
|
|
17
|
+
### Technical
|
|
18
|
+
- 更新 `roleConfig.ts` 中的 qa 角色配置
|
|
19
|
+
- 重新生成测试工程师版源文件 (`src/index-qa.ts`)
|
|
20
|
+
|
|
21
|
+
## [1.17.2] - 2025-11-10
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- **产品经理版优化** 📊
|
|
25
|
+
- 从产品经理版 (mcp-zentao-pm) 移除反馈管理工具(7个工具)
|
|
26
|
+
- 工具数量从 54 个减少到 47 个
|
|
27
|
+
- 包大小从 25 KB 减少到约 22 KB
|
|
28
|
+
- 更专注于产品规划和需求管理核心功能
|
|
29
|
+
|
|
30
|
+
### Technical
|
|
31
|
+
- 更新 `roleConfig.ts` 中的 pm 角色配置
|
|
32
|
+
- 重新生成产品经理版源文件 (`src/index-pm.ts`)
|
|
33
|
+
|
|
8
34
|
## [1.17.1] - 2025-11-10
|
|
9
35
|
|
|
10
36
|
### Changed
|
package/README.md
CHANGED
|
@@ -18,8 +18,8 @@ npm install @zzp123/mcp-zentao -g
|
|
|
18
18
|
| 版本 | 命令 | 工具数量 | 文件大小 | 适用角色 |
|
|
19
19
|
|------|------|---------|---------|---------|
|
|
20
20
|
| **完整版** | `zentao` | 94个 | 69 KB | 需要使用全部功能 |
|
|
21
|
-
| **产品经理版** | `zentao-pm` |
|
|
22
|
-
| **测试工程师版** | `zentao-qa` |
|
|
21
|
+
| **产品经理版** | `zentao-pm` | 47个 | 44 KB (-36%) | 需求、产品、计划管理 |
|
|
22
|
+
| **测试工程师版** | `zentao-qa` | 29个 | 27 KB (-61%) | Bug、测试用例管理 |
|
|
23
23
|
| **开发工程师版** | `zentao-dev` | 41个 | 37 KB (-46%) | 任务、项目、Bug解决 |
|
|
24
24
|
|
|
25
25
|
### 如何选择版本?
|
|
@@ -47,7 +47,6 @@ npm install @zzp123/mcp-zentao -g
|
|
|
47
47
|
- ✅ 产品管理
|
|
48
48
|
- ✅ 计划管理
|
|
49
49
|
- ✅ 项目集管理
|
|
50
|
-
- ✅ 反馈管理
|
|
51
50
|
- ✅ Bug查看(只读)
|
|
52
51
|
- ✅ 任务查看(只读)
|
|
53
52
|
- ✅ 评论功能
|
|
@@ -61,11 +60,9 @@ npm install @zzp123/mcp-zentao -g
|
|
|
61
60
|
- ✅ 初始化配置
|
|
62
61
|
- ✅ Bug管理(创建、查看、修改、解决、删除)
|
|
63
62
|
- ✅ 测试用例管理
|
|
64
|
-
- ✅ 构建版本管理
|
|
65
63
|
- ✅ 需求查看(只读)
|
|
66
64
|
- ✅ 任务查看(只读)
|
|
67
65
|
- ✅ 评论功能
|
|
68
|
-
- ✅ 工单管理
|
|
69
66
|
- ✅ 文件上传
|
|
70
67
|
</details>
|
|
71
68
|
|
|
@@ -87,15 +84,15 @@ npm install @zzp123/mcp-zentao -g
|
|
|
87
84
|
|
|
88
85
|
查看完整的版本更新历史,请访问 [CHANGELOG.md](./CHANGELOG.md)
|
|
89
86
|
|
|
90
|
-
**最新版本**: v1.17.
|
|
91
|
-
-
|
|
92
|
-
- 📊
|
|
93
|
-
-
|
|
87
|
+
**最新版本**: v1.17.3 - 2025-11-10
|
|
88
|
+
- 🧪 测试工程师版优化(移除构建版本管理和工单管理工具)
|
|
89
|
+
- 📊 测试版工具从 38 个减少到 29 个,减少上下文占用 61%
|
|
90
|
+
- 🎯 更专注于Bug跟踪和测试用例管理核心功能
|
|
94
91
|
|
|
95
92
|
**近期版本**:
|
|
96
|
-
- v1.
|
|
97
|
-
- v1.
|
|
98
|
-
- v1.
|
|
93
|
+
- v1.17.2 - 产品经理版优化(移除反馈管理工具,47个工具)
|
|
94
|
+
- v1.17.1 - 开发工程师版优化(移除工单管理工具,41个工具)
|
|
95
|
+
- v1.17.0 - 新增三个角色专用版本(PM/QA/Dev)
|
|
99
96
|
|
|
100
97
|
## 使用方法
|
|
101
98
|
|
package/dist/index-pm.js
CHANGED
|
@@ -568,76 +568,6 @@ server.tool("deleteStory", "删除需求 - 支持软件需求(story)和用户需
|
|
|
568
568
|
throw new Error("Please initialize Zentao API first");
|
|
569
569
|
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.deleteStory(storyId), null, 2) }] };
|
|
570
570
|
});
|
|
571
|
-
server.tool("getFeedbacks", {
|
|
572
|
-
solution: z.string().optional(),
|
|
573
|
-
orderBy: z.string().optional(),
|
|
574
|
-
page: z.number().optional(),
|
|
575
|
-
limit: z.number().optional()
|
|
576
|
-
}, async (params) => {
|
|
577
|
-
if (!zentaoApi)
|
|
578
|
-
throw new Error("Please initialize Zentao API first");
|
|
579
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.getFeedbacks(params), null, 2) }] };
|
|
580
|
-
});
|
|
581
|
-
server.tool("getFeedbackDetail", { feedbackId: z.number() }, async ({ feedbackId }) => {
|
|
582
|
-
if (!zentaoApi)
|
|
583
|
-
throw new Error("Please initialize Zentao API first");
|
|
584
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.getFeedbackDetail(feedbackId), null, 2) }] };
|
|
585
|
-
});
|
|
586
|
-
server.tool("createFeedback", {
|
|
587
|
-
product: z.number(),
|
|
588
|
-
module: z.number().optional(),
|
|
589
|
-
title: z.string(),
|
|
590
|
-
type: z.string().optional(),
|
|
591
|
-
desc: z.string().optional(),
|
|
592
|
-
public: z.number().optional(),
|
|
593
|
-
notify: z.number().optional(),
|
|
594
|
-
notifyEmail: z.string().optional(),
|
|
595
|
-
feedbackBy: z.string().optional()
|
|
596
|
-
}, async (params) => {
|
|
597
|
-
if (!zentaoApi)
|
|
598
|
-
throw new Error("Please initialize Zentao API first");
|
|
599
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.createFeedback(params), null, 2) }] };
|
|
600
|
-
});
|
|
601
|
-
server.tool("updateFeedback", {
|
|
602
|
-
feedbackId: z.number(),
|
|
603
|
-
product: z.number().optional(),
|
|
604
|
-
module: z.number().optional(),
|
|
605
|
-
title: z.string().optional(),
|
|
606
|
-
type: z.string().optional(),
|
|
607
|
-
desc: z.string().optional(),
|
|
608
|
-
public: z.number().optional(),
|
|
609
|
-
notify: z.number().optional(),
|
|
610
|
-
notifyEmail: z.string().optional(),
|
|
611
|
-
feedbackBy: z.string().optional()
|
|
612
|
-
}, async ({ feedbackId, ...params }) => {
|
|
613
|
-
if (!zentaoApi)
|
|
614
|
-
throw new Error("Please initialize Zentao API first");
|
|
615
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.updateFeedback(feedbackId, params), null, 2) }] };
|
|
616
|
-
});
|
|
617
|
-
server.tool("deleteFeedback", { feedbackId: z.number() }, async ({ feedbackId }) => {
|
|
618
|
-
if (!zentaoApi)
|
|
619
|
-
throw new Error("Please initialize Zentao API first");
|
|
620
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.deleteFeedback(feedbackId), null, 2) }] };
|
|
621
|
-
});
|
|
622
|
-
server.tool("assignFeedback", {
|
|
623
|
-
feedbackId: z.number(),
|
|
624
|
-
assignedTo: z.string().optional(),
|
|
625
|
-
comment: z.string().optional(),
|
|
626
|
-
mailto: z.string().optional()
|
|
627
|
-
}, async ({ feedbackId, ...params }) => {
|
|
628
|
-
if (!zentaoApi)
|
|
629
|
-
throw new Error("Please initialize Zentao API first");
|
|
630
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.assignFeedback(feedbackId, params), null, 2) }] };
|
|
631
|
-
});
|
|
632
|
-
server.tool("closeFeedback", {
|
|
633
|
-
feedbackId: z.number(),
|
|
634
|
-
closedReason: z.string().optional(),
|
|
635
|
-
comment: z.string().optional()
|
|
636
|
-
}, async ({ feedbackId, ...params }) => {
|
|
637
|
-
if (!zentaoApi)
|
|
638
|
-
throw new Error("Please initialize Zentao API first");
|
|
639
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.closeFeedback(feedbackId, params), null, 2) }] };
|
|
640
|
-
});
|
|
641
571
|
server.tool("getTickets", {
|
|
642
572
|
browseType: z.string().optional(),
|
|
643
573
|
param: z.string().optional(),
|
package/dist/index-qa.js
CHANGED
|
@@ -384,89 +384,6 @@ server.tool("deleteTestCase", { testCaseId: z.number() }, async ({ testCaseId })
|
|
|
384
384
|
throw new Error("Please initialize Zentao API first");
|
|
385
385
|
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.deleteTestCase(testCaseId), null, 2) }] };
|
|
386
386
|
});
|
|
387
|
-
server.tool("createBuild", {
|
|
388
|
-
projectId: z.number(),
|
|
389
|
-
execution: z.number(),
|
|
390
|
-
product: z.number(),
|
|
391
|
-
branch: z.number().optional(),
|
|
392
|
-
name: z.string(),
|
|
393
|
-
builder: z.string(),
|
|
394
|
-
date: z.string().optional(),
|
|
395
|
-
scmPath: z.string().optional(),
|
|
396
|
-
filePath: z.string().optional(),
|
|
397
|
-
desc: z.string().optional()
|
|
398
|
-
}, async ({ projectId, ...params }) => {
|
|
399
|
-
if (!zentaoApi)
|
|
400
|
-
throw new Error("Please initialize Zentao API first");
|
|
401
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.createBuild(projectId, params), null, 2) }] };
|
|
402
|
-
});
|
|
403
|
-
server.tool("getBuildDetail", { buildId: z.number() }, async ({ buildId }) => {
|
|
404
|
-
if (!zentaoApi)
|
|
405
|
-
throw new Error("Please initialize Zentao API first");
|
|
406
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.getBuildDetail(buildId), null, 2) }] };
|
|
407
|
-
});
|
|
408
|
-
server.tool("updateBuild", {
|
|
409
|
-
buildId: z.number(),
|
|
410
|
-
name: z.string().optional(),
|
|
411
|
-
builder: z.string().optional(),
|
|
412
|
-
date: z.string().optional(),
|
|
413
|
-
scmPath: z.string().optional(),
|
|
414
|
-
filePath: z.string().optional(),
|
|
415
|
-
desc: z.string().optional()
|
|
416
|
-
}, async ({ buildId, ...params }) => {
|
|
417
|
-
if (!zentaoApi)
|
|
418
|
-
throw new Error("Please initialize Zentao API first");
|
|
419
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.updateBuild(buildId, params), null, 2) }] };
|
|
420
|
-
});
|
|
421
|
-
server.tool("deleteBuild", { buildId: z.number() }, async ({ buildId }) => {
|
|
422
|
-
if (!zentaoApi)
|
|
423
|
-
throw new Error("Please initialize Zentao API first");
|
|
424
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.deleteBuild(buildId), null, 2) }] };
|
|
425
|
-
});
|
|
426
|
-
server.tool("getTickets", {
|
|
427
|
-
browseType: z.string().optional(),
|
|
428
|
-
param: z.string().optional(),
|
|
429
|
-
orderBy: z.string().optional(),
|
|
430
|
-
page: z.number().optional(),
|
|
431
|
-
limit: z.number().optional()
|
|
432
|
-
}, async (params) => {
|
|
433
|
-
if (!zentaoApi)
|
|
434
|
-
throw new Error("Please initialize Zentao API first");
|
|
435
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.getTickets(params), null, 2) }] };
|
|
436
|
-
});
|
|
437
|
-
server.tool("getTicketDetail", { ticketId: z.number() }, async ({ ticketId }) => {
|
|
438
|
-
if (!zentaoApi)
|
|
439
|
-
throw new Error("Please initialize Zentao API first");
|
|
440
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.getTicketDetail(ticketId), null, 2) }] };
|
|
441
|
-
});
|
|
442
|
-
server.tool("createTicket", {
|
|
443
|
-
product: z.number(),
|
|
444
|
-
module: z.number(),
|
|
445
|
-
title: z.string(),
|
|
446
|
-
type: z.string().optional(),
|
|
447
|
-
desc: z.string().optional()
|
|
448
|
-
}, async (params) => {
|
|
449
|
-
if (!zentaoApi)
|
|
450
|
-
throw new Error("Please initialize Zentao API first");
|
|
451
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.createTicket(params), null, 2) }] };
|
|
452
|
-
});
|
|
453
|
-
server.tool("updateTicket", {
|
|
454
|
-
ticketId: z.number(),
|
|
455
|
-
product: z.number().optional(),
|
|
456
|
-
module: z.number().optional(),
|
|
457
|
-
title: z.string().optional(),
|
|
458
|
-
type: z.string().optional(),
|
|
459
|
-
desc: z.string().optional()
|
|
460
|
-
}, async ({ ticketId, ...params }) => {
|
|
461
|
-
if (!zentaoApi)
|
|
462
|
-
throw new Error("Please initialize Zentao API first");
|
|
463
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.updateTicket(ticketId, params), null, 2) }] };
|
|
464
|
-
});
|
|
465
|
-
server.tool("deleteTicket", { ticketId: z.number() }, async ({ ticketId }) => {
|
|
466
|
-
if (!zentaoApi)
|
|
467
|
-
throw new Error("Please initialize Zentao API first");
|
|
468
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.deleteTicket(ticketId), null, 2) }] };
|
|
469
|
-
});
|
|
470
387
|
server.tool("getModules", {
|
|
471
388
|
type: z.enum(['story', 'task', 'bug', 'case', 'feedback', 'product']),
|
|
472
389
|
id: z.number(),
|
package/dist/roleConfig.js
CHANGED
|
@@ -86,30 +86,27 @@ export const TOOL_CATEGORIES = {
|
|
|
86
86
|
};
|
|
87
87
|
// 角色权限配置
|
|
88
88
|
export const ROLE_PERMISSIONS = {
|
|
89
|
-
//
|
|
89
|
+
// 产品经理:需求、产品、计划、项目集、评论
|
|
90
90
|
pm: [
|
|
91
91
|
...TOOL_CATEGORIES.init,
|
|
92
92
|
...TOOL_CATEGORIES.story,
|
|
93
93
|
...TOOL_CATEGORIES.product,
|
|
94
94
|
...TOOL_CATEGORIES.plan,
|
|
95
95
|
...TOOL_CATEGORIES.program,
|
|
96
|
-
...TOOL_CATEGORIES.feedback,
|
|
97
96
|
...TOOL_CATEGORIES.bugReadonly,
|
|
98
97
|
...TOOL_CATEGORIES.taskReadonly,
|
|
99
98
|
...TOOL_CATEGORIES.comment,
|
|
100
99
|
...TOOL_CATEGORIES.ticket,
|
|
101
100
|
...TOOL_CATEGORIES.utility
|
|
102
101
|
],
|
|
103
|
-
// 测试工程师:Bug
|
|
102
|
+
// 测试工程师:Bug、测试用例、评论
|
|
104
103
|
qa: [
|
|
105
104
|
...TOOL_CATEGORIES.init,
|
|
106
105
|
...TOOL_CATEGORIES.bug,
|
|
107
106
|
...TOOL_CATEGORIES.testcase,
|
|
108
|
-
...TOOL_CATEGORIES.build,
|
|
109
107
|
...TOOL_CATEGORIES.storyReadonly,
|
|
110
108
|
...TOOL_CATEGORIES.taskReadonly,
|
|
111
109
|
...TOOL_CATEGORIES.comment,
|
|
112
|
-
...TOOL_CATEGORIES.ticket,
|
|
113
110
|
...TOOL_CATEGORIES.utility
|
|
114
111
|
],
|
|
115
112
|
// 开发工程师:任务、Bug解决、项目、迭代、版本构建、评论
|
package/package.json
CHANGED
|
@@ -32,7 +32,6 @@ const ROLE_PERMISSIONS = {
|
|
|
32
32
|
...TOOL_CATEGORIES.product,
|
|
33
33
|
...TOOL_CATEGORIES.plan,
|
|
34
34
|
...TOOL_CATEGORIES.program,
|
|
35
|
-
...TOOL_CATEGORIES.feedback,
|
|
36
35
|
...TOOL_CATEGORIES.bugReadonly,
|
|
37
36
|
...TOOL_CATEGORIES.taskReadonly,
|
|
38
37
|
...TOOL_CATEGORIES.comment,
|
|
@@ -43,11 +42,9 @@ const ROLE_PERMISSIONS = {
|
|
|
43
42
|
...TOOL_CATEGORIES.init,
|
|
44
43
|
...TOOL_CATEGORIES.bug,
|
|
45
44
|
...TOOL_CATEGORIES.testcase,
|
|
46
|
-
...TOOL_CATEGORIES.build,
|
|
47
45
|
...TOOL_CATEGORIES.storyReadonly,
|
|
48
46
|
...TOOL_CATEGORIES.taskReadonly,
|
|
49
47
|
...TOOL_CATEGORIES.comment,
|
|
50
|
-
...TOOL_CATEGORIES.ticket,
|
|
51
48
|
...TOOL_CATEGORIES.utility
|
|
52
49
|
],
|
|
53
50
|
dev: [
|