You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] MCP tool results with non-image binary content crash session with 'unsupported tool content part type: file-data' #30249
When an MCP server returns a tool result containing a resource with a base64 blob whose mime type is not an image or PDF (e.g. text/csv), the session fails with:
unsupported tool content part type: file-data with media type: text/csv
The issue is in how opencode processes MCP tool results. Non-image blobs are stored as binary attachments, which the AI SDK maps to file-data content parts. The Anthropic provider only accepts file-data for PDFs.
Minimal reproducible example:
Create a simple MCP server that returns a CSV as a resource blob:
Activity
github-actions commentedon Aug 1, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.