Symptoms of fatigue, depression, and anxiety combined with a total testosterone level below 300 ng/dL are generally consistent with hypogonadism. Especially at age 17, that is very, very low.
TRT has been proven to help decrease inflammatory conditions, but no, it will not help with food allergies or sensitivity.
MCAS would not cause a testosterone level to be so low. You also did not mention any typical symptoms of MCAS like hives, itching, eye itching, facial swelling and flushing, abdominal cramping, diarrhea or wheezing. So while it is possible it might be MCAS, you do not have traditional symptoms to suggest that as being the most likely diagnosis.