Record Class CapabilitiesConfig
java.lang.Object
java.lang.Record
dev.tachyonmcp.core.server.config.CapabilitiesConfig
- Record Components:
tools- tools capability configurationresources- resources capability configurationprompts- prompts capability configurationtasks- tasks capability configurationcompletions- completions enablement mode (defaultMode.AUTO)logging- whether the logging capability is enabled (defaultfalse)
public record CapabilitiesConfig(FeatureConfig tools, ResourcesConfig resources, FeatureConfig prompts, TasksConfig tasks, Mode completions, boolean logging)
extends Record
Configuration of which MCP capabilities to enable and their behaviour.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CapabilitiesConfigDefault configuration with all capabilities auto-detected and change notifications off. -
Constructor Summary
ConstructorsConstructorDescriptionCapabilitiesConfig(FeatureConfig tools, ResourcesConfig resources, FeatureConfig prompts, TasksConfig tasks, Mode completions, boolean logging) Creates an instance of aCapabilitiesConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CapabilitiesConfig.Builderbuilder()Creates a new builder.Returns the value of thecompletionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlogging()Returns the value of theloggingrecord component.prompts()Returns the value of thepromptsrecord component.Returns the value of theresourcesrecord component.tasks()Returns the value of thetasksrecord component.tools()Returns the value of thetoolsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
Default configuration with all capabilities auto-detected and change notifications off.
-
-
Constructor Details
-
CapabilitiesConfig
public CapabilitiesConfig(FeatureConfig tools, ResourcesConfig resources, FeatureConfig prompts, TasksConfig tasks, Mode completions, boolean logging) Creates an instance of aCapabilitiesConfigrecord class.- Parameters:
tools- the value for thetoolsrecord componentresources- the value for theresourcesrecord componentprompts- the value for thepromptsrecord componenttasks- the value for thetasksrecord componentcompletions- the value for thecompletionsrecord componentlogging- the value for theloggingrecord component
-
-
Method Details
-
builder
Creates a new builder.- Returns:
- a new 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
tools
Returns the value of thetoolsrecord component.- Returns:
- the value of the
toolsrecord component
-
resources
Returns the value of theresourcesrecord component.- Returns:
- the value of the
resourcesrecord component
-
prompts
Returns the value of thepromptsrecord component.- Returns:
- the value of the
promptsrecord component
-
tasks
Returns the value of thetasksrecord component.- Returns:
- the value of the
tasksrecord component
-
completions
Returns the value of thecompletionsrecord component.- Returns:
- the value of the
completionsrecord component
-
logging
public boolean logging()Returns the value of theloggingrecord component.- Returns:
- the value of the
loggingrecord component
-