Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

drop media content from MCP message attributes #17864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
naaa760 wants to merge 12 commits into getsentry:develop
base: develop
Choose a base branch
Loading
from naaa760:msgs-drop-media

Conversation

@naaa760
Copy link

@naaa760 naaa760 commented Oct 5, 2025

PR Description

  • automatically filters out images, videos, audio, and other media content from MCP server message attributes to prevent large media from breaking instrumentation. Tracks dropped media via client reports.

fixes: #17810

Changes:

  • Added media detection logic for common file types (images, videos, audio, documents)
  • Filters media content from tool results and prompt results before attribute extraction
  • Integrates with existing client reports system to track dropped media
  • Preserves all text content while removing only media items

seer-by-sentry[bot] reacted with hooray emoji
@RulaKhaled RulaKhaled self-requested a review October 6, 2025 08:38
Copy link
Author

naaa760 commented Oct 7, 2025

@RulaKhaled
let me know, resolve it

cursor[bot]

This comment was marked as outdated.

Copy link
Author

naaa760 commented Oct 10, 2025

@RulaKhaled
have you reviwed?

Copy link
Member

@RulaKhaled RulaKhaled left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove change from MCP server integration? We are not looking to add this to the MCP server.

naaa760 reacted with thumbs up emoji
Copy link
Author

naaa760 commented Oct 25, 2025
edited
Loading

@RulaKhaled
fixed it , let me know!
sorry for being a little late!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@RulaKhaled RulaKhaled RulaKhaled left review comments

@cursor cursor[bot] cursor[bot] left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Drop Media from messages in SDKs and document behavior

AltStyle によって変換されたページ (->オリジナル) /