McCarty served on the
Sacramento City Council from 2004 to 2014. Representing many of
Sacramento's older neighborhoods, McCarty advocated for safe housing, inspections of Sacramento's numerous rental housing units,
gun control, and the creation of after-school programs. Council member McCarty along with Darrell Fong voted against a $257 million subsidy to develop a downtown entertainment and sports complex for the Sacramento Kings. In 2014, incumbent
Democrat Assemblyman
Roger Dickinson ran for the
California State Senate, leaving the
California's 7th Assembly District vacant. McCarty ran again and this time was successful, defeating fellow
Sacramento City Councilman Steve Cohn. As a result of the 2020 census, McCarty's
Elmhurst neighborhood was redistricted to the
6th Assembly District, from which he was re-elected in 2022 election. == Personal life ==