mark_task_done
Update task status to completed in the TaskWarrior MCP Server by specifying the task identifier. Simplifies task management through natural language commands.
Instructions
Mark a task as done (completed)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes |
Implementation Reference
- index.ts:141-150 (handler)Handler for the 'mark_task_done' tool. Parses input arguments using the defined schema, executes 'task <identifier> done' command via execSync, and returns the command output as text content.case "mark_task_done": { const parsed = markTaskDoneRequest.safeParse(args); if (!parsed.success) { throw new Error(`Invalid arguments for mark_task_done: ${parsed.error}`); } const content = execSync(`task ${parsed.data.identifier} done`, { maxBuffer: 1024 * 1024 * 10 }).toString().trim(); return { content: [{ type: "text", text: content }], }; }
- index.ts:51-53 (schema)Zod input schema for 'mark_task_done' tool, requiring a string 'identifier'.const markTaskDoneRequest = z.object({ identifier: z.string(), });
- index.ts:102-105 (registration)Registration of the 'mark_task_done' tool in the listTools response, including name, description, and input schema reference.name: "mark_task_done", description: "Mark a task as done (completed)", inputSchema: zodToJsonSchema(markTaskDoneRequest) as ToolInput, },