get_projects
Retrieve all projects from Things, with an option to include tasks within projects, enabling streamlined project analysis and management.
Instructions
Get all projects from Things
Args: include_items: Include tasks within projects
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_items | No |
Implementation Reference
- things_server.py:107-119 (handler)The main handler function for the 'get_projects' tool. It retrieves all projects using the 'things.projects()' API and formats them using 'format_project', optionally including items. Decorated with '@mcp.tool' for registration.@mcp.tool async def get_projects(include_items: bool = False) -> str: """Get all projects from Things Args: include_items: Include tasks within projects """ projects = things.projects() if not projects: return "No projects found" formatted_projects = [format_project(project, include_items) for project in projects] return "\n\n---\n\n".join(formatted_projects)