Preheat the oven to 375°F (190°C).
Cook spaghetti in salted water until al dente. Drain and set aside.
Season chicken, cook in skillet with olive oil, and shred or cut. Set aside.
Sauté onions, garlic, and mushrooms with butter and seasonings. Set aside.
Prepare the sauce by whisking flour into melted butter, adding stock and cream, then melting in cheese.
Combine pasta, chicken, vegetables, and sauce. Transfer to a greased 13x9-inch dish.
Top with remaining cheese and breadcrumbs. Bake for 30-35 minutes, broil if desired.
Garnish with parsley and serve.