SAN ANTONIO — Sean Sweeney was formally named coach of the Orlando Magic on Monday after the sides struck an agreement in principle last week.Sweeney, the associate head coach of the San Antonio Spurs, will remain with that team through the conclusion of the NBA Finals. The Magic will introduce Sweeney at some point after the finals between the Spurs and New York Knicks.“We’re excited to welcome Sean to the Orlando Magic family,” Magic President of Basketball Operations Jeff Weltman said. “Sean brings a tremendous work ethic and a high degree of intensity that set the tone for everything he does. Sean’s attention to detail and his ability to communicate and teach the game clearly stands out. He’s grounded in competitiveness and accountability, while also embracing a modern, creative approach to coaching.”The 41-year-old Sweeney will replace Jamahl Mosley, who was let go by the Magic after five seasons and three consecutive first-round playoff exits. Mosley has since been hired as coach of the New Orleans Pelicans.Sweeney is a defensive guru, widely considered one of the brightest young coaches in the league on that side of the ball. In his lone season with the Spurs, he turned what was a porous defense a year ago into one of the league’s most airtight — his scheme centered around Victor Wembanyama, the unanimous winner of the Defensive Player of the Year award this season.Sweeney will join the Magic after one season with the Spurs. He spent the pr …