mcp-meilisearch 1.2.2 → 1.2.3
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.
- package/README.md +303 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,6 +84,309 @@ This project uses:
|
|
|
84
84
|
- **Express**: Powers the web server.
|
|
85
85
|
- **Model Context Protocol SDK**: Facilitates AI integration.
|
|
86
86
|
|
|
87
|
+
## Available Tools
|
|
88
|
+
|
|
89
|
+
This section details all the available tools, their descriptions, and parameters.
|
|
90
|
+
|
|
91
|
+
### System Tools
|
|
92
|
+
|
|
93
|
+
#### health
|
|
94
|
+
|
|
95
|
+
- **Description**: Check if the Meilisearch server is healthy.
|
|
96
|
+
|
|
97
|
+
#### version
|
|
98
|
+
|
|
99
|
+
- **Description**: Get the version information of the Meilisearch server.
|
|
100
|
+
|
|
101
|
+
#### info
|
|
102
|
+
|
|
103
|
+
- **Description**: Get the system information of the Meilisearch server.
|
|
104
|
+
|
|
105
|
+
#### stats
|
|
106
|
+
|
|
107
|
+
- **Description**: Get statistics about all indexes or a specific index.
|
|
108
|
+
- **Parameters**:
|
|
109
|
+
- `indexUid` (string, optional): Unique identifier of the index.
|
|
110
|
+
|
|
111
|
+
#### get-tasks
|
|
112
|
+
|
|
113
|
+
- **Description**: Get information about tasks with optional filtering.
|
|
114
|
+
- **Parameters**:
|
|
115
|
+
- `limit` (number, optional): Maximum number of tasks to return.
|
|
116
|
+
- `from` (number, optional): Task uid from which to start fetching.
|
|
117
|
+
- `status` (string, optional): Status of tasks to return.
|
|
118
|
+
- `type` (string, optional): Type of tasks to return.
|
|
119
|
+
- `indexUids` (string[], optional): UIDs of the indexes on which tasks were performed.
|
|
120
|
+
|
|
121
|
+
#### delete-tasks
|
|
122
|
+
|
|
123
|
+
- **Description**: Delete tasks based on provided filters.
|
|
124
|
+
- **Parameters**:
|
|
125
|
+
- `statuses` (string[], optional): Statuses of tasks to delete.
|
|
126
|
+
- `types` (string[], optional): Types of tasks to delete.
|
|
127
|
+
- `indexUids` (string[], optional): UIDs of the indexes on which tasks to delete were performed.
|
|
128
|
+
- `uids` (number[], optional): UIDs of the tasks to delete.
|
|
129
|
+
- `canceledBy` (number[], optional): UIDs of the tasks that canceled tasks to delete.
|
|
130
|
+
- `beforeUid` (number, optional): Delete tasks whose uid is before this value.
|
|
131
|
+
- `beforeStartedAt` (string, optional): Delete tasks that started processing before this date (ISO 8601 format).
|
|
132
|
+
- `beforeFinishedAt` (string, optional): Delete tasks that finished processing before this date (ISO 8601 format).
|
|
133
|
+
|
|
134
|
+
### Index Tools
|
|
135
|
+
|
|
136
|
+
#### list-indexes
|
|
137
|
+
|
|
138
|
+
- **Description**: List all indexes in the Meilisearch instance.
|
|
139
|
+
- **Parameters**:
|
|
140
|
+
- `limit` (number, optional): Maximum number of indexes to return.
|
|
141
|
+
- `offset` (number, optional): Number of indexes to skip.
|
|
142
|
+
|
|
143
|
+
#### get-index
|
|
144
|
+
|
|
145
|
+
- **Description**: Get information about a specific Meilisearch index.
|
|
146
|
+
- **Parameters**:
|
|
147
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
148
|
+
|
|
149
|
+
#### create-index
|
|
150
|
+
|
|
151
|
+
- **Description**: Create a new Meilisearch index.
|
|
152
|
+
- **Parameters**:
|
|
153
|
+
- `indexUid` (string, required): Unique identifier for the new index.
|
|
154
|
+
- `primaryKey` (string, optional): Primary key for the index.
|
|
155
|
+
|
|
156
|
+
#### update-index
|
|
157
|
+
|
|
158
|
+
- **Description**: Update a Meilisearch index (currently only supports updating the primary key).
|
|
159
|
+
- **Parameters**:
|
|
160
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
161
|
+
- `primaryKey` (string, required): New primary key for the index.
|
|
162
|
+
|
|
163
|
+
#### delete-index
|
|
164
|
+
|
|
165
|
+
- **Description**: Delete a Meilisearch index.
|
|
166
|
+
- **Parameters**:
|
|
167
|
+
- `indexUid` (string, required): Unique identifier of the index to delete.
|
|
168
|
+
|
|
169
|
+
#### swap-indexes
|
|
170
|
+
|
|
171
|
+
- **Description**: Swap two or more indexes in Meilisearch.
|
|
172
|
+
- **Parameters**:
|
|
173
|
+
- `indexes` (string, required): JSON array of index pairs to swap, e.g. [["movies", "movies_new"]].
|
|
174
|
+
|
|
175
|
+
### Document Tools
|
|
176
|
+
|
|
177
|
+
#### get-documents
|
|
178
|
+
|
|
179
|
+
- **Description**: Get documents from a Meilisearch index.
|
|
180
|
+
- **Parameters**:
|
|
181
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
182
|
+
- `limit` (number, optional): Maximum number of documents to return (default: 20).
|
|
183
|
+
- `offset` (number, optional): Number of documents to skip (default: 0).
|
|
184
|
+
- `fields` (string[], optional): Fields to return in the documents.
|
|
185
|
+
- `filter` (string, optional): Filter query to apply.
|
|
186
|
+
|
|
187
|
+
#### get-document
|
|
188
|
+
|
|
189
|
+
- **Description**: Get a document by its ID from a Meilisearch index.
|
|
190
|
+
- **Parameters**:
|
|
191
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
192
|
+
- `documentId` (string, required): ID of the document to retrieve.
|
|
193
|
+
- `fields` (string[], optional): Fields to return in the document.
|
|
194
|
+
|
|
195
|
+
#### add-documents
|
|
196
|
+
|
|
197
|
+
- **Description**: Add documents to a Meilisearch index.
|
|
198
|
+
- **Parameters**:
|
|
199
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
200
|
+
- `documents` (string, required): JSON array of documents to add.
|
|
201
|
+
- `primaryKey` (string, optional): Primary key for the documents.
|
|
202
|
+
|
|
203
|
+
#### update-documents
|
|
204
|
+
|
|
205
|
+
- **Description**: Update documents in a Meilisearch index.
|
|
206
|
+
- **Parameters**:
|
|
207
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
208
|
+
- `documents` (string, required): JSON array of documents to update.
|
|
209
|
+
- `primaryKey` (string, optional): Primary key for the documents.
|
|
210
|
+
|
|
211
|
+
#### delete-document
|
|
212
|
+
|
|
213
|
+
- **Description**: Delete a document by its ID from a Meilisearch index.
|
|
214
|
+
- **Parameters**:
|
|
215
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
216
|
+
- `documentId` (string, required): ID of the document to delete.
|
|
217
|
+
|
|
218
|
+
#### delete-documents
|
|
219
|
+
|
|
220
|
+
- **Description**: Delete multiple documents by their IDs from a Meilisearch index.
|
|
221
|
+
- **Parameters**:
|
|
222
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
223
|
+
- `documentIds` (string, required): JSON array of document IDs to delete.
|
|
224
|
+
|
|
225
|
+
#### delete-all-documents
|
|
226
|
+
|
|
227
|
+
- **Description**: Delete all documents in a Meilisearch index.
|
|
228
|
+
- **Parameters**:
|
|
229
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
230
|
+
|
|
231
|
+
### Search Tools
|
|
232
|
+
|
|
233
|
+
#### search
|
|
234
|
+
|
|
235
|
+
- **Description**: Search for documents in a Meilisearch index.
|
|
236
|
+
- **Parameters**:
|
|
237
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
238
|
+
- `q` (string, required): Search query.
|
|
239
|
+
- `limit` (number, optional): Maximum number of results to return (default: 20).
|
|
240
|
+
- `offset` (number, optional): Number of results to skip (default: 0).
|
|
241
|
+
- `filter` (string, optional): Filter query to apply.
|
|
242
|
+
- `sort` (string[], optional): Attributes to sort by, e.g. ["price:asc"].
|
|
243
|
+
- `facets` (string[], optional): Facets to return.
|
|
244
|
+
- `attributesToRetrieve` (string[], optional): Attributes to include in results.
|
|
245
|
+
- `attributesToCrop` (string[], optional): Attributes to crop.
|
|
246
|
+
- `cropLength` (number, optional): Length at which to crop cropped attributes.
|
|
247
|
+
- `attributesToHighlight` (string[], optional): Attributes to highlight.
|
|
248
|
+
- `highlightPreTag` (string, optional): Tag to insert before highlighted text.
|
|
249
|
+
- `highlightPostTag` (string, optional): Tag to insert after highlighted text.
|
|
250
|
+
- `showMatchesPosition` (boolean, optional): Whether to include match positions in results.
|
|
251
|
+
- `matchingStrategy` (string, optional): Matching strategy: 'all' or 'last'.
|
|
252
|
+
|
|
253
|
+
#### multi-search
|
|
254
|
+
|
|
255
|
+
- **Description**: Perform multiple searches in one request.
|
|
256
|
+
- **Parameters**:
|
|
257
|
+
- `searches` (string, required): JSON array of search queries, each with indexUid and q fields.
|
|
258
|
+
|
|
259
|
+
#### search-across-all-indexes
|
|
260
|
+
|
|
261
|
+
- **Description**: Search for a term across all available Meilisearch indexes and return combined results.
|
|
262
|
+
- **Parameters**:
|
|
263
|
+
- `q` (string, required): Search query.
|
|
264
|
+
- `limit` (number, optional): Maximum number of results to return per index (default: 20).
|
|
265
|
+
- `attributesToRetrieve` (string[], optional): Attributes to include in results.
|
|
266
|
+
|
|
267
|
+
#### facet-search
|
|
268
|
+
|
|
269
|
+
- **Description**: Search for facet values matching specific criteria.
|
|
270
|
+
- **Parameters**:
|
|
271
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
272
|
+
- `facetName` (string, required): Name of the facet to search.
|
|
273
|
+
- `facetQuery` (string, optional): Query to match against facet values.
|
|
274
|
+
- `filter` (string, optional): Filter to apply to the base search.
|
|
275
|
+
|
|
276
|
+
### Settings Tools
|
|
277
|
+
|
|
278
|
+
#### get-settings
|
|
279
|
+
|
|
280
|
+
- **Description**: Get all settings for a Meilisearch index.
|
|
281
|
+
- **Parameters**:
|
|
282
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
283
|
+
|
|
284
|
+
#### update-settings
|
|
285
|
+
|
|
286
|
+
- **Description**: Update settings for a Meilisearch index.
|
|
287
|
+
- **Parameters**:
|
|
288
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
289
|
+
- `settings` (string, required): JSON object containing settings to update.
|
|
290
|
+
|
|
291
|
+
#### reset-settings
|
|
292
|
+
|
|
293
|
+
- **Description**: Reset all settings for a Meilisearch index to their default values.
|
|
294
|
+
- **Parameters**:
|
|
295
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
296
|
+
|
|
297
|
+
#### get-searchable-attributes / get-displayed-attributes / get-filterable-attributes / get-sortable-attributes / get-ranking-rules / get-stop-words / get-synonyms / get-distinct-attribute / get-typo-tolerance / get-faceting / get-pagination
|
|
298
|
+
|
|
299
|
+
- **Description**: Get the specific setting for an index.
|
|
300
|
+
- **Parameters**:
|
|
301
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
302
|
+
|
|
303
|
+
#### update-searchable-attributes / update-displayed-attributes / update-filterable-attributes / update-sortable-attributes / update-ranking-rules / update-stop-words / update-synonyms / update-distinct-attribute / update-typo-tolerance / update-faceting / update-pagination
|
|
304
|
+
|
|
305
|
+
- **Description**: Update a specific setting for an index.
|
|
306
|
+
- **Parameters**:
|
|
307
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
308
|
+
- `value` (string, required): JSON value for the setting.
|
|
309
|
+
|
|
310
|
+
### Task Tools
|
|
311
|
+
|
|
312
|
+
#### list-tasks
|
|
313
|
+
|
|
314
|
+
- **Description**: List tasks with optional filtering.
|
|
315
|
+
- **Parameters**:
|
|
316
|
+
- `limit` (number, optional): Maximum number of tasks to return.
|
|
317
|
+
- `from` (number, optional): Task uid from which to start fetching.
|
|
318
|
+
- `statuses` (string[], optional): Statuses of tasks to return.
|
|
319
|
+
- `types` (string[], optional): Types of tasks to return.
|
|
320
|
+
- `indexUids` (string[], optional): UIDs of the indexes on which tasks were performed.
|
|
321
|
+
- `uids` (number[], optional): UIDs of specific tasks to return.
|
|
322
|
+
|
|
323
|
+
#### get-task
|
|
324
|
+
|
|
325
|
+
- **Description**: Get information about a specific task.
|
|
326
|
+
- **Parameters**:
|
|
327
|
+
- `taskUid` (number, required): Unique identifier of the task.
|
|
328
|
+
|
|
329
|
+
#### cancel-tasks
|
|
330
|
+
|
|
331
|
+
- **Description**: Cancel tasks based on provided filters.
|
|
332
|
+
- **Parameters**:
|
|
333
|
+
- `statuses` (string[], optional): Statuses of tasks to cancel.
|
|
334
|
+
- `types` (string[], optional): Types of tasks to cancel.
|
|
335
|
+
- `indexUids` (string[], optional): UIDs of the indexes on which tasks to cancel were performed.
|
|
336
|
+
- `uids` (number[], optional): UIDs of the tasks to cancel.
|
|
337
|
+
|
|
338
|
+
#### wait-for-task
|
|
339
|
+
|
|
340
|
+
- **Description**: Wait for a specific task to complete.
|
|
341
|
+
- **Parameters**:
|
|
342
|
+
- `taskUid` (number, required): Unique identifier of the task to wait for.
|
|
343
|
+
- `timeoutMs` (number, optional): Maximum time to wait in milliseconds (default: 5000).
|
|
344
|
+
- `intervalMs` (number, optional): Polling interval in milliseconds (default: 500).
|
|
345
|
+
|
|
346
|
+
### Vector Tools
|
|
347
|
+
|
|
348
|
+
#### enable-vector-search
|
|
349
|
+
|
|
350
|
+
- **Description**: Enable the vector search experimental feature in Meilisearch.
|
|
351
|
+
|
|
352
|
+
#### get-experimental-features
|
|
353
|
+
|
|
354
|
+
- **Description**: Get the status of experimental features in Meilisearch.
|
|
355
|
+
|
|
356
|
+
#### update-embedders
|
|
357
|
+
|
|
358
|
+
- **Description**: Configure embedders for vector search.
|
|
359
|
+
- **Parameters**:
|
|
360
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
361
|
+
- `embedders` (string, required): JSON object containing embedder configurations.
|
|
362
|
+
|
|
363
|
+
#### get-embedders
|
|
364
|
+
|
|
365
|
+
- **Description**: Get the embedders configuration for an index.
|
|
366
|
+
- **Parameters**:
|
|
367
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
368
|
+
|
|
369
|
+
#### reset-embedders
|
|
370
|
+
|
|
371
|
+
- **Description**: Reset the embedders configuration for an index.
|
|
372
|
+
- **Parameters**:
|
|
373
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
374
|
+
|
|
375
|
+
#### vector-search
|
|
376
|
+
|
|
377
|
+
- **Description**: Perform a vector search in a Meilisearch index.
|
|
378
|
+
- **Parameters**:
|
|
379
|
+
- `indexUid` (string, required): Unique identifier of the index.
|
|
380
|
+
- `vector` (string, required): JSON array representing the vector to search for.
|
|
381
|
+
- `limit` (number, optional): Maximum number of results to return (default: 20).
|
|
382
|
+
- `offset` (number, optional): Number of results to skip (default: 0).
|
|
383
|
+
- `filter` (string, optional): Filter to apply (e.g., 'genre = horror AND year > 2020').
|
|
384
|
+
- `embedder` (string, optional): Name of the embedder to use (if omitted, a 'vector' must be provided).
|
|
385
|
+
- `attributes` (string[], optional): Attributes to include in the vector search.
|
|
386
|
+
- `query` (string, optional): Text query to search for (if using 'embedder' instead of 'vector').
|
|
387
|
+
- `hybrid` (boolean, optional): Whether to perform a hybrid search (combining vector and text search).
|
|
388
|
+
- `hybridRatio` (number, optional): Ratio of vector vs text search in hybrid search (0-1, default: 0.5).
|
|
389
|
+
|
|
87
390
|
### Options
|
|
88
391
|
|
|
89
392
|
#### Meilisearch Connection Options
|