targetprocess-mcp-server 1.0.19 → 1.0.21
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/README.md +7 -0
- package/build/index.js +5 -4
- package/build/tp.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,6 +41,10 @@ Releases
|
|
|
41
41
|
- `get_release_open_bugs` — Get only active/open bugs for a release (name, withDescription, optional results)
|
|
42
42
|
- `get_release_open_user_stories` — Get only active/open user stories for a release (name, withDescription, optional results)
|
|
43
43
|
|
|
44
|
+
Features
|
|
45
|
+
- `get_feature_user_stories` — Get all user stories for a feature by its ID (id)
|
|
46
|
+
- `get_not_covered_user_stories_in_feature` — Get user stories in a feature not yet covered by tests, includes `covered` field based on "Test Automation" custom field (id)
|
|
47
|
+
|
|
44
48
|
Cards — Read
|
|
45
49
|
- `get_bug_content` — Fetch full content of a bug by ID (id)
|
|
46
50
|
- `get_user_story_content` — Fetch full content of a user story by ID (id)
|
|
@@ -54,6 +58,9 @@ Cards — Write
|
|
|
54
58
|
- `create_bug_based_on_card` — Create a bug linked to an existing user story or bug card (card object with id+type, title, bugContent, optional origin)
|
|
55
59
|
- `create_test_plan` — Create a test plan linked to a user story (title, userStoryId)
|
|
56
60
|
|
|
61
|
+
User
|
|
62
|
+
- `get_logged_in_user` — Get the currently logged-in user's info (no params needed)
|
|
63
|
+
|
|
57
64
|
> `origin` accepted values: `Production - Customer`, `Production - Internal`, `Pre-Release - Customer`, `Pre-Release - Internal`, `Regression - Dev01`, `Regression - Team Env`, `Manual QA` *(default)*, `Developer Raised`, `Operations`
|
|
58
65
|
---
|
|
59
66
|
|
package/build/index.js
CHANGED
|
@@ -56,6 +56,7 @@ server.registerTool('get_user_story_content', {
|
|
|
56
56
|
description: '',
|
|
57
57
|
feature: userStory.Feature?.Name,
|
|
58
58
|
featureId: userStory.Feature?.Id,
|
|
59
|
+
customFields: userStory.CustomFields,
|
|
59
60
|
};
|
|
60
61
|
try {
|
|
61
62
|
const dom = new JSDOM(`<html><body><div id="content">${description}</div></body></html>`);
|
|
@@ -734,7 +735,7 @@ server.registerTool('get_not_covered_user_stories_in_feature', {
|
|
|
734
735
|
.describe('TP feature ID (e.g. 145636)'),
|
|
735
736
|
},
|
|
736
737
|
}, async ({ id }) => {
|
|
737
|
-
const response = await tp.
|
|
738
|
+
const response = await tp.getUserStoriesIdsByFeatureId(id);
|
|
738
739
|
if (!response) {
|
|
739
740
|
return {
|
|
740
741
|
content: [{
|
|
@@ -752,7 +753,7 @@ server.registerTool('get_not_covered_user_stories_in_feature', {
|
|
|
752
753
|
}],
|
|
753
754
|
};
|
|
754
755
|
}
|
|
755
|
-
const userStoriesPromise = userStoriesIds.map((
|
|
756
|
+
const userStoriesPromise = userStoriesIds.map((item) => tp.getUserStory(item.id));
|
|
756
757
|
let userStoriesResults = [];
|
|
757
758
|
try {
|
|
758
759
|
const results = await Promise.all(userStoriesPromise);
|
|
@@ -763,7 +764,7 @@ server.registerTool('get_not_covered_user_stories_in_feature', {
|
|
|
763
764
|
return {
|
|
764
765
|
content: [{
|
|
765
766
|
type: 'text',
|
|
766
|
-
text: `Failed to get user stories for feature id: ${id}. Error: ${error}
|
|
767
|
+
text: `Failed to get user stories for feature id: ${id}. Error: ${error}.`
|
|
767
768
|
}],
|
|
768
769
|
};
|
|
769
770
|
}
|
|
@@ -794,7 +795,7 @@ server.registerTool('get_not_covered_user_stories_in_feature', {
|
|
|
794
795
|
return {
|
|
795
796
|
content: [{
|
|
796
797
|
type: 'text',
|
|
797
|
-
text: `Failed to get user stories array for feature id: ${id}: Error: ${error}
|
|
798
|
+
text: `Failed to get user stories array for feature id: ${id}: Error: ${error}.`
|
|
798
799
|
}],
|
|
799
800
|
};
|
|
800
801
|
}
|
package/build/tp.js
CHANGED