McGee signed a one-year contract with the Warriors on Friday, ESPN.com's Marc Stein reports.

McGee's deal isn't believed to include much guaranteed money, but it will at least get him into training camp with the Warriors, where he'll attempt to earn a roster spot as a backup center. The seven-footer has always been viewed as one of the league's more athletic centers since turning pro in 2008, but lower-body injuries have really limited him recently, with McGee playing no more than 34 games in any of the last three seasons. After averaging just 5.1 points and 3.9 rebounds in 10.9 minutes per game with the Mavericks in 2015-16, McGee won't be in line for a major role with the Warriors if he's able to make the squad. With Anderson Varejao (back) uncertain to be ready for training camp, McGee at least provides some veteran insurance down low.