@zzp123/mcp-zentao 1.17.3 → 1.17.4
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 +13 -0
- package/README.md +6 -7
- package/dist/index-pm.js +0 -44
- package/dist/roleConfig.js +0 -1
- package/package.json +1 -1
- package/scripts/generate-role-versions.cjs +0 -1
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.4] - 2025-11-10
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- **产品经理版再次优化** 📊
|
|
12
|
+
- 从产品经理版 (mcp-zentao-pm) 移除工单管理工具(5个工具)
|
|
13
|
+
- 工具数量从 47 个减少到 42 个
|
|
14
|
+
- 包大小从 44 KB 减少到约 40 KB
|
|
15
|
+
- 更专注于需求、产品和计划管理核心功能
|
|
16
|
+
|
|
17
|
+
### Technical
|
|
18
|
+
- 更新 `roleConfig.ts` 中的 pm 角色配置
|
|
19
|
+
- 重新生成产品经理版源文件 (`src/index-pm.ts`)
|
|
20
|
+
|
|
8
21
|
## [1.17.3] - 2025-11-10
|
|
9
22
|
|
|
10
23
|
### Changed
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ npm install @zzp123/mcp-zentao -g
|
|
|
18
18
|
| 版本 | 命令 | 工具数量 | 文件大小 | 适用角色 |
|
|
19
19
|
|------|------|---------|---------|---------|
|
|
20
20
|
| **完整版** | `zentao` | 94个 | 69 KB | 需要使用全部功能 |
|
|
21
|
-
| **产品经理版** | `zentao-pm` |
|
|
21
|
+
| **产品经理版** | `zentao-pm` | 42个 | 40 KB (-55%) | 需求、产品、计划管理 |
|
|
22
22
|
| **测试工程师版** | `zentao-qa` | 29个 | 27 KB (-61%) | Bug、测试用例管理 |
|
|
23
23
|
| **开发工程师版** | `zentao-dev` | 41个 | 37 KB (-46%) | 任务、项目、Bug解决 |
|
|
24
24
|
|
|
@@ -50,7 +50,6 @@ npm install @zzp123/mcp-zentao -g
|
|
|
50
50
|
- ✅ Bug查看(只读)
|
|
51
51
|
- ✅ 任务查看(只读)
|
|
52
52
|
- ✅ 评论功能
|
|
53
|
-
- ✅ 工单管理
|
|
54
53
|
- ✅ 文件上传
|
|
55
54
|
</details>
|
|
56
55
|
|
|
@@ -84,15 +83,15 @@ npm install @zzp123/mcp-zentao -g
|
|
|
84
83
|
|
|
85
84
|
查看完整的版本更新历史,请访问 [CHANGELOG.md](./CHANGELOG.md)
|
|
86
85
|
|
|
87
|
-
**最新版本**: v1.17.
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
86
|
+
**最新版本**: v1.17.4 - 2025-11-10
|
|
87
|
+
- 📊 产品经理版再次优化(移除工单管理工具)
|
|
88
|
+
- 🎯 产品经理版工具从 47 个减少到 42 个,减少上下文占用 55%
|
|
89
|
+
- 🚀 更专注于需求、产品和计划管理核心功能
|
|
91
90
|
|
|
92
91
|
**近期版本**:
|
|
92
|
+
- v1.17.3 - 测试工程师版优化(移除构建版本和工单管理,29个工具)
|
|
93
93
|
- v1.17.2 - 产品经理版优化(移除反馈管理工具,47个工具)
|
|
94
94
|
- v1.17.1 - 开发工程师版优化(移除工单管理工具,41个工具)
|
|
95
|
-
- v1.17.0 - 新增三个角色专用版本(PM/QA/Dev)
|
|
96
95
|
|
|
97
96
|
## 使用方法
|
|
98
97
|
|
package/dist/index-pm.js
CHANGED
|
@@ -568,50 +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("getTickets", {
|
|
572
|
-
browseType: z.string().optional(),
|
|
573
|
-
param: z.string().optional(),
|
|
574
|
-
orderBy: z.string().optional(),
|
|
575
|
-
page: z.number().optional(),
|
|
576
|
-
limit: z.number().optional()
|
|
577
|
-
}, async (params) => {
|
|
578
|
-
if (!zentaoApi)
|
|
579
|
-
throw new Error("Please initialize Zentao API first");
|
|
580
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.getTickets(params), null, 2) }] };
|
|
581
|
-
});
|
|
582
|
-
server.tool("getTicketDetail", { ticketId: z.number() }, async ({ ticketId }) => {
|
|
583
|
-
if (!zentaoApi)
|
|
584
|
-
throw new Error("Please initialize Zentao API first");
|
|
585
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.getTicketDetail(ticketId), null, 2) }] };
|
|
586
|
-
});
|
|
587
|
-
server.tool("createTicket", {
|
|
588
|
-
product: z.number(),
|
|
589
|
-
module: z.number(),
|
|
590
|
-
title: z.string(),
|
|
591
|
-
type: z.string().optional(),
|
|
592
|
-
desc: z.string().optional()
|
|
593
|
-
}, async (params) => {
|
|
594
|
-
if (!zentaoApi)
|
|
595
|
-
throw new Error("Please initialize Zentao API first");
|
|
596
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.createTicket(params), null, 2) }] };
|
|
597
|
-
});
|
|
598
|
-
server.tool("updateTicket", {
|
|
599
|
-
ticketId: z.number(),
|
|
600
|
-
product: z.number().optional(),
|
|
601
|
-
module: z.number().optional(),
|
|
602
|
-
title: z.string().optional(),
|
|
603
|
-
type: z.string().optional(),
|
|
604
|
-
desc: z.string().optional()
|
|
605
|
-
}, async ({ ticketId, ...params }) => {
|
|
606
|
-
if (!zentaoApi)
|
|
607
|
-
throw new Error("Please initialize Zentao API first");
|
|
608
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.updateTicket(ticketId, params), null, 2) }] };
|
|
609
|
-
});
|
|
610
|
-
server.tool("deleteTicket", { ticketId: z.number() }, async ({ ticketId }) => {
|
|
611
|
-
if (!zentaoApi)
|
|
612
|
-
throw new Error("Please initialize Zentao API first");
|
|
613
|
-
return { content: [{ type: "text", text: JSON.stringify(await zentaoApi.deleteTicket(ticketId), null, 2) }] };
|
|
614
|
-
});
|
|
615
571
|
server.tool("getModules", {
|
|
616
572
|
type: z.enum(['story', 'task', 'bug', 'case', 'feedback', 'product']),
|
|
617
573
|
id: z.number(),
|
package/dist/roleConfig.js
CHANGED
package/package.json
CHANGED