Record Class McpInitializeResult
java.lang.Object
java.lang.Record
org.ek9lang.mcp.model.McpInitializeResult
public record McpInitializeResult(String protocolVersion, McpServerCapabilities capabilities, McpServerInfo serverInfo)
extends Record
Result returned to the client after MCP initialize.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpInitializeResult(String protocolVersion, McpServerCapabilities capabilities, McpServerInfo serverInfo) Creates an instance of aMcpInitializeResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprotocolVersionrecord component.Returns the value of theserverInforecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpInitializeResult
public McpInitializeResult(String protocolVersion, McpServerCapabilities capabilities, McpServerInfo serverInfo) Creates an instance of aMcpInitializeResultrecord class.- Parameters:
protocolVersion- the value for theprotocolVersionrecord componentcapabilities- the value for thecapabilitiesrecord componentserverInfo- the value for theserverInforecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
protocolVersion
Returns the value of theprotocolVersionrecord component.- Returns:
- the value of the
protocolVersionrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
serverInfo
Returns the value of theserverInforecord component.- Returns:
- the value of the
serverInforecord component
-