Skip to content

Commit 4807888

Browse files
committed
aded documentation about media dropping behavior
1 parent 526687c commit 4807888

File tree

1 file changed

+13
-0
lines changed
  • packages/core/src/integrations/mcp-server

1 file changed

+13
-0
lines changed

packages/core/src/integrations/mcp-server/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ const wrappedMcpServerInstances = new WeakSet();
1616
* Compatible with versions `^1.9.0` of the `@modelcontextprotocol/sdk` package.
1717
* Automatically instruments transport methods and handler functions for comprehensive monitoring.
1818
*
19+
* ## Media Content Handling
20+
*
21+
* The MCP server integration automatically filters out media content (images, videos, audio, etc.)
22+
* from message attributes to prevent large media from breaking instrumentation. When media content
23+
* is detected and dropped, it is tracked via client reports for monitoring and user awareness.
24+
*
25+
* The following content types are automatically filtered:
26+
* - Images: JPEG, PNG, GIF, WebP, SVG, BMP, TIFF
27+
* - Videos: MP4, AVI, MOV, WMV, FLV, WebM, MKV
28+
* - Audio: MP3, WAV, OGG, MPEG, AAC, FLAC
29+
* - Documents: PDF, ZIP files
30+
* - Large base64 encoded data that appears to be media
31+
*
1932
* @example
2033
* ```typescript
2134
* import * as Sentry from '@sentry/core';

0 commit comments

Comments
 (0)