SAN FRANCISCO — When Jake Peavy joined the San Francisco Giants midseason, he brought an energy to the mound that added a new dimension to their rotation.
Now, the Giants are keeping a key member of their World Series championship team, bringing back Peavy with hopes of another October run.
The right-hander agreed to a $24 million, two-year contract to stay with San Francisco, two people familiar with the negotiations said Friday. They spoke on condition of anonymity to The Associated Press because the deal had not yet been announced.
Also on Friday night, the Giants completed a trade with the Miami Marlins to bring third baseman Casey McGehee to San Francisco. He will replace Pablo Sandoval, who signed last month with the Boston Red Sox.
The 32-year-old McGehee won NL comeback player of the year honors after hitting .287 with 29 doubles, four home runs and 76 RBIs for Miami following a season with the Rakuten Golden Eagles of Japan's Pacific League.
The Giants sent minor league right-handers Kendry Flores and Luis Castillo to Miami.
The Marlins acquired Martin Prado on Friday from the Yankees to become their likely third baseman, so they quickly struck a deal with the Giants. McGehee is from Santa Cruz and attended Fresno State.
Peavy and right-hander Sergio Romo were undergoing physicals Friday in Arizona, and San Francisco wasn't expected to make a formal announcement until early next week. Romo is set to receive a $15 million, two-year contract.