Get someone with mech skill, then equip a gun maintenance or repair kit (?) and click with left on it, then with right on person with gun to repair (he has to have it equiped I think).
Armor not repairable? Don't they have Needles & Threads or something to repair. Man its irritating to keep buying new armor, maybe next trainer can have invulnerable armor or something.