get_tasks_status
Retrieve current task status values from the Tasks MCP Server to monitor progress and manage workflow efficiently.
Instructions
Get the status tasks values. Returns: dict: The status tasks values.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/tasks.py:136-143 (handler)The handler function implementing the logic for the 'get_tasks_status' tool. It returns a dictionary of all TaskStatus enum names mapped to their integer values.@mcp.tool() async def get_tasks_status() -> dict: """Get the status tasks values. Returns: dict: The status tasks values. """ return {status.name: status.value for status in TaskStatus}
- src/config/server.py:35-35 (registration)The call to create_tasks_tools(mcp) which defines and registers the get_tasks_status tool (along with other tasks tools) on the FastMCP server instance.create_tasks_tools(mcp)
- src/models/tasks.py:6-10 (helper)The TaskStatus IntEnum used by the get_tasks_status tool to generate its output dictionary of status values.class TaskStatus(IntEnum): CREATED = 0 IN_PROGRESS = 1 COMPLETED = 2