Mets rookie Matt Harvey pitched his final game of the season Wednesday and went out with a flourish that will have fans eagerly anticipating spring training.

The 24-year-old righthander sparkled, giving up one hit on seven innings against Philadelphia. But a superb effort went for naught when reliever Josh Edgin gave up a two-run homer to Ryan Howard with two outs in the ninth that gave the Phillies a 3-2 win at Citi Field.

Harvey's only blemish was a leadoff home run by Jimmy Rollins in the first inning. The 2010 first-round pick, who reached his innings limit for the season, then turned things up a notch and struck out his final two batters to finish with seven. He had thrown his fastball at 93-94 mph in the first six innings, but fanned Howard swinging on one at 97 and Carlos Ruiz looking on one at 96.