Record Class McpSchema.InitializeRequest

java.lang.Object
java.lang.Record
io.modelcontextprotocol.spec.McpSchema.InitializeRequest
Record Components:
protocolVersion - The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well
capabilities - The capabilities that the client supports
clientInfo - Information about the client implementation
meta - See specification for notes on _meta usage
All Implemented Interfaces:
McpSchema.Meta, McpSchema.Request
Enclosing class:
McpSchema

public static record McpSchema.InitializeRequest(String protocolVersion, McpSchema.ClientCapabilities capabilities, McpSchema.Implementation clientInfo, Map<String,Object> meta) extends Record implements McpSchema.Request
This request is sent from the client to the server when it first connects, asking it to begin initialization.