Former Red Sox right-hander Rick Porcello has agreed to a one-year deal worth $10 million with the Mets, a source confirmed to ESPN.