@@ -493,7 +493,7 @@ impl ErrorData {
493493/// Represents any JSON-RPC message that can be sent or received.
494494///
495495/// This enum covers all possible message types in the JSON-RPC protocol:
496- /// individual requests/responses, notifications, batch operations, and errors.
496+ /// individual requests/responses, notifications, and errors.
497497/// It serves as the top-level message container for MCP communication.
498498#[ derive( Debug , Serialize , Deserialize , Clone , PartialEq ) ]
499499#[ serde( untagged) ]
@@ -686,6 +686,8 @@ impl Default for ClientInfo {
686686#[ cfg_attr( feature = "schemars" , derive( schemars:: JsonSchema ) ) ]
687687pub struct Implementation {
688688 pub name : String ,
689+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
690+ pub title : Option < String > ,
689691 pub version : String ,
690692}
691693
@@ -699,6 +701,7 @@ impl Implementation {
699701 pub fn from_build_env ( ) -> Self {
700702 Implementation {
701703 name : env ! ( "CARGO_CRATE_NAME" ) . to_owned ( ) ,
704+ title : None ,
702705 version : env ! ( "CARGO_PKG_VERSION" ) . to_owned ( ) ,
703706 }
704707 }
@@ -1104,6 +1107,8 @@ pub struct ResourceReference {
11041107#[ cfg_attr( feature = "schemars" , derive( schemars:: JsonSchema ) ) ]
11051108pub struct PromptReference {
11061109 pub name : String ,
1110+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
1111+ pub title : Option < String > ,
11071112}
11081113
11091114const_string ! ( CompleteRequestMethod = "completion/complete" ) ;
@@ -1441,6 +1446,7 @@ macro_rules! ts_union {
14411446 export type $U: ident =
14421447 $( |) ?$( $V: ident) |* ;
14431448 ) => {
1449+ #[ allow( clippy:: large_enum_variant) ]
14441450 #[ derive( Debug , Serialize , Deserialize , Clone ) ]
14451451 #[ serde( untagged) ]
14461452 #[ cfg_attr( feature = "schemars" , derive( schemars:: JsonSchema ) ) ]
0 commit comments