@ourroadmaps/mcp 0.9.0 → 0.10.0
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 +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -475,7 +475,8 @@ class ApiClient {
|
|
|
475
475
|
});
|
|
476
476
|
if (!response.ok) {
|
|
477
477
|
const error = await response.json().catch(() => ({ message: response.statusText }));
|
|
478
|
-
|
|
478
|
+
const errorMessage = error.error?.message || error.message || "Unknown error";
|
|
479
|
+
throw new Error(`API Error (${response.status}): ${errorMessage} - Path: ${path}`);
|
|
479
480
|
}
|
|
480
481
|
if (response.status === 204) {
|
|
481
482
|
return;
|
|
@@ -569,9 +570,9 @@ class ApiClient {
|
|
|
569
570
|
return response.data;
|
|
570
571
|
}
|
|
571
572
|
async linkFeatureToRoadmap(featureId, roadmapId) {
|
|
572
|
-
await this.request(`/v1/features/${featureId}/roadmap-
|
|
573
|
+
await this.request(`/v1/features/${featureId}/roadmap-links`, {
|
|
573
574
|
method: "POST",
|
|
574
|
-
body: JSON.stringify({
|
|
575
|
+
body: JSON.stringify({ roadmapId })
|
|
575
576
|
});
|
|
576
577
|
}
|
|
577
578
|
async listIdeas() {
|