Skip to content

Commit b328051

Browse files
committed
refactor: make McpSyncServerExchange.ping() return response value
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
1 parent c0b398c commit b328051

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mcp/src/main/java/io/modelcontextprotocol/server/McpSyncServerExchange.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ public void loggingNotification(LoggingMessageNotification loggingMessageNotific
108108
}
109109

110110
/**
111-
* Sends a ping request to the client.
112-
* @return A Mono that completes with clients's ping response
111+
* Sends a synchronous ping request to the client.
112+
* @return
113113
*/
114-
public void ping() {
115-
this.exchange.ping().block();
114+
public Object ping() {
115+
return this.exchange.ping().block();
116116
}
117117

118118
}

0 commit comments

Comments
 (0)