Skip to content

Add get_all_tasks functionality to fetch tasks across all projects#31

Open
cbrane wants to merge 1 commit into
jacepark12:mainfrom
cbrane:feature/add-get-all-tasks
Open

Add get_all_tasks functionality to fetch tasks across all projects#31
cbrane wants to merge 1 commit into
jacepark12:mainfrom
cbrane:feature/add-get-all-tasks

Conversation

@cbrane

@cbrane cbrane commented Jul 29, 2025

Copy link
Copy Markdown

Summary

  • Added get_all_tasks() method to fetch tasks from all projects
  • Useful for users who organize tasks with tags rather than by projects
  • Returns tasks grouped by project with project name and color included

Problem

The current MCP implementation only allows fetching tasks by specific project ID, which doesn't work well for users who:

  • Organize tasks primarily using tags
  • Want to see all their tasks at once
  • Use the Inbox feature (which isn't exposed as a regular project via the API)

Solution

Added a new tool get_all_tasks that:

  1. Fetches all projects
  2. Gets tasks from each project using the /project/{id}/data endpoint
  3. Combines all tasks into a single response
  4. Adds project context (name and color) to each task

Changes

  • Added get_all_tasks() method to TickTickClient class
  • Added @mcp.tool() get_all_tasks to the MCP server
  • Tasks are grouped by project in the output for better organization

Testing

Tested locally and confirmed:

  • Successfully fetches tasks across multiple projects
  • Includes project context with each task
  • Handles empty projects gracefully

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

- Added get_all_tasks() method to TickTickClient that fetches tasks from all projects
- Added get_all_tasks tool to MCP server that returns all tasks grouped by project
- Useful for users who organize tasks with tags rather than projects
- Tasks include project name and color for better context
@jacepark12

Copy link
Copy Markdown
Owner

@cbrane
Thanks for your PR!

It seems this PR has conflict due to updates in #28
If you could resolve conflict or make an enhancement of get_all_task tool implemented in #28 PR, please let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants