mcp-meilisearch 1.2.1 → 1.2.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"search-tools.d.ts","sourceRoot":"","sources":["../../src/tools/search-tools.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAkCpE;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,QAAQ,SAAS,SA2QpD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"search-tools.d.ts","sourceRoot":"","sources":["../../src/tools/search-tools.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAkCpE;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,QAAQ,SAAS,SA8QpD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -152,7 +152,7 @@ export const registerSearchTools = (server) => {
152
152
  content: [
153
153
  {
154
154
  type: "text",
155
- text: JSON.stringify({ allHits: [], message: "No indexes found in Meilisearch." }, null, 2),
155
+ text: JSON.stringify({ hits: [], message: "No indexes found in Meilisearch." }, null, 2),
156
156
  },
157
157
  ],
158
158
  };
@@ -174,10 +174,13 @@ export const registerSearchTools = (server) => {
174
174
  }
175
175
  });
176
176
  const resultsPerIndex = await Promise.all(searchPromises);
177
- const allHits = resultsPerIndex.flat();
177
+ const hits = resultsPerIndex.flat();
178
178
  return {
179
179
  content: [
180
- { type: "text", text: JSON.stringify({ allHits }, null, 2) },
180
+ {
181
+ type: "text",
182
+ text: JSON.stringify({ query: q, hits, limit }, null, 2),
183
+ },
181
184
  ],
182
185
  };
183
186
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-meilisearch",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Model Context Protocol (MCP) implementation for Meilisearch",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",