search_tasks
Locate tasks by title, description, or tags using query-based search. Integrates with DeltaTask MCP Server for efficient task management and organization.
Instructions
Search tasks by title, description, or tags.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Implementation Reference
- server.py:26-30 (handler)The MCP tool handler function for 'search_tasks'. It is registered via the @mcp.tool() decorator and delegates the search logic to TaskService.search(query).@mcp.tool() async def search_tasks(query: str) -> list[dict[str, Any]]: """Search tasks by title, description, or tags.""" return service.search(query)
- Supporting method in TaskService that performs the search by querying the repository and recursively adding subtasks to results.def search(self, query: str) -> List[Dict[str, Any]]: """Search tasks and return matches.""" results = self.repository.search_todos(query) # Add subtasks for task in results: self._recursively_add_subtasks(task) return results