fix: mcp not response output (#5388)

This commit is contained in:
Archer
2025-08-05 10:51:42 +08:00
committed by GitHub
parent f870a2de52
commit 37648d5c71
4 changed files with 13 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ type RunToolProps = ModuleDispatchProps<{
type RunToolResponse = DispatchNodeResultType<
{
[NodeOutputKeyEnum.rawResponse]?: any;
[NodeOutputKeyEnum.rawResponse]?: any; // MCP Tool
[key: string]: any;
},
Record<string, any>
@@ -197,6 +197,7 @@ export const dispatchRunTool = async (props: RunToolProps): Promise<RunToolRespo
const result = await mcpClient.toolCall(toolName, params);
return {
data: { [NodeOutputKeyEnum.rawResponse]: result },
[DispatchNodeResponseKeyEnum.nodeResponse]: {
toolRes: result,
moduleLogo: avatar