From August 3 to November 20, 2017, he was acting secretary of the Army. From June 24, 2019 to July 15, 2019, while secretary of the Army Mark Esper was acting secretary of Defense, McCarthy became acting Secretary of the Army.