The Canton woman accused of stalking Chicago Cubs president — and former Red Sox GM — Theo Epstein has a history of mental illness and can return to Boston for treatment while her case is pending, a judge in Chicago ruled Monday. According to the Chicago Tribune, Kathleen Kearney , 44, was wearing a blue Red Sox T-shirt and white skirt during her appearance in court. The Harvard-educated former librarian was freed from Cook County Jail on Friday after her brother-in-law posted her $7,500 cash bond, the paper reported. In 2003, according to documents filed in court Monday, Kearney was deemed “incapable of taking care of herself by reason of mental illness” and was declared a ward of the state. Prosecutors hoped Kearney would be required to stay in Illinois and be fitted with an electronic monitoring device to “track her movements,” the Tribune reported. She must live with her sister and brother-in-law in Milton if she’s released from the hospital. The previous order prohibiting Kearney from contacting Epstein and his family remains in effect.