Add missing isInitialized method to McpSyncClient (#181)

The isInitialized method is present in McpAsyncClient and needs to be
mirrored in McpSyncClient.

Signed-off-by: jitokim <pigberger70@gmail.com>
This commit is contained in:
jito 2025-05-08 18:31:17 +09:00 • committed by GitHub
commit e34babbe56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,6 +97,14 @@ public class McpSyncClient implements AutoCloseable {
return this.delegate.getServerInfo();
}
/**
* Check if the client-server connection is initialized.
* @return true if the client-server connection is initialized
*/
public boolean isInitialized() {
return this.delegate.isInitialized();
}
/**
* Get the client capabilities that define the supported features and functionality.
* @return The client capabilities