Moving Thrift code up to MCSServer.