@ourroadmaps/mcp 0.7.4 → 0.7.5
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.js +11 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -102,6 +102,7 @@ var featureSchema = z4.object({
|
|
|
102
102
|
organizationId: z4.string(),
|
|
103
103
|
type: featureTypeSchema,
|
|
104
104
|
name: z4.string(),
|
|
105
|
+
description: z4.string().nullable(),
|
|
105
106
|
parentId: z4.string().uuid().nullable(),
|
|
106
107
|
order: z4.number().int(),
|
|
107
108
|
isExpanded: z4.boolean(),
|
|
@@ -528,11 +529,17 @@ class ApiClient {
|
|
|
528
529
|
method: "DELETE"
|
|
529
530
|
});
|
|
530
531
|
}
|
|
531
|
-
async
|
|
532
|
-
await this.request(`/v1/features/${featureId}/outcomes`, {
|
|
532
|
+
async saveFeatureOutcomes(featureId, outcomes) {
|
|
533
|
+
const response = await this.request(`/v1/features/${featureId}/outcomes`, {
|
|
533
534
|
method: "POST",
|
|
534
|
-
body: JSON.stringify({
|
|
535
|
+
body: JSON.stringify({
|
|
536
|
+
outcomes: outcomes.map((description, index) => ({
|
|
537
|
+
description,
|
|
538
|
+
order: index
|
|
539
|
+
}))
|
|
540
|
+
})
|
|
535
541
|
});
|
|
542
|
+
return response.data;
|
|
536
543
|
}
|
|
537
544
|
async linkFeatureToRoadmap(featureId, roadmapId) {
|
|
538
545
|
await this.request(`/v1/features/${featureId}/roadmap-items`, {
|
|
@@ -1177,9 +1184,7 @@ function registerAddFeature(server) {
|
|
|
1177
1184
|
parentId: parentId ?? null
|
|
1178
1185
|
});
|
|
1179
1186
|
if (outcomes && outcomes.length > 0) {
|
|
1180
|
-
|
|
1181
|
-
await client2.addFeatureOutcome(feature2.id, outcome);
|
|
1182
|
-
}
|
|
1187
|
+
await client2.saveFeatureOutcomes(feature2.id, outcomes);
|
|
1183
1188
|
}
|
|
1184
1189
|
if (linkToRoadmapId) {
|
|
1185
1190
|
await client2.linkFeatureToRoadmap(feature2.id, linkToRoadmapId);
|