Fix Content::Image#to_h to return mimeType (camelCase) per MCP spec
This is a fix for a similar bug that remained, as in #235. `Content::Image#to_h` returned `mime_type` (snake_case), but the MCP spec requires `mimeType` (camelCase) for the MIME type field in image content.
This commit is contained in:
parent
5b04089e06
commit
37563e59bd
1 changed files with 34 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ module MCP
|
|||
end
|
||||
|
||||
def to_h
|
||||
{ data: data, mime_type: mime_type, annotations: annotations, type: "image" }.compact
|
||||
{ data: data, mimeType: mime_type, annotations: annotations, type: "image" }.compact
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue