ATLANTA — The New York Yankees have bolstered their rotation by acquiring right-hander Brandon McCarthy from Arizona.

The Diamondbacks, who 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 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, informed of the trade before Sunday's game against the Braves, plans to meet the Yankees in Cleveland.

McCarthy is a graduate of Cheyenne Mountain High School in Colorado Springs.