mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 18:22:25 +00:00
fix: repeat MCP tool data as JSON text for clients without structured content
This commit is contained in:
1 parent
df0e0f32e8
commit
2e071b62d3
4 files changed
+10
-3
No files matched your search
@@ -80,8 +80,11 @@ export function createMcpServer({
|
||||
signal,
|
||||
});
|
||||
return {
|
||||
// The data is repeated as JSON text for clients that do not read
|
||||
// structuredContent.
|
||||
content: [
|
||||
{ type: 'text', text: result.summary },
|
||||
{ type: 'text', text: JSON.stringify(result.data) },
|
||||
...(result.images || []).map((item) => ({
|
||||
type: 'image',
|
||||
data: item.data,
|
||||
|
||||
Reference in new issue
Block a user