@@ -35,16 +35,6 @@ pub trait McpClient: Sync + Send {
3535 fn client_info ( & self ) -> & InitializeRequestParams ;
3636 fn server_info ( & self ) -> Option < InitializeResult > ;
3737
38- #[ deprecated( since = "0.2.0" , note = "Use `client_info()` instead." ) ]
39- fn get_client_info ( & self ) -> & InitializeRequestParams {
40- self . client_info ( )
41- }
42-
43- #[ deprecated( since = "0.2.0" , note = "Use `server_info()` instead." ) ]
44- fn get_server_info ( & self ) -> Option < InitializeResult > {
45- self . server_info ( )
46- }
47-
4838 /// Checks whether the server has been initialized with client
4939 fn is_initialized ( & self ) -> bool {
5040 self . server_info ( ) . is_some ( )
@@ -57,23 +47,12 @@ pub trait McpClient: Sync + Send {
5747 . map ( |server_details| server_details. server_info )
5848 }
5949
60- #[ deprecated( since = "0.2.0" , note = "Use `server_version()` instead." ) ]
61- fn get_server_version ( & self ) -> Option < Implementation > {
62- self . server_info ( )
63- . map ( |server_details| server_details. server_info )
64- }
65-
6650 /// Returns the server's capabilities.
6751 /// After initialization has completed, this will be populated with the server's reported capabilities.
6852 fn server_capabilities ( & self ) -> Option < ServerCapabilities > {
6953 self . server_info ( ) . map ( |item| item. capabilities )
7054 }
7155
72- #[ deprecated( since = "0.2.0" , note = "Use `server_capabilities()` instead." ) ]
73- fn get_server_capabilities ( & self ) -> Option < ServerCapabilities > {
74- self . server_info ( ) . map ( |item| item. capabilities )
75- }
76-
7756 /// Checks if the server has tools available.
7857 ///
7958 /// This function retrieves the server information and checks if the
@@ -156,10 +135,6 @@ pub trait McpClient: Sync + Send {
156135 self . server_info ( )
157136 . map ( |server_details| server_details. capabilities . logging . is_some ( ) )
158137 }
159- #[ deprecated( since = "0.2.0" , note = "Use `instructions()` instead." ) ]
160- fn get_instructions ( & self ) -> Option < String > {
161- self . server_info ( ) ?. instructions
162- }
163138
164139 fn instructions ( & self ) -> Option < String > {
165140 self . server_info ( ) ?. instructions
0 commit comments