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. * Sends a synchronous ping request to the client.
* @return A Mono that completes with clients's ping response * @return
*/ */
public void ping() { public Object ping() {
this.exchange.ping().block(); return this.exchange.ping().block();
} }
} }