We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2673e2e + aa961f0 commit 40a1b47Copy full SHA for 40a1b47
1 file changed
pkg/tools/mcp/client.go
@@ -204,6 +204,11 @@ func processMCPContent(toolResult *mcp.CallToolResult) *tools.ToolCallResult {
204
}
205
206
207
+ // Handle an empty response. This can happen if the MCP tool does not return any content.
208
+ if finalContent == "" {
209
+ finalContent = "no output"
210
+ }
211
+
212
return &tools.ToolCallResult{
213
Output: finalContent,
214
0 commit comments