“Weird Al” Yankovic will voice the lead character in Disney XD’s “Milo Murphy’s Law,” an animated comedy series from the creators of “Phineas and Ferb.”

The satirical songwriter will provide the voice of the titular character Milo Murphy, the optimistic distant grandson of the famed Murphy’s Law namesake. In addition to voicing the main character, Yankovic will sing the show’s opening theme song and perform other songs throughout the duration of the series.

Also joining the voice cast are Christian Slater (“Mr. Robot”), Vanessa Williams (“Desperate Housewives”), Sarah Chalke (“Scrubs”), Jemaine Clement (“Rio,” “Rio 2”) and “Phineas and Ferb” alums Vincent Martella, Diedrich Bader, Pamela Adlon and Dee Bradley Baker.

“Milo Murphy’s Law” will follow the adventures of Milo and his best friends Melissa and Zack as they attempt to embrace life’s catastrophes with positive attitudes and enthusiasm. Melissa and Zack will be voiced by Disney alums Sabrina Carpenter (“Girl Meets World”) and Mekai Curtis (“Kirby Buckets”), respectively.

“Milo Murphy’s Law” was created by “Phineas and Ferb” alums Dan Povenmire and Jeff “Swampy” Marsh, who will also provide character voices. Robert F. Hughes is attached to produce and direct the series.