There are a lot of things you need to gain muscle, a lot of ingredients that help build that muscle, but protein is really the most important one. So when you start eating more, aim to add a lot of protein to the meals.
You’ll likely find that you have trouble reaching the amount of protein recommended for muscle gain, so you should strongly consider taking supplements.