Skip to content

Commit c286f3e

Browse files
fix(mcp): child workflow with response block returns error (#3114)
1 parent b738550 commit c286f3e

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/api/mcp/serve/[serverId]

1 file changed

+1
-1
lines changed

apps/sim/app/api/mcp/serve/[serverId]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ async function handleToolsCall(
284284
content: [
285285
{ type: 'text', text: JSON.stringify(executeResult.output || executeResult, null, 2) },
286286
],
287-
isError: !executeResult.success,
287+
isError: executeResult.success === false,
288288
}
289289

290290
return NextResponse.json(createResponse(id, result))

0 commit comments

Comments
 (0)