The 37-year-old actress donned a tiny white number that left very little to the imagination.
Guess she wanted to show her ex, funnyman Jim Carrey, what he's missing out on, because McCarthy says she's loving the single life, as pointed out by our friends over at PopEater.
"I'm enjoying it tremendously!" McCarthy, who split from Carrey in April after almost five years of dating, told Us Weekly.
"I have one more year to pull off an outfit like this, so I better hit it while it's hot."
McCarthy's white push-up bra and bikini-revealing sheer miniskirt featured gold embellishments that gave her ensemble an Egyptian goddess aesthetic.
Billowing "sleeves," a gold serpent necklace, and dangly earrings added to the Cleopatra-inspired look.
Carrey and McCarthy revealed their breakup news on Twitter. "I'm so grateful for the years Jim and I had together. I will stay committed to [his daughter] Jane and will always keep Jim as a leading man in my heart," McCarthy wrote.
The comic actor had kind words for her as well. "Jenny and I have just ended our 5yr relationship. I'm grateful 4 the many blessings we've shared and I wish her the very best!"
McCarthy and Carrey began dating in December 2005. During an April 2008 appearance on 'The Ellen DeGeneres Show," she announced that they were living together but made it clear they had no plans to marry.
In related news, check out which actress showed off her hot bod in a teeny two-piece.