get_todos
Retrieve all tasks in the current software development plan to track progress and manage implementation details.
Instructions
Get all todos in the current plan
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:299-317 (handler)The main handler for the 'get_todos' tool in the MCP server. It checks if a current goal exists, fetches the todos using storage.getTodos, and returns them serialized as JSON.case 'get_todos': { if (!this.currentGoal) { throw new McpError( ErrorCode.InvalidRequest, 'No active goal. Start a new planning session first.' ); } const todos = await storage.getTodos(this.currentGoal.id); return { content: [ { type: 'text', text: JSON.stringify(todos, null, 2), }, ], }; }
- src/index.ts:183-190 (registration)Registration of the 'get_todos' tool in the list of available tools, including its name, description, and input schema (empty object).{ name: 'get_todos', description: 'Get all todos in the current plan', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:186-189 (schema)Input schema for the 'get_todos' tool, which requires no parameters (empty properties).inputSchema: { type: 'object', properties: {}, },
- src/storage.ts:126-129 (helper)Helper function in storage that retrieves the list of todos for a specific goal from the implementation plan.async getTodos(goalId: string): Promise<Todo[]> { const plan = await this.getPlan(goalId); return plan?.todos || []; }