@zzp123/mcp-zentao 1.18.14-beta.1 → 1.18.14
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/dist/index-pm.js +2 -17
- package/package.json +1 -1
package/dist/index-pm.js
CHANGED
|
@@ -138,24 +138,9 @@ server.tool("getStoryDetail", "获取需求详情 - 支持软件需求(story)和
|
|
|
138
138
|
}, async ({ storyId }) => {
|
|
139
139
|
if (!zentaoApi)
|
|
140
140
|
throw new Error("Please initialize Zentao API first");
|
|
141
|
-
const story = await zentaoApi.getStoryDetail(storyId, '
|
|
142
|
-
// 只返回基本信息
|
|
143
|
-
const result = {
|
|
144
|
-
id: story.id,
|
|
145
|
-
title: story.title,
|
|
146
|
-
status: story.status,
|
|
147
|
-
stage: story.stage,
|
|
148
|
-
pri: story.pri,
|
|
149
|
-
type: story.type,
|
|
150
|
-
category: story.category,
|
|
151
|
-
product: story.product,
|
|
152
|
-
productName: story.productName,
|
|
153
|
-
openedBy: story.openedBy,
|
|
154
|
-
openedDate: story.openedDate,
|
|
155
|
-
assignedTo: story.assignedTo
|
|
156
|
-
};
|
|
141
|
+
const story = await zentaoApi.getStoryDetail(storyId, 'detail');
|
|
157
142
|
return {
|
|
158
|
-
content: [{ type: "text", text: JSON.stringify(
|
|
143
|
+
content: [{ type: "text", text: JSON.stringify(story, null, 2) }]
|
|
159
144
|
};
|
|
160
145
|
});
|
|
161
146
|
server.tool("getProjectExecutions", {
|