TodoRead
Retrieve and manage your task list with clarity. Access current todos, their status, and maintain organized workflows within AI-assisted coding environments for efficient project tracking.
Instructions
Read the current task list.
Returns a list of todos with their current state.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.py:44-60 (handler)The registered MCP tool handler for TodoRead. Wraps the core todo_read function with error handling.@mcp.tool async def TodoRead() -> dict[str, Any]: """ Read the current task list. Returns a list of todos with their current state. """ try: return await todo_read() except Exception as e: return { "error": { "code": "READ_ERROR", "message": f"Failed to read todos: {str(e)}", } }
- src/tools/todo_read.py:5-17 (handler)Core handler logic for reading the todo list from the store and returning it as TodoReadResponse.async def todo_read() -> TodoReadResponse: """ Read the current task list. Returns: TodoReadResponse with list of todos """ # Read todos todos = await store.read_todos() # Return response return {"todos": todos}
- src/state/store.py:22-27 (helper)Helper method in TodoStore that loads and returns the list of todos from persistence.async def read_todos(self) -> list[Todo]: """Read all todos from the store""" await self.initialize() store = await self.persistence.load() return store["todos"]