Use the HTTP API instead of calling over to libmesos. See: http://mesos.apache.org/documentation/latest/scheduler_http_api/