mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-19 01:54:04 +00:00
fix: mcp not response output (#5388)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user