Three inmates accused in a brutal attack at a prison in central Massachusetts were brought to court Thursday to face charges.