The XM7 assault rifle, previously known as the XM5, is the United States Army variant of the SIG MCX Spear, a 6.8x51mm (.277 in) gas-operated, magazine-fed assault rifle designed by firearms manufacturer SIG Sauer for the Next Generation Squad Weapon-Rifle Program in 2022 to replace the U.S. Army M4 carbine.