Record Class McpServerConfiguration

java.lang.Object
java.lang.Record
com.github.codeboyzhou.mcp.declarative.configuration.McpServerConfiguration

public record McpServerConfiguration(boolean enabled, boolean stdio, String name, String version, String instructions, long requestTimeout, String type, boolean resourceChangeNotification, boolean promptChangeNotification, boolean toolChangeNotification, String sseMessageEndpoint, String sseEndpoint, String baseUrl, int ssePort) extends Record
  • 构造器详细资料

    • McpServerConfiguration

      public McpServerConfiguration(boolean enabled, boolean stdio, String name, String version, String instructions, long requestTimeout, String type, boolean resourceChangeNotification, boolean promptChangeNotification, boolean toolChangeNotification, String sseMessageEndpoint, String sseEndpoint, String baseUrl, int ssePort)
      创建 McpServerConfiguration 记录的实例。
      参数:
      enabled - enabled 记录组件的值
      stdio - stdio 记录组件的值
      name - name 记录组件的值
      version - version 记录组件的值
      instructions - instructions 记录组件的值
      requestTimeout - requestTimeout 记录组件的值
      type - type 记录组件的值
      resourceChangeNotification - resourceChangeNotification 记录组件的值
      promptChangeNotification - promptChangeNotification 记录组件的值
      toolChangeNotification - toolChangeNotification 记录组件的值
      sseMessageEndpoint - sseMessageEndpoint 记录组件的值
      sseEndpoint - sseEndpoint 记录组件的值
      baseUrl - baseUrl 记录组件的值
      ssePort - ssePort 记录组件的值
  • 方法详细资料

    • defaultConfiguration

      public static McpServerConfiguration defaultConfiguration()
    • toString

      public final String toString()
      返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。
      指定者:
      toString 在类中 Record
      返回:
      此对象的字符串表示形式
    • hashCode

      public final int hashCode()
      返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。
      指定者:
      hashCode 在类中 Record
      返回:
      此对象的哈希代码值
    • equals

      public final boolean equals(Object o)
      指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用 Objects::equals(Object,Object) 对参考组件进行比较;使用 '==' 对基元组件进行比较
      指定者:
      equals 在类中 Record
      参数:
      o - 要与之进行比较的对象
      返回:
      如果此对象与 o 参数相同,则为 true;否则为 false
    • enabled

      public boolean enabled()
      返回 enabled 记录组件的值。
      返回:
      enabled 记录组件的值
    • stdio

      public boolean stdio()
      返回 stdio 记录组件的值。
      返回:
      stdio 记录组件的值
    • name

      public String name()
      返回 name 记录组件的值。
      返回:
      name 记录组件的值
    • version

      public String version()
      返回 version 记录组件的值。
      返回:
      version 记录组件的值
    • instructions

      public String instructions()
      返回 instructions 记录组件的值。
      返回:
      instructions 记录组件的值
    • requestTimeout

      public long requestTimeout()
      返回 requestTimeout 记录组件的值。
      返回:
      requestTimeout 记录组件的值
    • type

      public String type()
      返回 type 记录组件的值。
      返回:
      type 记录组件的值
    • resourceChangeNotification

      public boolean resourceChangeNotification()
      返回 resourceChangeNotification 记录组件的值。
      返回:
      resourceChangeNotification 记录组件的值
    • promptChangeNotification

      public boolean promptChangeNotification()
      返回 promptChangeNotification 记录组件的值。
      返回:
      promptChangeNotification 记录组件的值
    • toolChangeNotification

      public boolean toolChangeNotification()
      返回 toolChangeNotification 记录组件的值。
      返回:
      toolChangeNotification 记录组件的值
    • sseMessageEndpoint

      public String sseMessageEndpoint()
      返回 sseMessageEndpoint 记录组件的值。
      返回:
      sseMessageEndpoint 记录组件的值
    • sseEndpoint

      public String sseEndpoint()
      返回 sseEndpoint 记录组件的值。
      返回:
      sseEndpoint 记录组件的值
    • baseUrl

      public String baseUrl()
      返回 baseUrl 记录组件的值。
      返回:
      baseUrl 记录组件的值
    • ssePort

      public int ssePort()
      返回 ssePort 记录组件的值。
      返回:
      ssePort 记录组件的值