Holosun makes a direct mount optic for S&W guns now it's the SCS Series.
I have the SCS-MP2-GR on my M&P2.0 Compact. It's worked great so far, it's constant on and solar. Only thing I didn't like, it's constant on, (it does have a really small on/off switch) and you can't replace the battery...