search_tasks
Find tasks in your task management system by searching titles, descriptions, or tags to locate specific items quickly.
Instructions
Search tasks by title, description, or tags.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Implementation Reference
- server.py:26-29 (handler)MCP tool handler function for 'search_tasks'. Decorated with @mcp.tool() for registration. Takes a query string and returns list of task dicts by delegating to TaskService.search().@mcp.tool() async def search_tasks(query: str) -> list[dict[str, Any]]: """Search tasks by title, description, or tags.""" return service.search(query)
- TaskService.search method implementing the core search logic: queries the repository and recursively adds 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
- server.py:26-26 (registration)The @mcp.tool() decorator registers the search_tasks function as an MCP tool.@mcp.tool()