@@ -13,9 +13,9 @@ use async_trait::async_trait;
1313use cortex_common:: create_default_client;
1414use cortex_mcp_types:: {
1515 CallToolParams , CallToolResult , GetPromptParams , GetPromptResult , InitializeParams ,
16- InitializeResult , JsonRpcNotification , JsonRpcRequest , JsonRpcResponse ,
17- ListPromptsResult , ListResourcesResult , ListToolsResult , ReadResourceParams ,
18- ReadResourceResult , RequestId , methods,
16+ InitializeResult , JsonRpcNotification , JsonRpcRequest , JsonRpcResponse , ListPromptsResult ,
17+ ListResourcesResult , ListToolsResult , ReadResourceParams , ReadResourceResult , RequestId ,
18+ methods,
1919} ;
2020use tokio:: io:: { AsyncBufReadExt , AsyncWriteExt , BufReader } ;
2121use tokio:: process:: { Child , Command } ;
@@ -172,7 +172,8 @@ impl StdioTransport {
172172 }
173173 }
174174 // Try to parse as notification
175- else if let Ok ( notification) = serde_json:: from_str :: < JsonRpcNotification > ( trimmed)
175+ else if let Ok ( notification) =
176+ serde_json:: from_str :: < JsonRpcNotification > ( trimmed)
176177 {
177178 debug ! ( method = %notification. method, "Received notification" ) ;
178179 }
@@ -209,7 +210,11 @@ impl StdioTransport {
209210
210211 while attempt < self . reconnect_config . max_attempts {
211212 attempt += 1 ;
212- info ! ( attempt, max = self . reconnect_config. max_attempts, "Attempting reconnection" ) ;
213+ info ! (
214+ attempt,
215+ max = self . reconnect_config. max_attempts,
216+ "Attempting reconnection"
217+ ) ;
213218
214219 match self . connect ( ) . await {
215220 Ok ( ( ) ) => {
@@ -473,7 +478,8 @@ impl HttpTransport {
473478 ) ) ;
474479 }
475480
476- let json_response: JsonRpcResponse = response. json ( ) . await . context ( "Failed to parse response" ) ?;
481+ let json_response: JsonRpcResponse =
482+ response. json ( ) . await . context ( "Failed to parse response" ) ?;
477483 Ok ( json_response)
478484 }
479485
@@ -500,7 +506,11 @@ impl HttpTransport {
500506
501507 while attempt < self . reconnect_config . max_attempts {
502508 attempt += 1 ;
503- info ! ( attempt, max = self . reconnect_config. max_attempts, "Attempting HTTP reconnection" ) ;
509+ info ! (
510+ attempt,
511+ max = self . reconnect_config. max_attempts,
512+ "Attempting HTTP reconnection"
513+ ) ;
504514
505515 match self . test_connection ( ) . await {
506516 Ok ( ( ) ) => {
0 commit comments