@zzp123/mcp-zentao 1.17.8 → 1.17.9

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.
@@ -33,9 +33,9 @@ export declare class ZentaoAPI {
33
33
  */
34
34
  private filterBugFields;
35
35
  /**
36
- * 获取 Bug 列表
36
+ * 获取我的 Bug 列表(默认只查询指派给我的 Bug)
37
37
  *
38
- * @param status Bug状态筛选(支持多种状态,详见BugStatus类型)
38
+ * @param status Bug状态筛选(默认'assigntome'指派给我的,支持多种状态,详见BugStatus类型)
39
39
  * @param productId 产品ID(可选,默认使用第二个产品)
40
40
  * @param page 页码(从1开始,默认1)
41
41
  * @param limit 每页数量(默认20,最大100)
@@ -232,9 +232,9 @@ export class ZentaoAPI {
232
232
  };
233
233
  }
234
234
  /**
235
- * 获取 Bug 列表
235
+ * 获取我的 Bug 列表(默认只查询指派给我的 Bug)
236
236
  *
237
- * @param status Bug状态筛选(支持多种状态,详见BugStatus类型)
237
+ * @param status Bug状态筛选(默认'assigntome'指派给我的,支持多种状态,详见BugStatus类型)
238
238
  * @param productId 产品ID(可选,默认使用第二个产品)
239
239
  * @param page 页码(从1开始,默认1)
240
240
  * @param limit 每页数量(默认20,最大100)
@@ -260,6 +260,8 @@ export class ZentaoAPI {
260
260
  const finalBranch = branch || 'all';
261
261
  const finalOrder = order || 'id_desc';
262
262
  const finalFields = fields || 'basic';
263
+ // 默认查询指派给我的 Bug
264
+ const finalStatus = status || 'assigntome';
263
265
  // 构建查询参数
264
266
  const queryParams = new URLSearchParams();
265
267
  queryParams.append('branch', finalBranch);
@@ -267,11 +269,11 @@ export class ZentaoAPI {
267
269
  queryParams.append('limit', finalLimit.toString());
268
270
  queryParams.append('order', finalOrder);
269
271
  // 添加状态筛选
270
- if (status && status !== 'all') {
271
- queryParams.append('status', status);
272
+ if (finalStatus !== 'all') {
273
+ queryParams.append('status', finalStatus);
272
274
  }
273
275
  try {
274
- console.log(`正在获取产品 ${productId} 的Bug列表,参数: status=${status || 'all'}, branch=${finalBranch}, page=${finalPage}, limit=${finalLimit}, order=${finalOrder}, fields=${finalFields}`);
276
+ console.log(`正在获取产品 ${productId} 的Bug列表,参数: status=${finalStatus}, branch=${finalBranch}, page=${finalPage}, limit=${finalLimit}, order=${finalOrder}, fields=${finalFields}`);
275
277
  const response = await this.request('GET', `/products/${productId}/bugs?${queryParams.toString()}`);
276
278
  console.log(`Bug列表响应: 获取到 ${response.bugs?.length || 0} 条数据`);
277
279
  let bugs = [];
package/dist/index-dev.js CHANGED
@@ -75,7 +75,7 @@ server.tool("getTaskDetail", {
75
75
  content: [{ type: "text", text: JSON.stringify(task, null, 2) }]
76
76
  };
77
77
  });
78
- server.tool("getMyBugs", "获取Bug列表 - 支持多种状态筛选(指派给我、由我创建、未关闭等)和分支筛选", {
78
+ server.tool("getMyBugs", "获取我的Bug列表 - 默认只查询指派给我的Bug,支持多种状态筛选和分支筛选", {
79
79
  status: z.enum([
80
80
  'active', // 激活状态
81
81
  'resolved', // 已解决
@@ -97,7 +97,7 @@ server.tool("getMyBugs", "获取Bug列表 - 支持多种状态筛选(指派给
97
97
  'feedback', // 用户反馈
98
98
  'needconfirm', // 需求变更需确认
99
99
  'bysearch' // 自定义搜索
100
- ]).optional().describe("Bug状态筛选,默认返回所有状态"),
100
+ ]).optional().describe("Bug状态筛选,默认'assigntome'(指派给我的)"),
101
101
  productId: z.number().optional().describe("产品ID,默认使用第二个产品"),
102
102
  page: z.number().optional().describe("页码,从1开始,默认为1"),
103
103
  limit: z.number().optional().describe("每页数量,默认20,最大100"),
package/dist/index-pm.js CHANGED
@@ -85,7 +85,7 @@ server.tool("getProducts", "获取产品列表 - 只返回核心字段(id, 名
85
85
  content: [{ type: "text", text: JSON.stringify(products, null, 2) }]
86
86
  };
87
87
  });
88
- server.tool("getMyBugs", "获取Bug列表 - 支持多种状态筛选(指派给我、由我创建、未关闭等)和分支筛选", {
88
+ server.tool("getMyBugs", "获取我的Bug列表 - 默认只查询指派给我的Bug,支持多种状态筛选和分支筛选", {
89
89
  status: z.enum([
90
90
  'active', // 激活状态
91
91
  'resolved', // 已解决
@@ -107,7 +107,7 @@ server.tool("getMyBugs", "获取Bug列表 - 支持多种状态筛选(指派给
107
107
  'feedback', // 用户反馈
108
108
  'needconfirm', // 需求变更需确认
109
109
  'bysearch' // 自定义搜索
110
- ]).optional().describe("Bug状态筛选,默认返回所有状态"),
110
+ ]).optional().describe("Bug状态筛选,默认'assigntome'(指派给我的)"),
111
111
  productId: z.number().optional().describe("产品ID,默认使用第二个产品"),
112
112
  page: z.number().optional().describe("页码,从1开始,默认为1"),
113
113
  limit: z.number().optional().describe("每页数量,默认20,最大100"),
package/dist/index-qa.js CHANGED
@@ -75,7 +75,7 @@ server.tool("getTaskDetail", {
75
75
  content: [{ type: "text", text: JSON.stringify(task, null, 2) }]
76
76
  };
77
77
  });
78
- server.tool("getMyBugs", "获取Bug列表 - 支持多种状态筛选(指派给我、由我创建、未关闭等)和分支筛选", {
78
+ server.tool("getMyBugs", "获取我的Bug列表 - 默认只查询指派给我的Bug,支持多种状态筛选和分支筛选", {
79
79
  status: z.enum([
80
80
  'active', // 激活状态
81
81
  'resolved', // 已解决
@@ -97,7 +97,7 @@ server.tool("getMyBugs", "获取Bug列表 - 支持多种状态筛选(指派给
97
97
  'feedback', // 用户反馈
98
98
  'needconfirm', // 需求变更需确认
99
99
  'bysearch' // 自定义搜索
100
- ]).optional().describe("Bug状态筛选,默认返回所有状态"),
100
+ ]).optional().describe("Bug状态筛选,默认'assigntome'(指派给我的)"),
101
101
  productId: z.number().optional().describe("产品ID,默认使用第二个产品"),
102
102
  page: z.number().optional().describe("页码,从1开始,默认为1"),
103
103
  limit: z.number().optional().describe("每页数量,默认20,最大100"),
package/dist/index.js CHANGED
@@ -89,7 +89,7 @@ server.tool("getProducts", "获取产品列表 - 只返回核心字段(id, 名
89
89
  };
90
90
  });
91
91
  // Add getMyBugs tool
92
- server.tool("getMyBugs", "获取Bug列表 - 支持多种状态筛选(指派给我、由我创建、未关闭等)和分支筛选", {
92
+ server.tool("getMyBugs", "获取我的Bug列表 - 默认只查询指派给我的Bug,支持多种状态筛选和分支筛选", {
93
93
  status: z.enum([
94
94
  'active', // 激活状态
95
95
  'resolved', // 已解决
@@ -111,7 +111,7 @@ server.tool("getMyBugs", "获取Bug列表 - 支持多种状态筛选(指派给
111
111
  'feedback', // 用户反馈
112
112
  'needconfirm', // 需求变更需确认
113
113
  'bysearch' // 自定义搜索
114
- ]).optional().describe("Bug状态筛选,默认返回所有状态"),
114
+ ]).optional().describe("Bug状态筛选,默认'assigntome'(指派给我的)"),
115
115
  productId: z.number().optional().describe("产品ID,默认使用第二个产品"),
116
116
  page: z.number().optional().describe("页码,从1开始,默认为1"),
117
117
  limit: z.number().optional().describe("每页数量,默认20,最大100"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zzp123/mcp-zentao",
3
- "version": "1.17.8",
3
+ "version": "1.17.9",
4
4
  "description": "禅道项目管理系统的高级API集成包 - 完整版,包含所有94个工具。另有产品经理、测试工程师、开发工程师专用精简版本可选",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",