Skip to content

MCP: get_current_activity and get_recent_activity silently cover only the first 20 repositories #3596

Closed

Description

@integry

Problem

With a grant of 24 repositories, get_current_activity {} answered "Across 20 repositories: 1 running tasks…" and listed one task, while list_tasks {state:"active"} called seconds earlier returned two running tasks; the second was in a repository past the first 20. repositoriesTruncated: true is set, but there is no parameter to reach the remaining repositories and the summary does not say work may be missing. get_recent_activity and list_pull_requests without repository have the same 20-repository cut.

Expected / acceptance criteria

  • get_current_activity and get_recent_activity cover every repository of the grant (running and queued work is read with one query across the granted repositories, not per repository), or, if a cap must remain for cost reasons, it is at least 100, and the summary states how many repositories were not scanned.
  • list_pull_requests without repository either covers all granted repositories or accepts an offset/cursor to reach the rest, and its summary states the truncation.
  • Test with a grant of more than 20 repositories where the only running task is in the last one: it is reported.

Implementation

See the activity tools under packages/api/mcp/ (search for repositoriesTruncated). Prefer a single database query filtered by the granted repository set over fan-out per repository.

Notes

ProPR runs on SQLite only: do not add code or tests for other databases. Keep GitHub API usage bounded: do not add one GitHub call per repository.

Activity

  1. propr-dev commented on Nov 17, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3596/claude-opus-5-5-mcp-get_current_activity--20261117-0119-hk4
    • Base Branch: 3595-epic-0-9-h9l
    • Worktree: issue-3596-20261117-0119-claude-opus-5-5-hk4

    🔍 Track Task Execution

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions