Class UserToolApprovalRequest

java.lang.Object
io.meeds.mcp.server.model.UserToolApprovalRequest

public class UserToolApprovalRequest extends Object
A pending approval card: the call it was shown for, as the server resolved it, and whether the card may offer "Always allow". An "Always allow" answer builds its grant from this record only.
  • Constructor Details

    • UserToolApprovalRequest

      public UserToolApprovalRequest(String username)
      Parameters:
      username - the user the card is shown to
  • Method Details

    • isTimedOut

      public boolean isTimedOut(long timeout)
      Parameters:
      timeout - the approval timeout in milliseconds
      Returns:
      true when the card has waited longer than the timeout