We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf928ad commit 5818535Copy full SHA for 5818535
src/core/tools/accessMcpResourceTool.ts
@@ -73,7 +73,11 @@ export async function accessMcpResourceTool(
73
74
resourceResult?.contents.forEach((item) => {
75
if (item.mimeType?.startsWith("image") && item.blob) {
76
- images.push(`data:${item.mimeType};base64,` + item.blob)
+ if (item.mimeType.startsWith("data:")) {
77
+ images.push(item.blob)
78
+ } else {
79
+ images.push(`data:${item.mimeType};base64,` + item.blob)
80
+ }
81
}
82
})
83
0 commit comments