Skip to content

🐛 fix: Support Bedrock Provider for MCP Image Content Rendering #8047

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

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

k255
Copy link
Contributor

@k255 k255 commented Jun 25, 2025

Summary

This PR fixes MCP image content rendering for 'bedrock' provider. Without the fix the image content is rendered as plaintext since for unknown providers the formatToolContent function just fallbacks to stringifying whatever it gets.

Just adding bedrock as known recognized provider fixes image content formatting and rendering in UI.

This is also related to conversation #7798

Change Type

Please delete any irrelevant options.

  • Bug fix (non-breaking change which fixes an issue)

Testing

Used whichever MCP server that generates image content according to MCP spec, like pupeteer .

Test Configuration:

  • Anthropic's Claude 3 Haiku through AWS Bedrock
  • MCP server providing image content

Checklist

Please delete any irrelevant options.

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • My changes do not introduce new warnings

@danny-avila danny-avila changed the base branch from main to dev June 25, 2025 19:31
@danny-avila danny-avila changed the title fix: MCP image content not rendered with bedrock provider (#7797) 🐛 fix: Support Bedrock Provider for Correct MCP Image Content Rendering Jun 25, 2025
@danny-avila danny-avila changed the title 🐛 fix: Support Bedrock Provider for Correct MCP Image Content Rendering 🐛 fix: Support Bedrock Provider for MCP Image Content Rendering Jun 25, 2025
@danny-avila danny-avila merged commit 3ab1bd6 into danny-avila:dev Jun 25, 2025
3 checks passed
rhonyabdullah pushed a commit to rhonyabdullah/LibreChat that referenced this pull request Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants