ATLANTA -- The New York Yankees bolstered their rotation on Sunday by acquiring veteran right-hander Brandon McCarthy from Arizona.
The Diamondbacks also are sending New York cash in Sunday's deal for left-hander Vidal Nuno. The trade was announced by the Yankees.
The move comes after Yankees left-hander CC Sabathia had a setback with a degenerative cartilage problem in his right knee. New York was unable to work out a trade this week for the Cubs' Jeff Samardzija, who instead was dealt to Oakland.
McCarthy, who turns 31 on Monday, was 3-10 with a 5.01 ERA with Arizona this season. In nine seasons with the White Sox, Rangers, A's and Diamondbacks, McCarthy is 45-60 with a 4.21 ERA.
McCarthy said he was informed of the deal after he reported for Sunday's game against the Braves. He will leave the last-place Diamondbacks and join a playoff race with New York.
"It's something I'm really excited about," McCarthy said.
McCarthy said he is sad to be leaving Arizona, but added the move to New York is special.
"It's still the Yankees, no matter what," McCarthy said. "If you don't know baseball, you know the Yankees."
McCarthy planned to fly from Atlanta to meet the Yankees in Cleveland, where they open a series on Monday.
Nuno, 26, was 2-5 with a 5.42 ERA in 17 games, including 14 starts, with the Yankees. Nuno was hurt by allowing 15 homers -- including 13 at home -- in 78 innings this season.
McCarthy, a groundball pitcher, may be better suited for Yankee Stadium.
Yankees general manager Brian Cashman sought an upgrade to the rotation for weeks. Sabathia is out indefinitely and the Yankees also lost Ivan Nova to Tommy John surgery.
The Diamondbacks have made two trades in as many days. On Saturday, Arizona acquired two minor leaguers, outfielder Zach Borenstein and right-hander Joey Krehbiel, from the Los Angeles Angels for left-hander Joe Thatcher and outfielder Tony Campana.
More moves may be coming for Arizona.
"We're going to start retooling, it looks like," Arizona manager Kirk Gibson said Sunday. Gibson called the approach "a different mindset."
Gibson said Nuno will make his debut with Arizona on Tuesday against Miami. Nuno had been scheduled to start for the Yankees on Monday, and Gibson said he wanted to give the young left-hander an extra day to adjust to his new team.