Why is my launchctl program not accepting external connections?
why you are not using ssh to request the data from the agent at the mac?
https://mathias-kettner.de/checkmk_datasource_programs.html
You need not the launchd.

regards,
Oliver