As New York has struggled to provide services for homeless mentally ill people across the city, its mental health shelters were supposed to help fill a crucial need, with on-call psychiatrists and social workers on staff to ensure that the thousands of people like Mr. McPherson were connected to treatment, and did not harm themselves or someone else. Above: The mental health shelter on Jerome Avenue in the Bronx has been the site of frequent violence and disorder, records and interviews show.