File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
mcp/src/main/java/io/modelcontextprotocol/client Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,14 @@ public class McpAsyncClient {
278
278
this .transport .setExceptionHandler (this .initializer ::handleException );
279
279
}
280
280
281
+ /**
282
+ * Get the current initialization result.
283
+ * @return the initialization result.
284
+ */
285
+ public McpSchema .InitializeResult getCurrentInitializationResult () {
286
+ return this .initializer .currentInitializationResult ();
287
+ }
288
+
281
289
/**
282
290
* Get the server capabilities that define the supported features and functionality.
283
291
* @return The server capabilities
Original file line number Diff line number Diff line change @@ -73,6 +73,14 @@ public class McpSyncClient implements AutoCloseable {
73
73
this .delegate = delegate ;
74
74
}
75
75
76
+ /**
77
+ * Get the current initialization result.
78
+ * @return the initialization result.
79
+ */
80
+ public McpSchema .InitializeResult getCurrentInitializationResult () {
81
+ return this .delegate .getCurrentInitializationResult ();
82
+ }
83
+
76
84
/**
77
85
* Get the server capabilities that define the supported features and functionality.
78
86
* @return The server capabilities
You can’t perform that action at this time.
0 commit comments