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