After you beat Xenoblade Chronicles 3, you’ll be able to unlock Melia as a party member! In order to do this, approach the ? at the Main Castle Gate landmark on the first floor of the Keves Castle to trigger a cutscene. After the cutscene completes, Melia will be added to the party!