Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,14 @@ public class McpAsyncClient {
this.transport.setExceptionHandler(this.initializer::handleException);
}

/**
* Get the current initialization result.
* @return the initialization result.
*/
public McpSchema.InitializeResult getCurrentInitializationResult() {
return this.initializer.currentInitializationResult();
}

/**
* Get the server capabilities that define the supported features and functionality.
* @return The server capabilities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ public class McpSyncClient implements AutoCloseable {
this.delegate = delegate;
}

/**
* Get the current initialization result.
* @return the initialization result.
*/
public McpSchema.InitializeResult getCurrentInitializationResult() {
return this.delegate.getCurrentInitializationResult();
}

/**
* Get the server capabilities that define the supported features and functionality.
* @return The server capabilities
Expand Down