diff --git a/src/mcp/util.ts b/src/mcp/util.ts index af63b1d337c..4d7afc2f1d9 100644 --- a/src/mcp/util.ts +++ b/src/mcp/util.ts @@ -41,7 +41,8 @@ export function toContent( const suffix = options?.contentSuffix || ""; return { content: [{ type: "text", text: `${prefix}${text}${suffix}` }], - }; + structuredContent: data, + } as CallToolResult & { structuredContent: any }; } /**