Skip to content

Commit e757cb7

Browse files
committed
add isInitialized method to McpSyncClient
Signed-off-by: jitokim <pigberger70@gmail.com>
1 parent 41c6bd9 commit e757cb7

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

Lines changed: 8 additions & 0 deletions
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)