I think you played it fine. If you decide to raise here knowing MP's range is overpairs and sets exclusively and BB (and maybe UTG) happens to wake up with a better flush draw you're essentially drawing to 5 bad outs (9,8). If this hand were HU it could go either way I guess. If you think he can find the fold button with 99-TT then raising can be a good play. If not, just flat and try to bink on the turn and hope he pays you off.