@zzp123/mcp-zentao 1.17.2 → 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 CHANGED
@@ -5,6 +5,19 @@ 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
+
8
21
  ## [1.17.2] - 2025-11-10
9
22
 
10
23
  ### Changed
package/README.md CHANGED
@@ -19,7 +19,7 @@ npm install @zzp123/mcp-zentao -g
19
19
  |------|------|---------|---------|---------|
20
20
  | **完整版** | `zentao` | 94个 | 69 KB | 需要使用全部功能 |
21
21
  | **产品经理版** | `zentao-pm` | 47个 | 44 KB (-36%) | 需求、产品、计划管理 |
22
- | **测试工程师版** | `zentao-qa` | 38个 | 38 KB (-45%) | Bug、测试用例、构建 |
22
+ | **测试工程师版** | `zentao-qa` | 29个 | 27 KB (-61%) | Bug、测试用例管理 |
23
23
  | **开发工程师版** | `zentao-dev` | 41个 | 37 KB (-46%) | 任务、项目、Bug解决 |
24
24
 
25
25
  ### 如何选择版本?
@@ -60,11 +60,9 @@ npm install @zzp123/mcp-zentao -g
60
60
  - ✅ 初始化配置
61
61
  - ✅ Bug管理(创建、查看、修改、解决、删除)
62
62
  - ✅ 测试用例管理
63
- - ✅ 构建版本管理
64
63
  - ✅ 需求查看(只读)
65
64
  - ✅ 任务查看(只读)
66
65
  - ✅ 评论功能
67
- - ✅ 工单管理
68
66
  - ✅ 文件上传
69
67
  </details>
70
68
 
@@ -86,15 +84,15 @@ npm install @zzp123/mcp-zentao -g
86
84
 
87
85
  查看完整的版本更新历史,请访问 [CHANGELOG.md](./CHANGELOG.md)
88
86
 
89
- **最新版本**: v1.17.0 - 2025-11-10
90
- - 🎭 新增三个角色专用版本(PM/QA/Dev)
91
- - 📊 大幅减少上下文占用(30-45%)
92
- - 🚀 提升 LLM 响应速度和准确性
87
+ **最新版本**: v1.17.3 - 2025-11-10
88
+ - 🧪 测试工程师版优化(移除构建版本管理和工单管理工具)
89
+ - 📊 测试版工具从 38 个减少到 29 个,减少上下文占用 61%
90
+ - 🎯 更专注于Bug跟踪和测试用例管理核心功能
93
91
 
94
92
  **近期版本**:
95
- - v1.16.0 - 修复评论功能,使用正确的 REST API v1 接口
96
- - v1.15.0 - 新增完整的评论管理工具
97
- - v1.9.0 - 修复 getMyBugs 工具的过滤逻辑问题
93
+ - v1.17.2 - 产品经理版优化(移除反馈管理工具,47个工具)
94
+ - v1.17.1 - 开发工程师版优化(移除工单管理工具,41个工具)
95
+ - v1.17.0 - 新增三个角色专用版本(PM/QA/Dev)
98
96
 
99
97
  ## 使用方法
100
98
 
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(),
@@ -99,16 +99,14 @@ export const ROLE_PERMISSIONS = {
99
99
  ...TOOL_CATEGORIES.ticket,
100
100
  ...TOOL_CATEGORIES.utility
101
101
  ],
102
- // 测试工程师:Bug、测试用例、版本构建、评论
102
+ // 测试工程师:Bug、测试用例、评论
103
103
  qa: [
104
104
  ...TOOL_CATEGORIES.init,
105
105
  ...TOOL_CATEGORIES.bug,
106
106
  ...TOOL_CATEGORIES.testcase,
107
- ...TOOL_CATEGORIES.build,
108
107
  ...TOOL_CATEGORIES.storyReadonly,
109
108
  ...TOOL_CATEGORIES.taskReadonly,
110
109
  ...TOOL_CATEGORIES.comment,
111
- ...TOOL_CATEGORIES.ticket,
112
110
  ...TOOL_CATEGORIES.utility
113
111
  ],
114
112
  // 开发工程师:任务、Bug解决、项目、迭代、版本构建、评论
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zzp123/mcp-zentao",
3
- "version": "1.17.2",
3
+ "version": "1.17.3",
4
4
  "description": "禅道项目管理系统的高级API集成包 - 完整版,包含所有94个工具。另有产品经理、测试工程师、开发工程师专用精简版本可选",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -42,11 +42,9 @@ const ROLE_PERMISSIONS = {
42
42
  ...TOOL_CATEGORIES.init,
43
43
  ...TOOL_CATEGORIES.bug,
44
44
  ...TOOL_CATEGORIES.testcase,
45
- ...TOOL_CATEGORIES.build,
46
45
  ...TOOL_CATEGORIES.storyReadonly,
47
46
  ...TOOL_CATEGORIES.taskReadonly,
48
47
  ...TOOL_CATEGORIES.comment,
49
- ...TOOL_CATEGORIES.ticket,
50
48
  ...TOOL_CATEGORIES.utility
51
49
  ],
52
50
  dev: [