Skip to content

Commit e34babb

Browse files
authored
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 <[email protected]>
1 parent e610d85 commit e34babb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mcp/src/main/java/io/modelcontextprotocol/client/McpSyncClient.java

+8
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ public McpSchema.Implementation getServerInfo() {
9797
return this.delegate.getServerInfo();
9898
}
9999

100+
/**
101+
* Check if the client-server connection is initialized.
102+
* @return true if the client-server connection is initialized
103+
*/
104+
public boolean isInitialized() {
105+
return this.delegate.isInitialized();
106+
}
107+
100108
/**
101109
* Get the client capabilities that define the supported features and functionality.
102110
* @return The client capabilities

0 commit comments

Comments
 (0)