Meggatt, who has played for the Wasps in the Championship 38 times this season, will join up again with Paul Hartley who signed him for Alloa from Queen’s Park in the summer of 2012.
The defender will report for pre-season training with his new club after a summer break and will then sign a two-year deal.