From 2942d456cc1cf040a51b2a9677121ce1fda797ab Mon Sep 17 00:00:00 2001 From: Riley Shott Date: Tue, 10 Jun 2025 12:54:21 -0700 Subject: [PATCH] JSON body fix in examples/http_server.rb --- examples/http_server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/http_server.rb b/examples/http_server.rb index 1f5abac..811775c 100644 --- a/examples/http_server.rb +++ b/examples/http_server.rb @@ -125,7 +125,7 @@ app = proc do |env| # Log the MCP response details _, _, body = response - if body.is_a?(Array) && !body.empty? + if body.is_a?(Array) && !body.empty? && body.first begin parsed_response = JSON.parse(body.first) if parsed_response["error"]