The whole subject messiah son of joseph does not seem important to me. That is to say: Torah is about good character.
But for information: the idea of messiah son of joseph can best be seen in the book of the Gra called "Kol HaTor" קול התור
At any rate, Torah is not a cult of personality. It is devotion to God. No one else. See tehilim 18 verse 2.You see there that King David was putting his hopes in God, not people.