FORT MYERS, Fla. — David Ortiz and the Boston Red Sox have agreed to a one-year, $16 million contract extension through the 2015 season, the team announced Sunday night.

Ortiz, 38, signed a two-year contract after the 2012 season and will make $15 million this year.

According to the team’s Twitter feed, the new contract includes an option for 2016 that can be triggered based on playing time in 2015, plus a club option for 2017.

“With this agreement, we have near certainty that David Ortiz will finish his career in a Red Sox uniform,” said the team’s principal owner, John Henry.

Ortiz lobbied for an extension before the start of spring training, coming off a season in which he led the Red Sox in home runs (30), RBI (103), batting average (.309), on-base percentage (.395) and slugging percentage (.564).

He added five home runs in the postseason and was the most valuable player of the World Series, when he hit .688 against the St. Louis Cardinals to lead the Red Sox to their third championship in 10 years.

Ortiz is entering his 12th season with Boston. He’s the only remaining player from the 2004 World Series champions.