The 80-year-old outspoken former Republican presidential candidate had surgery last week for a blood clot above his left eye. His office said late on Wednesday that the procedure revealed an aggressive form of brain tumour known as a glioblastoma.
"I greatly appreciate the outpouring of support - unfortunately for my sparring partners in Congress, I'll be back soon, so stand-by!" McCain wrote on Twitter shortly before issuing a news release through his office related to Syria.
From his home in Arizona, McCain was working the telephones to stay on top of the hottest issues being debated in Congress.
"He's called me three times this morning," said Republican Senator Lindsey Graham of South Carolina, one of McCain's closest friends in Congress.
Graham said McCain wanted to discuss healthcare legislation that is at the centre of the Senate's attention, and a sprawling defence bill McCain would usher through the Senate as chairman of the chamber's Armed Services Committee.
Graham told reporters McCain admonished him, "'No more woe is me.' He is yelling at me to buck up. I'm going to buck up."
The son and grandson of admirals, McCain survived more than five years of captivity as a Navy pilot during the Vietnam War. He has defined his political career as a fierce advocate for the U.S. military but also as a lawmaker with an independent streak willing to work with Democrats.
Well-wishers for McCain, who has never been shy of criticizing White House actions, included Republican President Donald Trump and Democratic former President Barack Obama.
Senator Dick Durbin of Illinois, the No. 2 Senate Democrat, said the flood of "bipartisan respect and love for John McCain as he faces this cancer battle reminds us that, after all the meanness, there is a human side to politicians. Count this Democrat in John McCain's corner."
McCain ran a failed race for the White House in 2008 against Obama, and last year won a sixth six-year term in the U.S. Senate.
Glioblastoma multiforme is the most common and most deadly form of brain and nervous system tumour, typically killing half its victims within a year. Patients rarely survive more than three years.
It is the same type of tumour that killed Democratic Senator Edward Kennedy in 2009 and former U.S. Vice President Joe Biden's son Beau in 2015.
McCain's doctors said he was recovering from surgery well, and praised his underlying health as excellent. His doctors told CNN on Wednesday that he had no sign of neurological impairment before or during his surgery.
McCain's illness has potential policy implications for healthcare legislation and other agenda items in Washington.
Republicans hold a narrow 52-48 seat majority in the Senate, and McCain's absence has made it more difficult to gather the 50 votes needed to advance a healthcare bill under special, expedited procedures.
He has been recovering at home in Arizona since undergoing his initial surgery at the Mayo Clinic in Phoenix last week. It was not immediately clear when he would return to Washington.
"Further consultations with Senator McCain's Mayo Clinic care team will indicate when he will return to the United States Senate," McCain's office said in its statement.
The senator was re-elected in November to represent the Southwestern state. Arizona is the birthplace of former Senator and 1964 presidential candidate Barry Goldwater, who some call the father of the Republican conservative movement.
If McCain were to retire or die before his term is up in January 2023, Arizona's Republican governor would pick a Republican replacement, who would serve until a special election in November 2018. Whoever is elected would fill out McCain's term.
Arizona's other senator, Republican Jeff Flake, is up for re-election next year.
McCain has had non-invasive melanomas removed at least three times. Decades earlier, he overcame injuries suffered at the hands of his North Vietnamese captors.
Republican Senator John Thune of South Dakota on Thursday called McCain a hero to many, and expressed optimism about his newest fight.
"He's a warrior. ... I've seen him work guys half his age into the ground. He's a remarkable individual," Thune said on CBS News' "CBS This Morning" programme.
(This story has not been edited by NDTV staff and is auto-generated from a syndicated feed.)
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.