Skip to content

Commit a98e4f6

Browse files
committed
fix(mcp): child workflow with response block returns error
1 parent c6357f7 commit a98e4f6

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)