Melt the butter in a large Dutch oven over medium heat. Add the onion, carrots and celery and cook for 6 to 8 minutes, until softened. Add the garlic and cook for 30 seconds.
Stir in the cumin, pumpkin pie spice, thyme, salt, pepper and flour and cook for 1 minute.
Slowly whisk in the broth, then the pumpkin puree, until smooth. Add the chicken thighs and sweet potato. Bring to a boil, then cover and simmer gently for 20 minutes, until the chicken reaches 165°F and the sweet potato is tender.
Transfer the chicken to a cutting board, shred with two forks and return it to the pot. Stir in the peas.
For the dumplings, whisk the flour, baking powder, salt, pumpkin pie spice and herbs in a bowl. Add the pumpkin, milk and melted butter and stir just until a soft, thick dough forms.
Bring the soup to a steady simmer. Drop heaping tablespoons of dough over the surface, about 16 dumplings. Cover and simmer for 15 minutes without lifting the lid, until the dumplings are puffed and cooked through.
Gently stir the spinach into the broth around the dumplings until wilted. Taste for salt and pepper and serve hot.