search_events always fails on self-hosted Sentry 25.7.0: /events/validate/ returns 404
Los mantenedores suelen responder en 1 día
@chykB ya está trabajando en esto.
Desde el 6/10/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 64/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Start at the search_events entry point and trace how GET /organizations/{org}/events/validate/ errors are handled before the events query. Reproduce the self-hosted Sentry 25.7.0 case, then verify that a 404 no longer prevents the events request and that successful search_events results are returned.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
Since 0.37.0, search_events calls GET /api/0/organizations/{org}/events/validate/ before every events query (#1105, #1113). Our self-hosted Sentry 25.7.0 answers 404 on that endpoint. The tool treats the 404 as a fatal error, so search_events fails on every call, even though the events query itself would succeed.
Environment
@sentry/mcp-server0.42.0, stdio- Self-hosted Sentry 25.7.0 (build
0ce69559) - Flags:
--host=<self-hosted host> --organization-slug=<org> --project-slug=<project> --skills=inspect,triage - User auth token with
event:read,project:read,org:read,alerts:read
Steps to reproduce
- Start the server with the flags above against a self-hosted Sentry 25.7.0.
- Call
search_eventswithdataset: "errors",query: "level:error",statsPeriod: "24h".
Expected
The tool returns the matching error events.
Actual
API error (404): API request failed: Not Found
What we checked
With the same token, directly against the API:
| Request | Status |
|---|---|
GET /organizations/{org}/events/validate/?project=<id>&dataset=errors&field=title |
404 |
GET /organizations/{org}/events/?project=<id>&dataset=errors&field=title&field=count() |
200 |
GET /organizations/{org}/events/?...&dataset=discover |
200 |
GET /organizations/{org}/events/?...&dataset=spans |
200 |
GET /organizations/{org}/events/?...&dataset=ourlogs |
200 |
search_issues and get_sentry_resource work on 0.42.0. On 0.36.0, the last version without the validate call, search_events returns results against the same instance with the same flags. We pinned 0.36.0 as a workaround.
Suggestion
When /events/validate/ answers 404, skip validation and run the events query, maybe with a warning in the tool output. A 404 there most likely means that the server does not have the endpoint, and not that the query is invalid.
If the maintainers prefer not to fall back: which Sentry version is the minimum for search_events? A version check or a note in the self-hosted docs would help.
Related
- #1253 handles a generic 400 from
validateEvents. This report is about a 404. - #937 reports a 404 from
search_eventson the hosted server. That may be a different cause.
- Lenguaje dominante
- TypeScript
- Estrellas
- 938
- Forks
- 166
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 156
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/toolkit
-
bug MCP
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsentry/toolkit#1600 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
getsentry/toolkit#1471 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
getsentry/toolkit#1611 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement MCP
Dificultad 4/5 1-2 días Aptitud para principiantes 55/100
getsentry/toolkit#1601 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Use typed detector schemas from @sentry/api for metric monitorsPosiblemente ocupada @MathurAditya724 la tomó hace 1 día. Abierto
getsentry/toolkit#1595 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/toolkit
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
braintrustdata/braintrust-sdk-javascript#2659 ·
Los mantenedores suelen responder en 1 día
-
body-parser 2.3.0 in the published ai-dial-chat-bff image is vulnerable (CVE-2026-111181, HIGH)Posiblemente ocupada @illya-havsiyevych la tomó hoy. Abiertobug
Dificultad 1/5 1-3 horas Aptitud para principiantes 87/100
epam/ai-dial-chat#9566 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
はさみアイコンを修正するAbiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
-
resource.reload() while params is in error switches the resource to 'idle' instead of retryingAbiertoarea: core
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día