Right-hander Luis Severino and the New York Mets on Wednesday agreed to a one-year, $13 million contract, sources told ESPN, sending the longtime Yankees pitcher to a Mets team that plans to spend its winter upgrading a depleted rotation.

Severino, 29, had spent all of his eight-year career with the Yankees, including a rough 2023 in which he posted a 6.65 ERA over 89⅓ innings. Still, the free agent market has set the price of veteran starting pitchers at $10 million-plus per year — and Severino’s past success bought him slightly more.

Shoulder and lat injuries limited Severino to three starts in 2019, and he missed the 2020 season and most of 2021 after undergoing Tommy John surgery. He returned strong in 2022 with a 3.18 ERA over 19 starts and 102 innings.

The deal, which is pending a physical Thursday, includes $2 million in performance bonuses and allows Severino to reach free agency after the season. It’s the first move of many to rebuild a Mets rotation that lost Justin Verlander and Max Scherzer to trades in July and, beyond Kodai Senga and Jose Quintana, has serious questions.