Record Class CapabilitiesConfig

java.lang.Object
java.lang.Record
dev.tachyonmcp.core.server.config.CapabilitiesConfig
Record Components:
tools - tools capability configuration
resources - resources capability configuration
prompts - prompts capability configuration
tasks - tasks capability configuration
completions - completions enablement mode (default Mode.AUTO)
logging - whether the logging capability is enabled (default false)

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.
  • Field Details

    • DEFAULT

      public static final CapabilitiesConfig 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 a CapabilitiesConfig record class.
      Parameters:
      tools - the value for the tools record component
      resources - the value for the resources record component
      prompts - the value for the prompts record component
      tasks - the value for the tasks record component
      completions - the value for the completions record component
      logging - the value for the logging record component
  • Method Details

    • builder

      public static CapabilitiesConfig.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • tools

      public FeatureConfig tools()
      Returns the value of the tools record component.
      Returns:
      the value of the tools record component
    • resources

      public ResourcesConfig resources()
      Returns the value of the resources record component.
      Returns:
      the value of the resources record component
    • prompts

      public FeatureConfig prompts()
      Returns the value of the prompts record component.
      Returns:
      the value of the prompts record component
    • tasks

      public TasksConfig tasks()
      Returns the value of the tasks record component.
      Returns:
      the value of the tasks record component
    • completions

      public Mode completions()
      Returns the value of the completions record component.
      Returns:
      the value of the completions record component
    • logging

      public boolean logging()
      Returns the value of the logging record component.
      Returns:
      the value of the logging record component