For fun I made an unofficial iMessage plugin for Cursor that works on your Mac. It's open source.
Expect a better official one coming soon with improved permissions isolation.
To install it, go to Customize > +Add > From GitHub Repository > paste > Add.