Package io.modelcontextprotocol.spec
Record Class McpSchema.Implementation
java.lang.Object
java.lang.Record
io.modelcontextprotocol.spec.McpSchema.Implementation
- Record Components:
name- Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).title- Intended for UI and end-user contextsversion- The version of the implementation.description- An optional human-readable description of this implementation.icons- An optional list of icons for this implementation.websiteUrl- An optional URL of the website for this implementation.
- All Implemented Interfaces:
McpSchema.Identifier
- Enclosing class:
- McpSchema
public static record McpSchema.Implementation(String name, String title, String version, String description, List<McpSchema.Icon> icons, String websiteUrl)
extends Record
implements McpSchema.Identifier
Describes the name and version of an MCP implementation, with an optional title for
UI representation.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionImplementation(String name, String version) Deprecated.Implementation(String name, String title, String version) Deprecated.Implementation(String name, String title, String version, String description, List<McpSchema.Icon> icons, String websiteUrl) Creates an instance of aImplementationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icons()Returns the value of theiconsrecord component.name()Returns the value of thenamerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.Returns the value of thewebsiteUrlrecord component.
-
Constructor Details
-
Implementation
public Implementation(String name, String title, String version, String description, List<McpSchema.Icon> icons, String websiteUrl) Creates an instance of aImplementationrecord class.- Parameters:
name- the value for thenamerecord componenttitle- the value for thetitlerecord componentversion- the value for theversionrecord componentdescription- the value for thedescriptionrecord componenticons- the value for theiconsrecord componentwebsiteUrl- the value for thewebsiteUrlrecord component
-
Implementation
Deprecated. -
Implementation
Deprecated.
-
-
Method Details
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceMcpSchema.Identifier- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Specified by:
titlein interfaceMcpSchema.Identifier- Returns:
- the value of the
titlerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
icons
Returns the value of theiconsrecord component.- Returns:
- the value of the
iconsrecord component
-
websiteUrl
Returns the value of thewebsiteUrlrecord component.- Returns:
- the value of the
websiteUrlrecord component
-
builder(String, String)