refactor: make McpSyncServerExchange.ping() return response value

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
This commit is contained in:
Christian Tzolov 2025-07-01 17:00:41 +02:00
commit b328051685

View file

@ -108,11 +108,11 @@ public class McpSyncServerExchange {
}
/**
* Sends a ping request to the client.
* @return A Mono that completes with clients's ping response
* Sends a synchronous ping request to the client.
* @return
*/
public void ping() {
this.exchange.ping().block();
public Object ping() {
return this.exchange.ping().block();
}
}