The Cubs traded for a 30-year-old pitcher who had lost his place in the Mets' starting rotation one year after he was an All-Star.