First baseman Pete Alonso is staying with the New York Mets, agreeing to a $54 million, two-year contract, a person familiar with the deal told The Associated Press.