todo_list
Manage and track tasks efficiently by creating, updating, and monitoring progress with detailed item comments and persistent data storage.
Instructions
Lista todas as listas de tarefas
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:205-215 (handler)The main execution logic for the 'todo_list' MCP tool. Fetches user's checklists via service and returns JSON summary of each list's title, description, total items, and completed count.case "todo_list": { console.error('DEBUG - Processing todo_list'); const allLists = await checklistService.getUserChecklists('current-user'); const listSummary = allLists.map(l => ({ title: l.title, description: l.description, totalItems: l.items.length, completedItems: l.items.filter(i => i.completed).length })); return { content: [{ type: "text", text: JSON.stringify(listSummary, null, 2) }] }; }
- src/index.ts:126-133 (registration)Tool registration in ListTools handler, defining name, description, and input schema (empty object, no parameters).{ name: "todo_list", description: "Lista todas as listas de tarefas", inputSchema: { type: "object", properties: {}, }, },
- Supporting method in ChecklistService used by todo_list handler to retrieve all checklists belonging to or shared with the user.async getUserChecklists(userId: string): Promise<Checklist[]> { const keys = await this.storage.list('checklist:'); const checklists = await Promise.all( keys.map(key => this.storage.load(key)) ); return checklists.filter(checklist => checklist.owner === userId || checklist.shared?.includes(userId) ); }