search_issue_events can't page past 100 events

未关闭
#2,143 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 分钟
30 天内合并 PR
476

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getsentry/toolkit 的其他 Issue

查看 getsentry/toolkit 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。