api: add pipeline options to mg output