Merge pull request #235 from koic/fix_property_field_names_in_resource_contents

Fix `Resource::Contents#to_h` to use correct property names per MCP spec
This commit is contained in:
Koichi ITO 2026-02-20 11:51:34 +09:00 • committed by GitHub
commit a05da399ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,7 @@ module MCP
end
def to_h
{ uri: uri, mime_type: mime_type }.compact
{ uri: uri, mimeType: mime_type }.compact
end
end
@ -37,7 +37,7 @@ module MCP
end
def to_h
super.merge(data: data)
super.merge(blob: data)
end
end
end