@ourroadmaps/mcp 0.17.0 → 0.18.1
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 +6 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -538,8 +538,6 @@ class ApiClient {
|
|
|
538
538
|
searchParams.set("offset", String(params.offset));
|
|
539
539
|
if (params?.horizon)
|
|
540
540
|
searchParams.set("horizon", params.horizon);
|
|
541
|
-
if (params?.status)
|
|
542
|
-
searchParams.set("status", params.status);
|
|
543
541
|
if (params?.query)
|
|
544
542
|
searchParams.set("query", params.query);
|
|
545
543
|
const queryString = searchParams.toString();
|
|
@@ -1051,19 +1049,17 @@ function registerSearchRoadmaps(server) {
|
|
|
1051
1049
|
offset
|
|
1052
1050
|
}) => {
|
|
1053
1051
|
const client2 = getApiClient();
|
|
1054
|
-
const response = await client2.listRoadmaps({
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
horizon
|
|
1060
|
-
});
|
|
1052
|
+
const response = await client2.listRoadmaps({ limit, offset, horizon, query });
|
|
1053
|
+
let roadmaps = response.items;
|
|
1054
|
+
if (status) {
|
|
1055
|
+
roadmaps = roadmaps.filter((r) => r.status === status);
|
|
1056
|
+
}
|
|
1061
1057
|
return {
|
|
1062
1058
|
content: [
|
|
1063
1059
|
{
|
|
1064
1060
|
type: "text",
|
|
1065
1061
|
text: JSON.stringify({
|
|
1066
|
-
items:
|
|
1062
|
+
items: roadmaps.map((r) => ({
|
|
1067
1063
|
id: r.id,
|
|
1068
1064
|
title: r.title,
|
|
1069
1065
|
status: r.status,
|