NEW YORK (AP) -- Brandon Belt hit one of San Francisco's three homers off a struggling Matt Harvey, and the Giants scored five times in the sixth inning of an 8-5 victory over the New York Mets on Wednesday night.

New York Mets' Matt Harvey delivers a pitch during the first inning
New York Mets' Matt Harvey delivers a pitch during the first inning (AP Photo/Frank Franklin II)
loading...

Buster Posey had three RBIs, including a two-run double off Harvey that tied the score in the sixth. Belt followed with a two-run shot, and Justin Maxwell added a long homer later in the inning to give San Francisco a 7-4 lead.

One night after they were held hitless by Giants rookie Chris Heston, the Mets handed Harvey a 4-2 lead. He couldn't hold it.

Nori Aoki matched a career high with four hits and Joe Panik added three for the Giants, including a two-run homer in the first on an 0-2 pitch.

The three homers allowed were a career high for Harvey, who is 1-3 with a 7.20 ERA in his last four starts. He has given up eight home runs since May 23, most of any pitcher in the majors during that span.

Harvey (6-4) gave up seven runs for the second time in four starts, matching his career high. He walked two and struck out a career-low two in six innings.

The star right-hander, who missed last season while recovering from Tommy John surgery, has allowed 18 earned runs over his last 18 innings. The five runs in the sixth were the most he has given up in one inning. He fell to 15-1 when the Mets score at least four runs for him.

Panik led off the sixth with a single. Angel Pagan followed with a walk and, after falling behind 0-2, Posey calmly stroked a fastball into right for tying double.

Posey came into the game batting .368 against Harvey.

Belt drove a changeup the other way to left-center for his eighth homer of the year, putting the Giants ahead 6-4.

Brandon Crawford was thrown out at third trying to stretch a double, and Matt Duffy flied out before Maxwell teed off for a shot to left.

Aoki led off the game with a single and scored on Panik's sixth home run.

The Mets wasted little time getting their offense started, scoring a pair of runs on three first-inning hits, punctuated by Wilmer Flores' two-run single off Tim Hudson (4-5).

Hudson allowed eight hits as he pitched into the sixth inning. With the victory, Hudson has alternated wins and losses over his last seven decisions.

Santiago Casilla closed for his 18th save in 21 opportunities.

Juan Lagares had an RBI triple in the eighth, and Eric Campbell and Lucas Duda had RBI singles for the Mets, who have dropped four of their last five games.

Flores led off the sixth with a double, chasing Hudson. But George Kontos struck out catcher Travis d'Arnaud, activated from the disabled list before the game, and retired Lagares on a grounder. Campbell struck out to end the threat.

After missing 46 games with a broken pinkie, d'Arnaud doubled and scored two runs in his return to the lineup.

Posey added an RBI single off Hansel Robles in the ninth.

TRAINER'S ROOM

Giants: OF Gregor Blanco was placed on the seven-day concussion disabled list. The team recalled OF Jarrett Parker from Triple-A Sacramento. ... The Giants remained without All-Star outfielder Hunter Pence (wrist).

Mets: To make room for d'Arnaud, the Mets optioned infielder Danny Muno to Triple-A Las Vegas. ... Rookie C Kevin Plawecki (dizziness) was scheduled to undergo tests.

UP NEXT

Giants: Tim Lincecum (6-3, 3.29 ERA) has won his last six decisions against the Mets and is 2-0 with a 1.50 ERA in three career starts at Citi Field. He'll pitch Thursday night in the series finale.

Mets: Jonathon Niese (3-6, 4.43) has lost his last four decisions and is 1-3 in seven career games against the Giants, six starts, with a 2.98 ERA. Niese has never matched up against Lincecum.

(© 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)

More From New Jersey 101.5 FM