Kyle Gibson, who pitched for the Twins for the past seven years, has reached a contract agreement with the Texas Rangers.

Gibson, 32, will get $30 million over three seasons from the Rangers, a major league source confirmed. He must still pass a physical exam before the team will announce the signing.

It ends a long run with the Twins organization. After being drafted in the first round (22nd overall) in 2009 out of Missouri by the Twins, Gibson made it to the major leagues in 2013.

He was 67-68 with a 4.52 ERA, a 1.411 WHIP and only one complete game in 188 starts.

Coming off an encouraging 2018 season, when he posted a 3.62 ERA, Gibson was 13-7 with a 4.84 ERA. He began the season playing catch up after getting E. coli during an offseason mission trip. During the season, he was found to have ulcerative colitis. He struggled to get regular sleep and lost weight.

He lost his spot in the rotation late in the season, and he pitched an inning in relief against the Yankees in Game 1 of the ALDS, giving up three runs.

Gibson earned $8.125 million last season, his final season of arbitration eligibility. He was part of a five-man rotation with Jose Berrios, Jake Odorizzi, Michael Pineda and Martin Perez. Berrios is arbitration eligible, Odorizzi accepted a one-year deal for $17.8 million, and Pineda and Perez are free agents.

Gibson has a live arm but has been prone to nibbling at the corners too much. Some also believe that a fresh start and a couple of adjustments will help him reach his potential.

The Rangers signed former Twins righthander Lance Lynn to the same contract Gibson got last year, and Lynn responded with a strong season, going 16-11 with 3.67 ERA.

Another member of the Texas rotation, Mike Minor, got a three-year deal worth $28 million before the 2017 season.

Texas moves into a new stadium in 2020 and is believed to be among the front-runners for one of the big free agent prizes, slugging third baseman Anthony Rendon.

Polanco has surgery

All-Star shortstop Jorge Polanco had ankle surgery Friday in Los Angeles, the team announced.

Polanco had arthroscopic debridement to clean up a right ankle impingement, a procedure performed by Dr. Richard Ferkel.

The Twins said Polanco will be in a boot to protect the ankle and incisions for a few weeks, and a full recovery is expected before spring training.

The 26-year-old hit .295 with 22 home runs and 79 RBI for the Twins in 2019 after signing a five-year, $25.75 million contract in March.

Camp promoted

The Twins adjusted roles for physicians John Steubs and Chris Camp. After 30 seasons leading the team's medical department, Steubs will shift into the title of medical director, emeritus. Camp will shift into the team's lead medical role.

Camp, who works out of the Mayo Clinic, has been named Director of Medical, High Performance. He will coordinate all medical and performance areas of the club while also linking with research and development.

This is a role that President of Baseball Operations Derek Falvey and General Manager Thad Levine have been looking to create since they joined the organization before the 2017 season.

Corey Wulf, Amy Beacom, Rahul Kapur and David Olson are also team physicians.