After months of speculation — and both McCarthy and the series' showrunner weighing in — McCarthy announced on "The Ellen DeGeneres Show" that she'll be returning for Netflix's "Gilmore Girls" revival as Sookie.
"Literally about an hour and half ago we figured out that I'm gonna go back and do it and I am so excited," she told DeGeneres. "And they are gonna be amazing."
The episode of "Ellen" is set to debut on Friday.
McCarthy is one of the last series originals to be announced for the Netflix revival. Previously, showrunner Amy Sherman-Palladino pointed to McCarthy's "really f–king busy" schedule as the reason she wouldn't be appearing in the show.
"Look, if Melissa is available and has an afternoon free, I'll write her a scene," she told TVLine in February. "Melissa was one of us. If she has a spare moment to run over [to the set] — even if for just a cameo — we would be totally game. And if it's a last-minute thing, I would write her in and we would figure it out. That's the way we left it."
See photos of Melissa McCarthy through the years:
Melissa McCarthy through the years
Melissa McCarthy to return for 'Gilmore Girl' revival as Sookie
Melissa McCarthy, star of 'Gilmore Girls,' is currently appearing at the Groundling Theater on the weekends. For My Favorite Weekend column. (Photo by Myung J. Chun/Los Angeles Times via Getty Images)
HOLLYWOOD - JANUARY 11: Actress Melissa McCarthy attends the WB Network's 2003 Winter Party at the Renaissance Hollywood Hotel on January 11, 2003 in Hollywood, California. (Photo by Frederick M. Brown/Getty Images)
Melissa McCarthy during Behind The Scenes Of 'The Gilmore Girls' at The Academy Of Arts And Sciences Leonard H. Goldenson Theater in North Hollywood, California, United States. (Photo by Mark Sullivan/WireImage)
UNSPECIFIED - DECEMBER 29: Medium shot of Melissa McCarthy as Sookie and Lauren Graham as Lorelai. (Photo by Patrick Ecclesine/Warner Bros./Getty Images)
PARK CITY, UT - JANUARY 21: Actress Melissa McCarthy and husband Ben Falcone arrive for the premiere of 'The Nines' at the Eccles Theatre during the 2007 Sundance Film Festival on January 21, 2007 in Park City, Utah. (Photo by Evan Agostini/Getty Images)
Melissa McCarthy at the Ritz Carlton in Pasadena, California (Photo by John Sciulli/WireImage)
LOS ANGELES, CA - MARCH 18: Actress Melissa McCarthy arrives to the premiere of 'Just Add Water' at the Directors Guild of America on March 18, 2008 in Hollywood, California. (Photo by John Shearer/WireImage)
LOS ANGELES - APRIL 19: MIKE & MOLLY is a comedy from Chuck Lorre ('Two and a Half Men,' 'The Big Bang Theory') about a working class Chicago couple who find love at an Overeaters Anonymous meeting. Billy Gardell plays Mike Biggs, a cop,Â and Melissa McCarthy portrays fourth-grade teacher Molly Flynn. MIKE & MOLLY will premiere this Fall, Mondays (9:30-10:00 PM ET/PT) on the CBS Television Network. (Photo by Richard Cartwright/CBS via Getty Images)
Actors Melissa McCarthy and Billy Gardell attend the 2010 CBS Upfront at The Tent at Lincoln Center on May 19, 2010 in New York City. (Photo by Jim Spellman/WireImage)