Skip to content

Enhancement: Task - Add show_completed filter to list_tasks - #409

Merged
rafaeljusto merged 1 commit into
mainfrom
completed-tasks
Jul 27, 2026
Merged

Enhancement: Task - Add show_completed filter to list_tasks#409
rafaeljusto merged 1 commit into
mainfrom
completed-tasks

Conversation

@rafaeljusto

Copy link
Copy Markdown
Contributor

Description

The API hides completed work from the tasks endpoint by default, and does so along two independent axes: completed tasks are excluded, and so are tasks that live inside a completed tasklist. Neither was reachable from the MCP client, so an agent asked to review finished work on a project got an empty or misleadingly partial list.

Expose a single show_completed parameter on list_tasks that opts into both, mapping to the SDK's IncludeCompletedTasks and IncludeTasksFromCompletedTasklists filters. The flag mirrors the show_completed parameter already on list_tasklists, so the same wording means the same thing across the two tools. When omitted, both filters stay unset, and the API's exclude-by-default behaviour is unchanged.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Testing

  • Tests pass locally (go test -v ./...)
  • Added/updated tests for new functionality

Checklist

  • Code follows project style guidelines
  • Self-reviewed the code
  • Added necessary documentation
  • No new warnings or errors

The API hides completed work from the tasks endpoint by default, and does
so along two independent axes: completed tasks are excluded, and so are
tasks that live inside a completed tasklist. Neither was reachable from
the MCP client, so an agent asked to review finished work on a project
got an empty or misleadingly partial list.

Expose a single show_completed parameter on list_tasks that opts into
both, mapping to the SDK's IncludeCompletedTasks and
IncludeTasksFromCompletedTasklists filters. The flag mirrors the
show_completed parameter already on list_tasklists, so the same wording
means the same thing across the two tools. When omitted, both filters
stay unset and the API's exclude-by-default behaviour is unchanged.
@rafaeljusto
rafaeljusto requested a review from a team as a code owner July 27, 2026 12:29
@rafaeljusto
rafaeljusto merged commit de62c9f into main Jul 27, 2026
3 checks passed
@rafaeljusto
rafaeljusto deleted the completed-tasks branch July 27, 2026 12:31
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.

1 participant