diff --git a/mcp/src/main/java/io/modelcontextprotocol/spec/McpServerSession.java b/mcp/src/main/java/io/modelcontextprotocol/spec/McpServerSession.java index 86906d859..73acf84be 100644 --- a/mcp/src/main/java/io/modelcontextprotocol/spec/McpServerSession.java +++ b/mcp/src/main/java/io/modelcontextprotocol/spec/McpServerSession.java @@ -89,6 +89,22 @@ public String getId() { return this.id; } + /** + * Retrieve the current client info of the session. + * @return the client information, such as name and version + */ + public McpSchema.Implementation getClientInfo() { + return this.clientInfo.get(); + } + + /** + * Retrieve the current client capabilities of the session. + * @return the client capabilities, such as supported features + */ + public McpSchema.ClientCapabilities getClientCapabilities() { + return this.clientCapabilities.get(); + } + /** * Called upon successful initialization sequence between the client and the server * with the client capabilities and information.