kiro_task_list
List and manage active asynchronous tasks in Kiro CLI MCP Server, with options to filter by session ID and include completed tasks for comprehensive workflow oversight.
Instructions
List active async tasks
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | Optional filter by session ID | |
| include_done | No | Include completed/failed tasks |
Implementation Reference
- src/kiro_cli_mcp/server.py:388-402 (handler)Handler function that implements the core logic of kiro_task_list by parsing arguments and delegating to StreamingTaskManager.list_tasks to retrieve and format the list of active tasks.async def _handle_task_list( task_manager: StreamingTaskManager, arguments: dict[str, Any] ) -> dict[str, Any]: """Handle kiro_task_list tool call - list active tasks.""" session_id = arguments.get("session_id") include_done = arguments.get("include_done", False) tasks = await task_manager.list_tasks(session_id, include_done) return { "tasks": [t.to_dict() for t in tasks], "count": len(tasks), }
- src/kiro_cli_mcp/tools.py:191-208 (schema)Schema definition for the kiro_task_list tool, specifying input parameters: optional session_id (string) and include_done (boolean, default False). This is part of the TOOLS list used for MCP tool registration.{ "name": "kiro_task_list", "description": "List active async tasks", "inputSchema": { "type": "object", "properties": { "session_id": { "type": "string", "description": "Optional filter by session ID" }, "include_done": { "type": "boolean", "description": "Include completed/failed tasks", "default": False } } } },
- src/kiro_cli_mcp/server.py:123-124 (registration)Registration/dispatch point in the main handle_call_tool function where kiro_task_list calls are routed to the specific handler.elif name == "kiro_task_list": result = await _handle_task_list(task_manager, arguments)