update_todo_status
Modify the completion status of a specific todo item using its ID in the Software Planning Tool, enabling accurate progress tracking and task management during software development planning.
Instructions
Update the completion status of a todo item
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isComplete | Yes | New completion status | |
| todoId | Yes | ID of the todo item |
Implementation Reference
- src/index.ts:191-208 (registration)Registration of the 'update_todo_status' tool in the ListToolsRequestSchema handler, including name, description, and input schema.{ name: 'update_todo_status', description: 'Update the completion status of a todo item', inputSchema: { type: 'object', properties: { todoId: { type: 'string', description: 'ID of the todo item', }, isComplete: { type: 'boolean', description: 'New completion status', }, }, required: ['todoId', 'isComplete'], }, },
- src/index.ts:194-207 (schema)Input schema definition for the update_todo_status tool, specifying todoId (string) and isComplete (boolean) as required parameters.inputSchema: { type: 'object', properties: { todoId: { type: 'string', description: 'ID of the todo item', }, isComplete: { type: 'boolean', description: 'New completion status', }, }, required: ['todoId', 'isComplete'], },
- src/index.ts:319-345 (handler)The handler function for the update_todo_status tool in the CallToolRequestSchema switch statement. It validates the current goal exists, extracts parameters, calls storage.updateTodoStatus, and returns the updated todo as JSON-formatted text.case 'update_todo_status': { if (!this.currentGoal) { throw new McpError( ErrorCode.InvalidRequest, 'No active goal. Start a new planning session first.' ); } const { todoId, isComplete } = request.params.arguments as { todoId: string; isComplete: boolean; }; const updatedTodo = await storage.updateTodoStatus( this.currentGoal.id, todoId, isComplete ); return { content: [ { type: 'text', text: JSON.stringify(updatedTodo, null, 2), }, ], }; }
- src/types.ts:1-10 (schema)Type definition for Todo interface, which includes the isComplete field updated by the tool.export interface Todo { id: string; title: string; description: string; complexity: number; codeExample?: string; isComplete: boolean; createdAt: string; updatedAt: string; }