Enum Class McpToolGrantScope

java.lang.Object
java.lang.Enum<McpToolGrantScope>
io.meeds.mcp.server.constant.McpToolGrantScope
All Implemented Interfaces:
Serializable, Comparable<McpToolGrantScope>, Constable

public enum McpToolGrantScope extends Enum<McpToolGrantScope>
Which agents a standing tool approval chosen on an approval card covers.
  • Enum Constant Details

    • AGENT

      public static final McpToolGrantScope AGENT
      Only the agent that made the call the card was shown for.
    • TOOL

      public static final McpToolGrantScope TOOL
      Any agent calling the tool on the user's behalf.
  • Method Details

    • values

      public static McpToolGrantScope[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static McpToolGrantScope valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null