At the least, the Giants now know they have someone who, if needed, could start alongside cornerback Prince Amukamara in the secondary.

Hours before becoming a free agent, Trumaine McBride reached agreement on a two-year deal with the team, a person familiar with the situation told NJ.com. The deal will be worth a total of $3.1 million.

McBride, 28, and the Giants were close to finalizing a deal on Monday. The new contract is expected to be signed Tuesday afternoon.

The 5-foot-9, 185-pound McBride was a pleasant surprise for the Giants last season. After starting 10 games in the first six years of his career, he started 10 games in 2013.

McBride played pretty well, too. He ranked 24th among all cornerbacks last season with a +6.6 grade, according to Pro Football Focus. Amukamara finished 34th.

The Giants are still shopping in the cornerbacks market. Set to lose Corey Webster and Aaron Ross to free agency, the team already has made a run at Tennessee Titans CB Alterraun Verner (but might be priced out) and Green Bay Packers CB Sam Shields. The Giants have also expressed interest in Corey Graham of the Baltimore Ravens.