targetprocess-mcp-server 2.1.8-b → 2.1.8-c
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/build/index.js +5 -2
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -346,7 +346,10 @@ server.registerTool('search_tp_cards', {
|
|
|
346
346
|
.describe('Type of TP entity to search — UserStories or Bugs (default: UserStories)'),
|
|
347
347
|
},
|
|
348
348
|
}, async ({ keyword, entityType = "UserStories" }) => {
|
|
349
|
-
const results = await
|
|
349
|
+
const results = await Promise.all([
|
|
350
|
+
tp.searchContainsNameText({ text: keyword, entityType }),
|
|
351
|
+
tp.searchContainsDescriptionText({ text: keyword, entityType })
|
|
352
|
+
]);
|
|
350
353
|
if (!results) {
|
|
351
354
|
return {
|
|
352
355
|
content: [{
|
|
@@ -355,7 +358,7 @@ server.registerTool('search_tp_cards', {
|
|
|
355
358
|
}],
|
|
356
359
|
};
|
|
357
360
|
}
|
|
358
|
-
const items = results.
|
|
361
|
+
const items = results.map((item) => item.Items).flat();
|
|
359
362
|
if (items.length == 0) {
|
|
360
363
|
return {
|
|
361
364
|
content: [{
|