Mick McCarthy has put pen to paper on a new two-year Cardiff City deal after other clubs were eyeing him this summer