Update mc_api.cpp