Allan Kozinn and Adrian Sinclair, authors of a forthcoming book, have unearthed unpublished contracts in a US university archive which show that the Bond producers always wanted McCartney for the opening credits and another performer for the film’s disco scene.
https://www.theguardian.com/music/2022/dec/18/live-and-let-die-james-bond-theme-paul-mccartney