After approaching McCarthy with the idea, she immediately jumped on board

The idea behind Melissa McCarthy‘s surprise Saturday Night Live appearance as White House Press Secretary Sean Spicer came straight from the top.

SNL‘s new head writer Kent Sublette came up with the idea for the now viral skit, PEOPLE has learned. And after approaching McCarthy with the idea, she immediately jumped on board.

Get push notifications with news, features and more.

When the 46-year-old actress took the stage, the audience burst out into laughter and applause at the sight of her Spicer costume — complete with an ill-fitting suit and blonde wig.

“Before we begin, I know that myself and the press have gotten off to a rocky start,” McCarthy began. “When I say ‘rocky start’ I mean it in the sense of Rocky the movie because I came out here to punch you in the face, and also I don’t talk so good.”

As her character became more frustrated with questions regarding Trump’s travel ban and adviser Steve Bannon, she charged at a journalist with her podium.

RELATED VIDEO: Kristen Stewart Says ‘SNL’ Is “The Coolest F––ing Thing Ever” During Live Broadcast

SNL cast member Mikey Day, who played the journalist hit by the podium, later took to Twitter to reveal that he previously worked with McCarthy at the improvisation and sketch comedy theater The Groundlings.

He wrote that it was “extra special to get assaulted by her.”

The skit was received with rave reviews, and even Spicer himself couldn’t deny its humor.