get_event_attachment inlines files up to 30 MiB, which can drop the transport
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- backend-api-design
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
--
- Vorherrschende Sprache
- TypeScript
- Sterne
- 975
- Forks
- 189
- Ø Merge
- 19 Std. 57 Min.
- Gemergte PRs (30 T.)
- 542
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus getsentry/toolkit
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
getsentry/toolkit#2583 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
getsentry/toolkit#2531 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
mcp-feedback-pattern
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
getsentry/toolkit#2458 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
getsentry/toolkit#2444 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
mcp-feedback-pattern
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
getsentry/toolkit#2362 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in getsentry/toolkit
Ähnliche Issues
-
sumHorizontal, maxHorizontal, minHorizontal, allHorizontal, anyHorizontal, struct and argSortBy treat strings as literals instead of column namesEvtl. vergeben @tomaionescu hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
pola-rs/nodejs-polars#486 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
jaegertracing/jaeger-ui#4853 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/plugins platform/linux reproduced type/bug version/v2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
anomalyco/opencode#66970 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:tui enhancement platform:macos
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
anthropics/claude-code#112838 ·
-
approved check:passed streams:add
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag