list_tasks
View all tasks in your task management system to track progress and organize your workflow.
Instructions
List all tasks
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/task_mcp_server/server.py:100-121 (handler)The handler implementation for the list_tasks tool, which formats and returns the list of current tasks.
elif name == "list_tasks": if not tasks: return [ types.TextContent( type="text", text="No tasks found. Add a task to get started!" ) ] task_list = "📋 Task List:\n\n" for task_id, task in tasks.items(): status = "✓" if task["completed"] else "○" task_list += f"{status} [{task_id}] {task['title']}\n" if task["description"]: task_list += f" └─ {task['description']}\n" return [ types.TextContent( type="text", text=task_list ) ] - src/task_mcp_server/server.py:36-43 (registration)The registration of the list_tasks tool within the MCP server's list_tools handler.
types.Tool( name="list_tasks", description="List all tasks", inputSchema={ "type": "object", "properties": {} } ),