The Mets had been the only team not to sign a Major League free agent this offseason before they agreed to terms with Shaun Marcum.

The 31-year-old will get a one-year deal contingent on passing a physical, a source confirmed.

Marcum went 7-4 with a 3.70 ERA in 21 starts last season for the Brewers.