Sauté aromatics: Heat olive oil or butter in a large pot over medium heat. Add onion, carrot, and celery. Cook for 5 minutes until softened.
Add garlic and seasonings: Stir in garlic, thyme, salt, and black pepper. Cook for another 30 seconds until fragrant.
Simmer broth: Pour in the broth and bring to a gentle boil.
Add gnocchi: Stir in the potato gnocchi and cook for 4–5 minutes, until they float to the top.
Make it creamy: Lower the heat, add cream or coconut milk, and stir gently. Add spinach or kale if using, and simmer for another 2–3 minutes.
Finish and serve: Adjust salt and pepper. Garnish with Parmesan cheese and parsley. Serve warm.