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,
|
|
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({
|
|
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
|
|
177
|
+
const hits = resultsPerIndex.flat();
|
|
178
178
|
return {
|
|
179
179
|
content: [
|
|
180
|
-
{
|
|
180
|
+
{
|
|
181
|
+
type: "text",
|
|
182
|
+
text: JSON.stringify({ query: q, hits, limit }, null, 2),
|
|
183
|
+
},
|
|
181
184
|
],
|
|
182
185
|
};
|
|
183
186
|
}
|