Merge pull request #150 from koic/set_default_content_to_an_empty_array_instead_of_nil

Set default `content` to an empty array instead of `nil`
This commit is contained in:
Koichi ITO 2025-10-03 10:22:46 +09:00 • committed by GitHub
commit c5f2f98077
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ module MCP
error = deprecated_error
end
@content = content
@content = content || []
@error = error
@structured_content = structured_content
end