@ourroadmaps/mcp 0.16.0 → 0.17.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 +16 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -536,8 +536,14 @@ class ApiClient {
|
|
|
536
536
|
searchParams.set("limit", String(params.limit));
|
|
537
537
|
if (params?.offset)
|
|
538
538
|
searchParams.set("offset", String(params.offset));
|
|
539
|
-
|
|
540
|
-
|
|
539
|
+
if (params?.horizon)
|
|
540
|
+
searchParams.set("horizon", params.horizon);
|
|
541
|
+
if (params?.status)
|
|
542
|
+
searchParams.set("status", params.status);
|
|
543
|
+
if (params?.query)
|
|
544
|
+
searchParams.set("query", params.query);
|
|
545
|
+
const queryString = searchParams.toString();
|
|
546
|
+
const path = queryString ? `/v1/roadmaps?${queryString}` : "/v1/roadmaps";
|
|
541
547
|
return await this.request(path);
|
|
542
548
|
}
|
|
543
549
|
async getRoadmap(id) {
|
|
@@ -1045,24 +1051,19 @@ function registerSearchRoadmaps(server) {
|
|
|
1045
1051
|
offset
|
|
1046
1052
|
}) => {
|
|
1047
1053
|
const client2 = getApiClient();
|
|
1048
|
-
const response = await client2.listRoadmaps({
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
roadmaps = roadmaps.filter((r) => r.status === status);
|
|
1056
|
-
}
|
|
1057
|
-
if (horizon) {
|
|
1058
|
-
roadmaps = roadmaps.filter((r) => r.horizon === horizon);
|
|
1059
|
-
}
|
|
1054
|
+
const response = await client2.listRoadmaps({
|
|
1055
|
+
limit,
|
|
1056
|
+
offset,
|
|
1057
|
+
query,
|
|
1058
|
+
status,
|
|
1059
|
+
horizon
|
|
1060
|
+
});
|
|
1060
1061
|
return {
|
|
1061
1062
|
content: [
|
|
1062
1063
|
{
|
|
1063
1064
|
type: "text",
|
|
1064
1065
|
text: JSON.stringify({
|
|
1065
|
-
items:
|
|
1066
|
+
items: response.items.map((r) => ({
|
|
1066
1067
|
id: r.id,
|
|
1067
1068
|
title: r.title,
|
|
1068
1069
|
status: r.status,
|