add mcapi ecc with tests