Commit f975bc1

mo khan <mo@mokhan.ca>
2025-08-14 22:20:09
feat: pretty print the response from the MCP server
1 parent 538836f
Changed files (1)
lib
elelem
toolbox
lib/elelem/toolbox/mcp.rb
@@ -18,7 +18,7 @@ module Elelem
         end
 
         result = client.call(name, args)
-        tui.say(result)
+        tui.say(JSON.pretty_generate(result), newline: true)
 
         if result.nil? || result.empty?
           tui.say("Tool call failed: no response from MCP server", colour: :red)