Harvey stuck out the first batter he faced and retired the Tigers' side in order in the first inning. The game's first batter, Anthony Gose, swung and missed at three straight pitches, including a 98-mph pitch from Harvey for the third strike.
The 25-year-old pitched two innings in all, retiring all six batters he faced and finishing with three strikeouts.
"Things felt so good that the fact that I did have surgery is completely out of my mind," Harvey said afterwards.
"The big thing is I was happy throwing strikes and not walking anybody. Those are the things you try to work on."
Harvey underwent Tommy John surgery in October 2013 and missed the entire 2014 season. A week ago, he threw to live batters for the first time since his surgery.
In his first full big-league season in 2013, Harvey went 9-5 with a 2.27 ERA and 0.931 WHIP in 26 starts and 178.1 innings. He was also named an All-Star that year and was the starting pitcher for the game, which took place at the Mets' Citi Field.
Harvey was the seventh overall pick out of the University of North Carolina in 2010 and made his major-league debut for the Mets in July 2012.
- Molly Geary