Decryption port mirroring

I have MITMproxy working and it decrypts SSL traffic from one of my devices.

I would like to send a cleartext copy of the traffic to another server (which can run some analysis tools on cleartext HTTP).

How can I configure this kind of port mirroring with MITMproxy?

It is not a build-in option, you have to write your own script and add it to mitmproxy as an add-on.
Look at this example or watch in the official GitHub repo.