How UE know which MCS will be used for retransmission?

It directly specific the MCS index. Which is of 5 bits.
Why don’t you some DCI format? See format 2 in share tech note.