list_tasks
Retrieve all tasks from the task management server to view current items and track progress.
Instructions
List all tasks
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/task_mcp_server/server.py:100-121 (handler)Executes the list_tasks tool by checking if tasks exist, formatting a markdown list of all tasks with status indicators, and returning as TextContent.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)Registers the list_tasks tool in the @server.list_tools() handler, including name, description, and empty input schema.types.Tool( name="list_tasks", description="List all tasks", inputSchema={ "type": "object", "properties": {} } ),
- src/task_mcp_server/server.py:39-42 (schema)Input schema for list_tasks tool: no required properties.inputSchema={ "type": "object", "properties": {} }