Skip to content

Conversation

@MurphyLo
Copy link
Contributor

@MurphyLo MurphyLo commented Nov 6, 2025

Binary content (images, etc.) in container_file_read tool was using the text field, causing MCP hosts like Claude Desktop to display base64-encoded strings as both text message and image content in the conversation, which floods the context window with meaningless data.

This PR changed container_file_read to use the blob field for binary data instead of text field, in compliance with the MCP 2025-06-18 specification for resource contents.

Per MCP spec:

Binary content (images, etc.) was incorrectly using 'text' field, causing MCP hosts like Claude Desktop to display base64 strings as text messages, flooding the context window.

Changed to use 'blob' field for binary data per MCP 2025-06-18 spec.
Copy link
Member

@Maximo-Guk Maximo-Guk left a comment

Choose a reason for hiding this comment

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

Thank you!

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