FRISCO, Texas — Mike McCarthy won a Super Bowl and went to the playoffs eight straight years while coaching two-time MVP quarterback Aaron Rodgers.

The Dallas Cowboys are hoping for similar results from McCarthy with Dak Prescott.

McCarthy, who won the title as Green Bay’s coach at the home of the Cowboys nine years ago, has agreed to become the ninth coach in Dallas team history, a person with direct knowledge of the deal said Monday.

The person spoke to The Associated Press on condition of anonymity because the team hasn’t announced the decision.

McCarthy interviewed over the weekend, before the Cowboys made the announcement Sunday that Jason Garrett wouldn’t return after 9 1/2 seasons.

Dallas missed the playoffs at 8-8 with high expectations in a make-or-break season for Garrett, whose contract expires next week.

Green Bay made nine trips to the post-season in 13 years under McCarthy. That’s the only other head coaching job the 56-year-old has held. He was fired during what ended up being a second straight losing season for the Packers in 2018.

McCarthy led the Packers to at least 10 wins in eight of his first 11 seasons, including four trips to the NFC championship game.

Dallas hasn’t been that far in the playoffs since the last of the franchise’s five Super Bowl titles to finish the 1995 season. The Cowboys missed the playoffs six times in Garrett’s nine full seasons.

McCarthy also interviewed with Cleveland, Carolina and the New York Giants. He went 125-77-2 in the regular season with the Packers and 10-8 in the playoffs. The Cowboys have just three playoff wins since their last championship.

The eight-year playoff run for McCarthy and Rodgers was from 2009-16, a stretch that included two divisional-round victories over the Garrett-led Cowboys.

The Cowboys believe they have their next franchise QB in Prescott, who was the 2016 NFL Offensive Rookie of the Year after replacing the injured Tony Romo and never relinquishing the starting job.

Prescott, whose rookie contract is expiring, and two-time rushing champion Ezekiel Elliott have made the playoffs twice in four seasons and got their first playoff victory in 2018 after losing their post-season debut to Rodgers and McCarthy with Dallas as the NFC’s top seed in 2016.

McCarthy was fired after an embarrassing loss at Lambeau Field to Arizona, a defeat that all but sealed a second straight year without a post-season trip for the Packers.

With a mandate to get the Cowboys past the divisional round for the first time in nearly 25 years, Garrett couldn’t build on a 3-0 start. Dallas went 4-8 in the next 12 games with a pair of three-game losing streaks.

The Cowboys still had a chance to make the playoffs with a win at Philadelphia in Week 16, but the 17-9 loss handed their post-season fate to the Eagles for the final week. Philadelphia beat the New York Giants 34-17, eliminating Dallas despite its 47-16 win over Washington.

Dallas finished 8-8 four times under Garrett, who had an 87-70 record, including 2-3 in the playoffs, in nine-plus seasons.

Despite never winning more than one playoff game in a season, the 53-year-old Garrett has the club’s second-longest tenure behind Pro Football Hall of Famer Tom Landry, coach for the franchise’s first 29 seasons.