I've released MTH (Mud Telopt Handler) into the public domain, meaning you are free to use, modify, and redistribute this software as you see fit. Installation instructions for merc are available in merc.txt, and should be generic enough to be of use for other codebases.