Record Class McpInitializeParams
java.lang.Object
java.lang.Record
org.ek9lang.mcp.model.McpInitializeParams
public record McpInitializeParams(String protocolVersion, McpClientInfo clientInfo, List<String> roots)
extends Record
Parameters sent by the client during MCP initialize.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpInitializeParams(String protocolVersion, McpClientInfo clientInfo, List<String> roots) Creates an instance of aMcpInitializeParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientInforecord 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.roots()Returns the value of therootsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpInitializeParams
Creates an instance of aMcpInitializeParamsrecord class.- Parameters:
protocolVersion- the value for theprotocolVersionrecord componentclientInfo- the value for theclientInforecord componentroots- the value for therootsrecord 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
-
clientInfo
Returns the value of theclientInforecord component.- Returns:
- the value of the
clientInforecord component
-
roots
-