Finely chop the garlic and onion, cut the pumpkin into small cubes.
Chop the chicken breast and fry it in the hot clarified butter, then season and remove from the pan. Add butter, sauté the garlic and onions in it. Add the pumpkin, dust everything with flour and then deglaze with white wine. Add the broth and cook the whole thing just until soft. Add the cream and thyme and reduce the sauce. Season to taste with salt and pepper.
In the meantime, cook the spaghetti and mix with the butter. Serve the spaghetti and sauce with some grated cheese.