McCain underwent surgery in July for a brain tumor that was later found to be a form of glioblastoma, the same type of cancer that took the life of his former Senate colleague Edward M. Kennedy in 2009.