edsger 0.28.2 → 0.28.3
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.
|
@@ -59,8 +59,11 @@ export function createChatMcpServer() {
|
|
|
59
59
|
content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
|
|
60
60
|
};
|
|
61
61
|
}),
|
|
62
|
-
tool('update_user_stories', 'Create, update, or delete user stories based on feedback.', {
|
|
62
|
+
tool('update_user_stories', 'Create, update, or delete user stories based on feedback. Always provide a reason explaining why the change is being made.', {
|
|
63
63
|
feature_id: z.string().describe('Feature ID'),
|
|
64
|
+
reason: z
|
|
65
|
+
.string()
|
|
66
|
+
.describe('Why this change is being made — e.g. user feedback, bug found, requirement changed. Required for audit trail.'),
|
|
64
67
|
actions: z.array(z.object({
|
|
65
68
|
action: z.enum(['create', 'update', 'delete']),
|
|
66
69
|
user_story_id: z
|
|
@@ -98,6 +101,7 @@ export function createChatMcpServer() {
|
|
|
98
101
|
await callMcpEndpoint('user_stories/update_status', {
|
|
99
102
|
user_story_id: action.user_story_id,
|
|
100
103
|
status: action.status || 'draft',
|
|
104
|
+
reason: args.reason,
|
|
101
105
|
});
|
|
102
106
|
results.push({ action: 'update', success: true });
|
|
103
107
|
}
|
|
@@ -117,8 +121,11 @@ export function createChatMcpServer() {
|
|
|
117
121
|
],
|
|
118
122
|
};
|
|
119
123
|
}),
|
|
120
|
-
tool('update_test_cases', 'Create, update, or delete test cases based on feedback.', {
|
|
124
|
+
tool('update_test_cases', 'Create, update, or delete test cases based on feedback. Always provide a reason explaining why the change is being made.', {
|
|
121
125
|
feature_id: z.string().describe('Feature ID'),
|
|
126
|
+
reason: z
|
|
127
|
+
.string()
|
|
128
|
+
.describe('Why this change is being made — e.g. user feedback, bug found, requirement changed. Required for audit trail.'),
|
|
122
129
|
actions: z.array(z.object({
|
|
123
130
|
action: z.enum(['create', 'update', 'delete']),
|
|
124
131
|
test_case_id: z
|
|
@@ -156,6 +163,7 @@ export function createChatMcpServer() {
|
|
|
156
163
|
await callMcpEndpoint('test_cases/update_status', {
|
|
157
164
|
test_case_id: action.test_case_id,
|
|
158
165
|
status: 'draft',
|
|
166
|
+
reason: args.reason,
|
|
159
167
|
});
|
|
160
168
|
results.push({ action: 'update', success: true });
|
|
161
169
|
}
|