@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.
Files changed (2) hide show
  1. package/dist/index.js +16 -15
  2. 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
- 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?.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({ 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
- }
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: roadmaps.map((r) => ({
1066
+ items: response.items.map((r) => ({
1066
1067
  id: r.id,
1067
1068
  title: r.title,
1068
1069
  status: r.status,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ourroadmaps/mcp",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "MCP server for OurRoadmaps - manage roadmaps, features, and ideas from Claude Code",
5
5
  "type": "module",
6
6
  "bin": {