Scotsman John McPhee took his first ever Moto3™ pole position ahead of Miguel Oliveira and Efren Vazquez after Kent hit with penalty.