get_todos
Retrieve all tasks in the current software development plan to track progress and manage implementation.
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)MCP CallToolRequest handler case for 'get_todos': validates current goal exists, fetches todos from storage using the current goal ID, and returns them serialized as JSON in a text content response.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)Tool registration in ListToolsRequestSchema response: defines name 'get_todos', description, and empty input schema (no parameters required).{ name: 'get_todos', description: 'Get all todos in the current plan', inputSchema: { type: 'object', properties: {}, }, },
- src/types.ts:1-10 (schema)TypeScript interface defining the structure of Todo objects returned by the get_todos tool.export interface Todo { id: string; title: string; description: string; complexity: number; codeExample?: string; isComplete: boolean; createdAt: string; updatedAt: string; }
- src/storage.ts:126-129 (helper)Storage helper method getTodos that retrieves the list of todos from the implementation plan associated with the given goal ID.async getTodos(goalId: string): Promise<Todo[]> { const plan = await this.getPlan(goalId); return plan?.todos || []; }