Halve the pumpkin lengthways and remove the seeds with a tablespoon. Then remove some of the pulp so that more of the filling fits into the pumpkin.
Place the halves on a baking sheet, prick several times with a fork, brush with oil and season with a little salt and pepper. Bake in the oven at 180 ° C for about 30 minutes.
In the meantime, cut the mushrooms into small cubes and chop the walnuts. Mix the walnuts and mushrooms with the cream cheese and sour cream, add thyme and rosemary as desired, and season with salt, pepper and nutmeg.
Fill the pumpkin halves with the mixture and bake for another 20 minutes at 180 ° C.