Puree 1 can of the tomatoes in a blender and set aside.
In a stock pot, add your olive oil and heat. Add the garlic and onions. Once the garlic and onions are translucent, stir in all the remaining ingredients and bring to a boil, constantly stirring so it doesn't stick. Once boiled bring the heat to a low boil and cook for about 2 hours. Remember to give the sauce a good stir every once in a while.
Add the almond, coconut flour, and xanthan gum to a medium bowl and whisk until combined thoroughly. Set aside.
Add ricotta and Parmigiano cheese to a large bowl and mix well. Add in the flour mixture and mix again very well. Season to taste with salt and mix in the lightly beaten egg. The dough will be sticky, but it will form into a ball easily. If not, add a little more almond flour. Wrap the ball with saran wrap and refrigerate for an hour or more.
Remove dough from the fridge and form into rounds (about 1 inch). The dough will be soft and still sticky but should form into rounds with no issues. Place in a tray and press down with a fork to lightly flatten them. Freeze for about 10 minutes before frying.
Heat the butter in a skillet on medium/low heat. Once hot, add in the gnocchi, flat side down. Move the pan around to keep them from sticking, basting them throughout the cooking process, which will be about 4–5 minutes. Be very careful in the cooking process as they are very fragile.
Serve right away and enjoy!
Serving Size 1/2 cup sauce & 3 oz gnocchi
* Percent Daily Values are based on a 2,000 calorie diet. Your daily value may be higher or lower depending on your calorie needs.