File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
mcp/src/main/java/io/modelcontextprotocol/spec Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,22 @@ public String getId() {
8989 return this .id ;
9090 }
9191
92+ /**
93+ * Retrieve the current client info of the session.
94+ * @return the client information, such as name and version
95+ */
96+ public McpSchema .Implementation getClientInfo () {
97+ return this .clientInfo .get ();
98+ }
99+
100+ /**
101+ * Retrieve the current client capabilities of the session.
102+ * @return the client capabilities, such as supported features
103+ */
104+ public McpSchema .ClientCapabilities getClientCapabilities () {
105+ return this .clientCapabilities .get ();
106+ }
107+
92108 /**
93109 * Called upon successful initialization sequence between the client and the server
94110 * with the client capabilities and information.
You can’t perform that action at this time.
0 commit comments