Katharine McPhee files for divorce from Nick Cokas

Katharine McPhee attends The Elizabeth Taylor AIDS Foundation Art Auction Benefit Presented By Wilding Cran Gallery on Feb. 27, 2014, in Los Angeles.

Frazer Harrison/Getty Images

Katharine McPhee, of "American Idol" and "Smash" fame, is putting an end to her marriage.

A rep for the singer and actress told People: "After six years of marriage, and having been separated for the past year, Katharine McPhee has filed for a dissolution of marriage from Nick Cokas. The two have an amicable relationship and will remain friends. They ask that people respect their privacy during this time."

Last year, while McPhee was already separated from Cokas, she was photographed kissing her "Smash" director Michael Morris, who is married to actress Mary McCormack. Morris and his wife, who have three children together, have reportedly reconciled. McPhee, 30, and Cokas, 49, were also apparently trying to work on their marriage after the incident.

"It was just time," a source close to McPhee told People. "They'd grown apart and weren't right for each other anymore."

"Smash" was canceled last year after two seasons. McPhee will star in the upcoming CBS drama "Scorpion," premiering this fall.