Make the sauce: Put the tomatoes in the electric blender or food processor and blend until just crushed. Set aside.
In a medium saucepan add the olive oil, heat and add the onion, garlic and cook at medium heat for several minutes. Then add the tomatoes, fresh basil and cook at medium heat for 15 minutes, season to taste. Set aside.
Prepare the gnocchi: In a baking mold covered in the bottom with parchment paper, place the chopped pumpkin and bake at 350 degrees, uncovered for 1 hour. Let cool.
On a clean surface, pour the wheat flour forming a ring, leaving a hole in the center. Then pour the Parmesan cheese around the flour, pour in the baked pumpkin, egg and salt to taste.