Place a 1x1 wooden foundation, place two walls high on all side but leave one side open. Place 2 pillars where you left it open and lead a ramp on the opposite side for it to walk up and into the box, you can easily slip past the pillars and get out the box trapping the mantis, let it de-aggro by flying out the area for 20-30 seconds and replace the pillars with a wooden wall and fully box it in, place a ceeling on top now you can feed the mantis through the wall without bug repellent.

More Mantis Taming & KO Tips