Skip to main content
Glama
OrionPotter

Meilisearch MCP Server

by OrionPotter

get-task

Retrieve detailed status and progress information for a specific Meilisearch task using its unique identifier to monitor indexing or search operations.

Instructions

Get information about a specific task

Input Schema

NameRequiredDescriptionDefault
taskUidYesUnique identifier of the task

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "taskUid": { "description": "Unique identifier of the task", "type": "number" } }, "required": [ "taskUid" ], "type": "object" }

Implementation Reference

  • Executes the get-task tool logic: fetches the specific task by UID from Meilisearch API and returns formatted JSON response or error.
    async ({ taskUid }: GetTaskParams) => { try { const response = await apiClient.get(`/tasks/${taskUid}`); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } }
  • Zod schema defining the input parameters for the get-task tool.
    { taskUid: z.number().describe("Unique identifier of the task"), },
  • Registers the 'get-task' tool with the MCP server, specifying name, description, input schema, and handler function.
    "get-task", "Get information about a specific task", { taskUid: z.number().describe("Unique identifier of the task"), }, async ({ taskUid }: GetTaskParams) => { try { const response = await apiClient.get(`/tasks/${taskUid}`); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } );
  • TypeScript interface for the parameters accepted by the get-task handler.
    interface GetTaskParams { taskUid: number; }
  • src/index.ts:70-70 (registration)
    Top-level registration call that includes the get-task tool via the task-tools module.
    registerTaskTools(server);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OrionPotter/iflow-mcp_meilisearch-ts-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server