From b328051685104a46b9d55ae993ef999ccdc2fd93 Mon Sep 17 00:00:00 2001 From: Christian Tzolov Date: Tue, 1 Jul 2025 17:00:41 +0200 Subject: [PATCH] refactor: make McpSyncServerExchange.ping() return response value Signed-off-by: Christian Tzolov --- .../server/McpSyncServerExchange.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mcp/src/main/java/io/modelcontextprotocol/server/McpSyncServerExchange.java b/mcp/src/main/java/io/modelcontextprotocol/server/McpSyncServerExchange.java index 65b8734..4b9a377 100644 --- a/mcp/src/main/java/io/modelcontextprotocol/server/McpSyncServerExchange.java +++ b/mcp/src/main/java/io/modelcontextprotocol/server/McpSyncServerExchange.java @@ -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(); } }