You don’t. It’s the switches that need to able to run MQTT and need configuring to talk to the broker.
but
They cannot do that without reflashing.
so
This post, which you must have seen, tells you how to use Tuya app and an extra script to act as intermediary between Tuya switch and MQTT. The script is the thing that needs configuring to talk to your broker.