get_task
Retrieve detailed information about a specific task, including comments and attachments, from a project management board.
Instructions
Get details of a specific task including comments and attachments
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board_id | Yes | Board ID | |
| task_id | Yes | Task ID |
Implementation Reference
- src/tools/tasks.ts:29-33 (handler)The handler function for the 'get_task' tool. It extracts board_id and task_id from args, fetches the task details from the API endpoint `/projects/${board_id}/tasks/${task_id}`, and returns the formatted response.async (args) => { const { board_id, task_id } = args; const response = await api.get(`/projects/${board_id}/tasks/${task_id}`); return formatResponse(response.data); }
- src/tools/tasks.ts:25-28 (schema)Input schema for the 'get_task' tool using Zod validation: requires board_id and task_id as positive integers.{ board_id: z.number().int().positive().describe("Board ID"), task_id: z.number().int().positive().describe("Task ID"), },
- src/tools/tasks.ts:22-34 (registration)Direct registration of the 'get_task' tool on the MCP server, including name, description, input schema, and handler.server.tool( "get_task", "Get details of a specific task including comments and attachments", { board_id: z.number().int().positive().describe("Board ID"), task_id: z.number().int().positive().describe("Task ID"), }, async (args) => { const { board_id, task_id } = args; const response = await api.get(`/projects/${board_id}/tasks/${task_id}`); return formatResponse(response.data); } );
- src/index.ts:23-23 (registration)Invocation of registerTaskTools function which registers the get_task tool (among others) on the main MCP server instance.registerTaskTools(server);