Releases: rust-mcp-stack/rust-mcp-schema
Releases · rust-mcp-stack/rust-mcp-schema
v0.1.6
0.1.6 (2025-02-17)
Features
-
implement new utility functions (#24) (859b5db)
New functions
New functions provided by `MCPMessage` , available on `ClientMessage` and `ServerMessage`:message.is_request()
: Returns true if the message is a response typemessage.is_response()
: Returns true if the message is a request typemessage.is_notification()
: Returns true if the message is a notification typemessage.is_error()
: Returns true if the message represents an errormessage.request_id()
: Retrieves the request ID associated with the message, if applicable
Bug Fixes
v0.1.5
0.1.5 (2025-02-15)
Features
-
implement builder pattern for JsonrpcErrorError (#18) (71e63e5)
Details
Old Approach
JsonrpcErrorError::new( schema_utils::RpcErrorCodes::method_not_found, "Method not found!".to_string(), None, );
New Approach
JsonrpcErrorError::method_not_found()
- overriding the
message
and passingdata
:
JsonrpcErrorError::method_not_found() .with_message("Method is not supported!".to_string()) .with_data(Some(json!({"details": "No implementation found for this method."})))
- overriding the