File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1
1
/// ----------------------------------------------------------------------------
2
- /// This file is auto-generated by mcp-schema-gen v0.1.6 .
2
+ /// This file is auto-generated by mcp-schema-gen v0.1.7 .
3
3
/// WARNING:
4
4
/// It is not recommended to modify this file directly. You are free to
5
5
/// modify or extend the implementations as needed, but please do so at your own risk.
6
6
///
7
7
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
8
8
/// Hash : bb1446ff1810a0df57989d78366d626d2c01b9d7
9
- /// Generated at : 2025-02-22 12:34:28
9
+ /// Generated at : 2025-02-22 14:26:53
10
10
/// ----------------------------------------------------------------------------
11
11
///
12
12
/// MCP Protocol Version
Original file line number Diff line number Diff line change @@ -493,6 +493,14 @@ impl TryFrom<NotificationFromClient> for ClientNotification {
493
493
}
494
494
495
495
impl NotificationFromClient {
496
+ /// Checks if the current notification is an `InitializedNotification` from the client, indicating that the client has been initialized.
497
+ pub fn is_initialized_notification ( & self ) -> bool {
498
+ matches ! (
499
+ self ,
500
+ NotificationFromClient :: ClientNotification ( ClientNotification :: InitializedNotification ( _) )
501
+ )
502
+ }
503
+
496
504
#[ deprecated( since = "0.1.4" , note = "Use `method()` instead." ) ]
497
505
pub fn get_method ( & self ) -> & str {
498
506
match self {
Original file line number Diff line number Diff line change 1
1
/// ----------------------------------------------------------------------------
2
- /// This file is auto-generated by mcp-schema-gen v0.1.6 .
2
+ /// This file is auto-generated by mcp-schema-gen v0.1.7 .
3
3
/// WARNING:
4
4
/// It is not recommended to modify this file directly. You are free to
5
5
/// modify or extend the implementations as needed, but please do so at your own risk.
6
6
///
7
7
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
8
8
/// Hash : bb1446ff1810a0df57989d78366d626d2c01b9d7
9
- /// Generated at : 2025-02-22 12:34:29
9
+ /// Generated at : 2025-02-22 14:26:53
10
10
/// ----------------------------------------------------------------------------
11
11
///
12
12
/// MCP Protocol Version
Original file line number Diff line number Diff line change @@ -493,6 +493,14 @@ impl TryFrom<NotificationFromClient> for ClientNotification {
493
493
}
494
494
495
495
impl NotificationFromClient {
496
+ /// Checks if the current notification is an `InitializedNotification` from the client, indicating that the client has been initialized.
497
+ pub fn is_initialized_notification ( & self ) -> bool {
498
+ matches ! (
499
+ self ,
500
+ NotificationFromClient :: ClientNotification ( ClientNotification :: InitializedNotification ( _) )
501
+ )
502
+ }
503
+
496
504
#[ deprecated( since = "0.1.4" , note = "Use `method()` instead." ) ]
497
505
pub fn get_method ( & self ) -> & str {
498
506
match self {
You can’t perform that action at this time.
0 commit comments