Heat oil in a wok or large skillet over medium-high heat. After 90 seconds when the oil is hot, add the tofu and mushrooms, and stir fry for 7-8 minutes until the tofu is lightly golden brown all around. Set aside.
In the same wok, add more oil and sauté shallots (or red onion), minced garlic, lime leaves, Bird's eye chilies, and scallions for about 4 minutes until fragrant.
Add cooked rice, tomatoes, and previously cooked tofu and mushrooms to the pan. Stir-fry for a couple of minutes until well combined with the aromatics.
Using the tines of a fork or a tiny whisk, mix together Tom Yum paste, tamari (or soy sauce), vegetarian oyster sauce, sugar, lime juice, corn starch and water in a separate bowl.
Pour the sauce over the rice and stir-fry until coated and heated.
Serve the Tom Yum Fried Rice hot, garnished with cucumber, lime wedges, and cilantro leaves.