We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07e7b8f commit a076b82Copy full SHA for a076b82
1 file changed
mcp/src/main/java/io/modelcontextprotocol/spec/McpServerSession.java
@@ -89,6 +89,22 @@ public String getId() {
89
return this.id;
90
}
91
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
108
/**
109
* Called upon successful initialization sequence between the client and the server
110
* with the client capabilities and information.
0 commit comments