@ourroadmaps/mcp 0.18.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -536,8 +536,12 @@ class ApiClient {
536
536
  searchParams.set("limit", String(params.limit));
537
537
  if (params?.offset)
538
538
  searchParams.set("offset", String(params.offset));
539
- const query = searchParams.toString();
540
- const path = query ? `/v1/roadmaps?${query}` : "/v1/roadmaps";
539
+ if (params?.horizon)
540
+ searchParams.set("horizon", params.horizon);
541
+ if (params?.query)
542
+ searchParams.set("query", params.query);
543
+ const queryString = searchParams.toString();
544
+ const path = queryString ? `/v1/roadmaps?${queryString}` : "/v1/roadmaps";
541
545
  return await this.request(path);
542
546
  }
543
547
  async getRoadmap(id) {
@@ -1045,18 +1049,11 @@ function registerSearchRoadmaps(server) {
1045
1049
  offset
1046
1050
  }) => {
1047
1051
  const client2 = getApiClient();
1048
- const response = await client2.listRoadmaps({ limit, offset });
1052
+ const response = await client2.listRoadmaps({ limit, offset, horizon, query });
1049
1053
  let roadmaps = response.items;
1050
- if (query) {
1051
- const q = query.toLowerCase();
1052
- roadmaps = roadmaps.filter((r) => r.title.toLowerCase().includes(q));
1053
- }
1054
1054
  if (status) {
1055
1055
  roadmaps = roadmaps.filter((r) => r.status === status);
1056
1056
  }
1057
- if (horizon) {
1058
- roadmaps = roadmaps.filter((r) => r.horizon === horizon);
1059
- }
1060
1057
  return {
1061
1058
  content: [
1062
1059
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ourroadmaps/mcp",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "MCP server for OurRoadmaps - manage roadmaps, features, and ideas from Claude Code",
5
5
  "type": "module",
6
6
  "bin": {