To get your armor and energy weapons fully repaired, go to Fort Independence. Accept the technology side quest. When you give the person Power Armor, Enclave Power Armor, or any energy-based weapon, as soon as he gets it, the item will be repaired to 100%. To get the items back, you have to kill him. Note: This can only be done once, so use it wisely.