Chuck Schumer teed off on President Trump and Mitch McConnell on Wednesday, charging that the commander-in-chief lives in a “cocoon of his own mistruth” and that the Senate majority leader needs to “help pull the president back from the brink.”

Schumer’s comments on the Senate floor came a day after Trump declared that he would be “proud” to shut down the federal government if Congress doesn’t give him the money he wants for his long-promised border wall.

“Leader McConnell says he doesn’t want a shutdown, but he refuses to engage with the president to tell him what is transparently obvious to everyone else — there will be no additional money for the wall,” Schumer said.

After Trump’s raucous clash with Schumer and House Minority Leader Nancy Pelosi, McConnell said he opposed a shutdown.

“I hope that’s not where we end up. I understand it was a rather spirited meeting,” McConnell told reporters when asked about Trump’s threat.

Schumer also said Trump’s frustration resulted from his and Pelosi’s effort to “untie the knots in logic he was tying himself in.”

“President Trump started by bragging about how great border security is going under his watch,” Schumer said.

“That, by the way, is with no wall. If it were truly the case, as the president said, that border security is better than it’s ever been, what’s wrong with another year of the same funding?” the New York Democrat asked.

“If things are going so great, why does he have to threaten to shut down the government for his $5 billion wall? It makes no sense.”

Schumer added that Trump lives in a “cocoon of his own mistruth,” and that he and Pelosi “had to puncture that cocoon and he threw a temper tantrum because of it.”

He also called it “astounding” that Trump said he would be proud to take the blame for a government shutdown over border security.

“It was astounding that any president, even this one, would say that. No president should ever say that he or she would be proud to shut the government down,” he said.

But the president seemed determined on the issue, with GOP Sens. John Kennedy of Louisiana and Lindsey Graham of South Carolina both saying Wednesday they did not think Trump was bluffing.

“If we don’t get what we want one way or the other, whether it’s through you, through a military, through anything you want to call, I will shut down the government. Absolutely. And I am proud to shut down the government for border security, Chuck,” a visibly angry Trump told a smirking Schumer on Tuesday in the Oval Office.

“The people of this country don’t want criminals and people that have lots of problems, and drugs, pouring into our country. So I will take the mantle. I will be the one that shut it down. I’m not going to blame you for it. I will take the mantle of shutting down, and I’m going to shut it down for border security.”