Machi agreed to a minor league contract with the Cubs that includes an invitation to spring training Sunday, CBS Sports reports.

Machi split time with the Giants and Red Sox last season, and briefly served as Boston's closer, but struggled for much of the year en route to posting a combined 5.12 ERA. His track record the previous two seasons should help give him an extended look in spring training, but it looks as though a major league roster spot is not guaranteed for the 33-year-old.