Record Class McpHostState

java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.McpHostState

@Generated("copilot-sdk-codegen") public record McpHostState(Boolean mcp3pEnabled, List<String> disabledServers, List<String> filteredServers, List<String> clients, List<String> pendingConnections, Map<String, McpServerFailureInfo> failedServers, Map<String, McpServerNeedsAuthInfo> needsAuthServers) extends Record
Host-level state, omitted when no MCP host is initialized.
Since:
1.0.0
  • Constructor Details

    • McpHostState

      public McpHostState(Boolean mcp3pEnabled, List<String> disabledServers, List<String> filteredServers, List<String> clients, List<String> pendingConnections, Map<String, McpServerFailureInfo> failedServers, Map<String, McpServerNeedsAuthInfo> needsAuthServers)
      Creates an instance of a McpHostState record class.
      Parameters:
      mcp3pEnabled - the value for the mcp3pEnabled record component
      disabledServers - the value for the disabledServers record component
      filteredServers - the value for the filteredServers record component
      clients - the value for the clients record component
      pendingConnections - the value for the pendingConnections record component
      failedServers - the value for the failedServers record component
      needsAuthServers - the value for the needsAuthServers record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • mcp3pEnabled

      public Boolean mcp3pEnabled()
      Returns the value of the mcp3pEnabled record component.
      Returns:
      the value of the mcp3pEnabled record component
    • disabledServers

      public List<String> disabledServers()
      Returns the value of the disabledServers record component.
      Returns:
      the value of the disabledServers record component
    • filteredServers

      public List<String> filteredServers()
      Returns the value of the filteredServers record component.
      Returns:
      the value of the filteredServers record component
    • clients

      public List<String> clients()
      Returns the value of the clients record component.
      Returns:
      the value of the clients record component
    • pendingConnections

      public List<String> pendingConnections()
      Returns the value of the pendingConnections record component.
      Returns:
      the value of the pendingConnections record component
    • failedServers

      public Map<String, McpServerFailureInfo> failedServers()
      Returns the value of the failedServers record component.
      Returns:
      the value of the failedServers record component
    • needsAuthServers

      public Map<String, McpServerNeedsAuthInfo> needsAuthServers()
      Returns the value of the needsAuthServers record component.
      Returns:
      the value of the needsAuthServers record component