Bring a large pot of salted water to a boil. Add the gnocchi and cook until they float to the surface (about 2-3 minutes).
Drain and set aside.
In a large pan, heat the olive oil over medium heat.
Add the onion and tomato paste and sauté until translucent (about 5 minutes).
Add the garlic and cook for another minute until fragrant.
Stir in the tomato puree, water, basil and spices. Cover and simmer for 10 minutes, stirring occasionally.
Reduce heat to low and stir in the mascarpone until fully melted and incorporated.
Add the spinach and let it wilt into the sauce.
Toss the cooked gnocchi and Parmesan (if using) into the sauce, stirring gently to coat.
Plate the gnocchi and garnish with extra Parmesan and fresh basil if desired.