Skip to main content
Glama
cheezcake

Aidderall MCP Server

by cheezcake

get_current_task

Retrieve your active focus task from the hierarchical task management system, showing what you're currently working on or indicating when all tasks are completed.

Instructions

Get the task with CURRENT status (your active focus). May be manually set via switch_focus, or automatically determined. In zen state (no tasks OR all tasks completed), returns appropriate message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_current_task' tool. It retrieves the current task from the TaskManager, handles zen state, and constructs a detailed response including task details, focus path, stack depth, siblings to the left, breadcrumb trail, and a navigation hint.
    async def handle_get_current_task(self) -> Dict[str, Any]: current = self.task_manager.current_task if self.task_manager.is_zen_state: if not current: return {"message": "No tasks (zen state)", "zen_state": True} else: return {"message": "All tasks completed (zen state)", "zen_state": True} if not current: return {"error": "No current task"} siblings_left = self.task_manager.get_siblings_to_left() breadcrumb = self.task_manager.get_breadcrumb_trail() response = { "task_id": current.id, "title": current.title, "body": current.body, "focus_path": self.task_manager.get_focus_path(), "stack_depth": self.task_manager.get_stack_depth(), "siblings_to_left": [{"id": s.id, "title": s.title} for s in siblings_left], "breadcrumb_trail": [{"id": t.id, "title": t.title} for t in breadcrumb], } # Add navigation options response["navigation_hint"] = ( "Use switch_focus to work on any task, or complete_current_task when done" ) return response
  • The Tool definition including input schema (empty object) and description for the 'get_current_task' tool, provided by the get_tool_definitions method.
    name="get_current_task", description="Get the task with CURRENT status (your active focus). May be manually set via switch_focus, or automatically determined. In zen state (no tasks OR all tasks completed), returns appropriate message.", inputSchema={"type": "object", "properties": {}}, ),
  • src/server.py:55-55 (registration)
    Registers the handle_get_current_task function as the handler for the 'get_current_task' tool in the MCP server's tool call dispatcher (handler_map).
    "get_current_task": handlers.handle_get_current_task,
  • src/server.py:40-42 (registration)
    Registers the list_tools handler which returns all tool definitions (including schema for 'get_current_task') via AidderallHandlers.get_tool_definitions().
    @server.list_tools() async def list_tools() -> list[Any]: return handlers.get_tool_definitions()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cheezcake/aidderall_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server