Note: This tools cannot bypass the 7, 14, 30 day unlock time. (MTKClient exception)
The original XiaomiToolV2 is abandoned and it needed a small correction to make it run on linux.
My fork - GitHub
Some MTK (MediaTek) devices can be unlocked bypassing the official method.