[mc] add getComponentConfig & setComponentConfig in api