@@ -47,9 +47,9 @@ use crate::model::ServerJsonRpcMessage;
4747use crate :: {
4848 error:: ErrorData as McpError ,
4949 model:: {
50- CancelledNotification , CancelledNotificationParam , Extensions , GetExtensions , GetMeta ,
51- JsonRpcError , JsonRpcMessage , JsonRpcNotification , JsonRpcRequest , JsonRpcResponse , Meta ,
52- NumberOrString , ProgressToken , RequestId ,
50+ CancelledNotification , CancelledNotificationParam , ErrorCode , Extensions , GetExtensions ,
51+ GetMeta , JsonRpcError , JsonRpcMessage , JsonRpcNotification , JsonRpcRequest ,
52+ JsonRpcResponse , Meta , NumberOrString , ProgressToken , RequestId ,
5353 } ,
5454 transport:: { DynamicTransportError , IntoTransport , Transport } ,
5555} ;
@@ -970,7 +970,13 @@ where
970970 JsonRpcMessage :: response ( result, id)
971971 }
972972 Err ( error) => {
973- tracing:: warn!( %id, ?error, "response error" ) ;
973+ // Method-not-found is expected client probing
974+ // (e.g. unsupported `resources/subscribe`); demote to debug.
975+ if error. code == ErrorCode :: METHOD_NOT_FOUND {
976+ tracing:: debug!( %id, ?error, "response error" ) ;
977+ } else {
978+ tracing:: warn!( %id, ?error, "response error" ) ;
979+ }
974980 JsonRpcMessage :: error ( error, id)
975981 }
976982 } ;
0 commit comments