Skip to content

Resource::TextContents#to_h returns mime_type (snake_case) instead of mimeType (camelCase) #234

@xurtian-lpit

Description

@xurtian-lpit

Resource::TextContents#to_h (and BlobContents#to_h) return :mime_type as the key, but the MCP protocol spec requires mimeType (camelCase). This is inconsistent with Resource#to_h which correctly uses :mimeType.

See also https://modelcontextprotocol.io/specification/2025-06-18/server/resources#data-types

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions