Matt Harvey is getting another shot.

The former Mets star agreed to a minor-league deal with the Athletics on Wednesday, according to MLB Network, setting up a reunion with former Mets GM and now-Oakland senior adviser Sandy Alderson.

Harvey was released by the Angels earlier this summer after failing to reignite his career, posting a 3-5 record and 7.09 ERA in 12 starts in his lone season with the club.

The right-hander never returned to his dominant Mets form following a series of injuries, most notably thoracic outlet syndrome in 2016. After his time with the Mets ended in 2018, Harvey posted a 4.50 ERA in 24 starts for the Reds before signing with the Angels.

As of Wednesday night, the A’s are two games back of a wild-card spot. Meanwhile, Harvey has remained active since his release; earlier this month, he posted a video on social media of him throwing a bullpen session at a facility in Irvine, Calif.