chore: generate
This commit is contained in:
@@ -72,7 +72,8 @@ export function convertTool(mcpTool: MCPToolDef, client: Client, timeout?: numbe
|
||||
.filter((text) => text.trim())
|
||||
.join("\n\n") || "MCP tool returned an error",
|
||||
)
|
||||
if (result.content.length > 0 || result.structuredContent === undefined || result.structuredContent === null) return result
|
||||
if (result.content.length > 0 || result.structuredContent === undefined || result.structuredContent === null)
|
||||
return result
|
||||
return {
|
||||
...result,
|
||||
content: [{ type: "text" as const, text: JSON.stringify(result.structuredContent) }],
|
||||
|
||||
Reference in New Issue
Block a user