search_issue_events can't page past 100 events

オープン
#2,143 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
74/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

Start with the tool schema in packages/mcp-core/src/tools/catalog/search-issue-events.ts:121-125 and the API client in packages/mcp-core/src/api-client/client.ts:3864-3901. Trace how the Sentry response’s Link header is handled and compare with tools that already accept a cursor, such as find_projects. Done when callers can request subsequent event pages and the returned events no longer stop at 100.

索引モデルが issue の本文から書いたものです。

説明

search_issue_events caps limit at 100 and has no cursor input, so an agent can't cover an issue with more events than that in the window. The Sentry endpoint it calls paginates; the MCP drops the cursor.

  • Tool schema: limit is .max(100) and there is no cursor param (packages/mcp-core/src/tools/catalog/search-issue-events.ts:121-125).
  • API client sends only per_page: limit and returns data, so the Link header cursor is lost (packages/mcp-core/src/api-client/client.ts:3864-3901).
  • Sentry GET /organizations/{org}/issues/{issue}/events/ uses self.paginate(..., paginator=GenericOffsetPaginator(...)) (getsentry/sentry src/sentry/issues/endpoints/group_events.py:212-216 @ 419d3dc).
  • Observed in a hosted MCP call (server 0.42.0, Claude): limit=100, period=7d returned exactly 100 events with no note that more exist, for an issue with ~850 events in that window.

Reported through MCP user feedback (MCP-SERVER-GN2). Related: other tools already take a cursor (find_projects, find_organizations, find_dashboards).

via Sentry.

--

View Session [Sentry]

主要言語
TypeScript
スター
961
フォーク
179
平均マージ
15時間 33分
マージ済み PR(30日)
476

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/toolkit のほかの issue

getsentry/toolkit の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。