read_task
Retrieve task details by ID from the taskqueue-mcp server, including tool and rule recommendations to guide task completion for a specified project.
Instructions
Get details of a specific task by its ID. The task may include toolRecommendations and ruleRecommendations fields that should be used to guide task completion.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The ID of the project containing the task (e.g., proj-1). | |
| taskId | Yes | The ID of the task to read (e.g., task-1). |
Implementation Reference
- src/server/toolExecutors.ts:417-430 (handler)The ToolExecutor for 'read_task' that validates projectId and taskId parameters and retrieves task details via TaskManager.openTaskDetails.const readTaskToolExecutor: ToolExecutor = { name: "read_task", async execute(taskManager, args) { // 1. Argument Validation const projectId = validateProjectId(args.projectId); const taskId = validateTaskId(args.taskId); // 2. Core Logic Execution const resultData = await taskManager.openTaskDetails(projectId, taskId); // 3. Return raw success data return resultData; }, };
- src/server/tools.ts:259-276 (schema)Tool definition including name, description, and input schema for 'read_task'.const readTaskTool: Tool = { name: "read_task", description: "Get details of a specific task by its ID. The task may include toolRecommendations and ruleRecommendations fields that should be used to guide task completion.", inputSchema: { type: "object", properties: { projectId: { type: "string", description: "The ID of the project containing the task (e.g., proj-1).", }, taskId: { type: "string", description: "The ID of the task to read (e.g., task-1).", }, }, required: ["projectId", "taskId"], }, };
- src/server/toolExecutors.ts:431-431 (registration)Registers the readTaskToolExecutor in the global toolExecutorMap used by the tool dispatcher.toolExecutorMap.set(readTaskToolExecutor.name, readTaskToolExecutor);