Updated

A person familiar with the situation says free agent forward Josh McRoberts has agreed to a two-year, $5.5 million deal to remain with the Charlotte Bobcats.

The person spoke to The Associated Press Friday on condition of anonymity because the deal has not yet been made official. Free agent signings cannot be announced until July 10, according to NBA rules.

The person said the second year of the deal includes a player option.

McRoberts outperformed expectations after being acquired in a trade with the Orlando Magic on Feb. 21. He wound up starting 19 games and averaged 9.3 points and 7.2 rebounds in 26 total games for Charlotte.

The 6-foot-10, 240-pound McRoberts gives the Bobcats added depth in the front court behind expected starters Al Jefferson and rookie Cody Zeller.