Record Class McpSchema.InitializeResult

java.lang.Object
java.lang.Record
io.modelcontextprotocol.spec.McpSchema.InitializeResult
Record Components:
protocolVersion - The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect
capabilities - The capabilities that the server supports
serverInfo - Information about the server implementation
instructions - Instructions describing how to use the server and its features. This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt
meta - See specification for notes on _meta usage
All Implemented Interfaces:
McpSchema.Meta, McpSchema.Result
Enclosing class:
McpSchema

public static record McpSchema.InitializeResult(String protocolVersion, McpSchema.ServerCapabilities capabilities, McpSchema.Implementation serverInfo, String instructions, Map<String,Object> meta) extends Record implements McpSchema.Result
After receiving an initialize request from the client, the server sends this response.