rust-sdk/crates/rmcp/src/model
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andrew Harvard 7ba1ac4959
fix: use mimeType instead of mime_type for MCP specification compliance (#339)
- Fix ResourceContents enum to properly serialize with camelCase field names
- Add comprehensive tests to verify JSON serialization compliance
- Ensure all resource-related structs use mimeType as per MCP spec
- Add tests for RawResource, ResourceContents, RawImageContent, RawAudioContent
- Add test for prompt message image content serialization
- Update message schema files to reflect mimeType changes
- Fix import ordering to match project formatting standards

This change ensures the Rust SDK is fully compliant with the MCP specification
which requires mimeType (camelCase) for all resource content types.
2025-07-29 12:42:56 -04:00
..
annotated.rs feat(model): add json schema generation support for all model types (#176) 2025-05-15 23:56:31 +08:00
capabilities.rs feat(model): add json schema generation support for all model types (#176) 2025-05-15 23:56:31 +08:00
content.rs fix: use mimeType instead of mime_type for MCP specification compliance (#339) 2025-07-29 12:42:56 -04:00
extension.rs feat: provide more context information (#236) 2025-05-29 11:52:54 +08:00
meta.rs feat(extension): extract http request part into rmcp extension (#163) 2025-05-09 10:36:52 +08:00
prompt.rs fix: use mimeType instead of mime_type for MCP specification compliance (#339) 2025-07-29 12:42:56 -04:00
resource.rs fix: use mimeType instead of mime_type for MCP specification compliance (#339) 2025-07-29 12:42:56 -04:00
serde_impl.rs feat: revision-2025-03-26 without streamable http (#84) 2025-04-07 09:47:39 +08:00
tool.rs feat(server): add annotation to tool macro (#184) 2025-05-18 16:04:58 +08:00