A 49-year-old Kansas City man has been sentenced in federal court for participating in a heroin conspiracy and illegally possessing firearms.