Repetier-Server is replacement for mainsail. We currently can only talk to klipper directly so no mainsail please. You install klipper from server directly, define config and compile firmware for board inside server as well and depending on board can install firmware directly or download it to upload it as supposed for your board.