My university was amazing with dealing with my MH issues (severe complex PTSD, an eating disorder, depression and anxiety). I managed to graduate with a first in the end as they even allowed me to resit an exam uncapped, this was due to extenuating circumstances that exacerbated my MH issues (and physical health issues) in my final year (my mum was diagnosed with cancer and I lost one of my best friends). Regardless though, I still would've graduated with a 2:1, which would've been impossible without all the support my university gave me.
I got a lot of different things put in place to help me cope at unviersity: counselling, mentoring, a support worker, adjustments for exams and coursework, among other things. I was also under the local CMHT in my second year and a specialist MH team in my final year, they were less useful, but had their place.