perf: server-side assignee scoping in find-tasks and parallel fetching in get-overview#310
Merged
perf: server-side assignee scoping in find-tasks and parallel fetching in get-overview#310
Conversation
…g in get-overview Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Improves performance of Todoist MCP server tools by moving assignee scoping into server-side filter queries for find-tasks (text/labels path) and by parallelizing independent API calls in get-overview project view generation.
Changes:
- Append responsible-user scoping (e.g.
!assigned to: others) directly into thefind-tasksfilter query for text/labels searches. - Fetch project, sections, and tasks in parallel in
get-overviewviaPromise.all. - Update
find-tasksunit tests to assert the updated filter query strings.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/tools/get-overview.ts | Parallelizes project/sections/tasks fetching when generating a project overview. |
| src/tools/find-tasks.ts | Adds server-side responsible-user filtering to the text/labels filter-query path and updates result counting accordingly. |
| src/tools/tests/find-tasks.test.ts | Updates expected filter queries to include server-side responsible-user scoping. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
scottlovegrove
approved these changes
Feb 12, 2026
…rch path Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
scottlovegrove
pushed a commit
that referenced
this pull request
Feb 14, 2026
🤖 I have created a release *beep* *boop* --- ## [7.9.0](v7.8.1...v7.9.0) (2026-02-14) ### Features * add project-management tool for archive/unarchive ([#314](#314)) ([29226af](29226af)) ### Performance Improvements * server-side assignee scoping in find-tasks and parallel fetching in get-overview ([#310](#310)) ([e6db532](e6db532)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Closes #311. Inspired by Doist/todoist-cli#59.
Short description
Ports two performance optimizations from the CLI to the MCP server, and fixes a pre-existing bug found during review:
Server-side assignee scoping in
find-tasks: The text/labels search path was fetching all matching tasks then filtering byresponsibleUidclient-side. In large workspaces this meant paginating through many irrelevant team members' tasks. Now usesbuildResponsibleUserQueryFilter()to append assignee filters (e.g.!assigned to: others) directly to the API query — matching whatfind-tasks-by-datealready does.Parallel fetching in
get-overview:generateProjectOverviewwas callinggetProject(),getProjectSections(), andgetAllTasksForProject()sequentially. These are independent and now run in parallel viaPromise.all.Bug fix:
filterTasksByResponsibleUsermissingassignedmode (bug: filterTasksByResponsibleUser does not implement 'assigned' mode for container path #311): Theassignedfiltering mode in the container-based path (projectId/sectionId/parentId) was returning all tasks instead of only tasks assigned to others.Note: The container-based search path in
find-tasksstill uses client-side assignee filtering becausegetTasksdoesn't support filter queries.Manual testing
Verified all three affected tools against the live Todoist API using
scripts/run-tool.ts:find-taskswith text search ({"searchText":"meeting","limit":3}) — returns filtered results correctlyfind-tasks-by-datewith today ({"startDate":"today","limit":3}) — confirmed already correctget-overviewwith project ID — returns full project structure correctlyPR Checklist
🤖 Generated with Claude Code