search_issue_events can't page past 100 events

Aberta
#2,143 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
74/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
typescript

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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]

Linguagem predominante
TypeScript
Estrelas
961
Forks
179
Merge médio
15h 33min
PRs com merge (30d)
476

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de getsentry/toolkit

Todas as issues de getsentry/toolkit

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.