Skip to content

MCP: use @sentry/api pagination for find_* tools #2287

Closed

Description

@BYK

The MCP still does its own pagination instead of using @sentry/api's helpers:

  • packages/mcp-core/src/api-client/client.ts parses Link headers itself (getNextCursor, plus a page-walking loop further down).
  • find-dashboards.ts has its own cursor loop.

Move both to @sentry/api's paginate / fetchAllPages / consumeCursorPage helpers, the way the CLI already does in packages/cli/src/lib/api/infrastructure.ts.

Follow-up from getsentry/sentry-api-schema#99.

Activity

  1. linear-code commented on Nov 16, 2026

    @linear-code
  2. added a commit that references this issue on Nov 17, 2026
    5103cec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions