get_event_attachment inlines files up to 30 MiB, which can drop the transport
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend-api-design
Línea de trabajo
Start with packages/mcp-core/src/api-client/client.ts around the inline attachment size cap and download handling, then read tools/catalog/get-event-attachment.ts for the tool schema and response. Check how the tool can return a link without buffering a large file and how its tests cover inline and oversized attachments. Done means callers can get a usable result for large attachments without the transport closing; the reported client limit and memory impact are still unverified.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Pattern: get_event_attachment returns any attachment up to 30 MiB inline as a base64 blob in one JSON-RPC result, and a caller has no way to ask for a link instead. For a ~22 MiB file the client's transport closed before it got a usable result.
Reports: 1 (MCP user feedback MCP-SERVER-GW8, get_event_attachment, server 0.42.0, Codex over HTTP, kind=broken, impact=blocked). Customer identifiers are left out on purpose; the internal feedback log has them.
What happened: listing an event's attachments worked. Downloading a 23,439,996-byte .tar.gz closed the transport before the client got either the embedded resource or a download link. Sampled server spans for those calls are all ok: the attachment list GET and the ?download=1 GET returned 200 and the tools/call span finished in ~1.2 s, so the handler completed and the failure came after the result left it.
Cause (code verified, transport side inferred):
- The inline cap is
DEFAULT_MAX_INLINE_ATTACHMENT_BYTES = 30 * 1024 * 1024, sized for the Worker's 128 MB isolate, not for what MCP clients accept (packages/mcp-core/src/api-client/client.ts:372-378@0c6b028). - Only attachments over that cap skip the download and return a presigned link (
client.ts:4160-4171,tools/catalog/get-event-attachment.ts:124-134). A 22.4 MiB file falls under it, so the bytes are buffered (client.ts:4192) and returned as a ~31 MB base64EmbeddedResource(get-event-attachment.ts:147-166). - The input schema has only
attachmentIdto pick a file; nothing requests metadata or a link only (get-event-attachment.ts:91-101). - Sentry already answers
?download=1for objectstore attachments with a redirect to a presigned URL (getsentry/sentrysrc/sentry/api/endpoints/event_attachment_details.py:124@0d74e59b939), which the oversized path uses viaresolveDirectDownloadUrl.
Not checked: the client-side error and the client's maximum message size, so it's inferred, not confirmed, that the result size closed the transport. I also didn't check whether the Worker came close to its memory limit while serializing the result. Related but different: the "hosted MCP connection dropped mid-call" reports were transient and worked on retry; this one is size-dependent.
via automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_18245721458ab109a53742963df57e13.
--
- Lenguaje dominante
- TypeScript
- Estrellas
- 975
- Forks
- 189
- Merge medio
- 19 h 57 min
- PR fusionados (30 d)
- 542
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
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
getsentry/toolkit#2583 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
getsentry/toolkit#2531 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
mcp-feedback-pattern
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
getsentry/toolkit#2458 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
getsentry/toolkit#2444 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
mcp-feedback-pattern
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
getsentry/toolkit#2362 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/toolkit
Issues similares
-
Release utils decode git output chunk by chunk, so a multi-byte character can turn into U+FFFDPosiblemente ocupada @goranai la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 2 días
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothingPosiblemente ocupada @chaitanya0305 la tomó hoy. Abiertobug P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
BaaRai/ARTEX#652 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
compiler-explorer/compiler-explorer#9710 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
test(web): RevealArtwork's warm tests flake on CI because a 0 ms idle timeout means no deadlineAbiertobug effort:S P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
nightscout/nocturne#4556 ·
Los mantenedores suelen responder en 1 día