01 - Preheat the oven to 400°F. Line a baking sheet with parchment paper.
02 - Cut the spaghetti squash in half lengthwise and scoop out the seeds. Place the halves cut side down on the prepared baking sheet. Roast for 35–40 minutes until the flesh is tender and easily shreds with a fork.
03 - While the squash roasts, melt the butter in a saucepan over medium heat. Whisk in the flour and cook for 1 minute to form a roux.
04 - Gradually whisk in the milk until smooth with no lumps remaining. Add the Dijon mustard, garlic powder, onion powder, salt, and pepper. Cook, stirring constantly, until the sauce thickens, about 3–4 minutes.
05 - Remove the saucepan from heat. Stir in the shredded cheddar and Gruyère cheeses until fully melted and smooth.
06 - Once the squash is cool enough to handle, use a fork to shred the flesh into spaghetti-like strands. Discard the skins.
07 - Add the spaghetti squash strands to the cheese sauce and toss until evenly coated. Transfer the mixture to a greased baking dish.
08 - In a small bowl, mix the gluten-free breadcrumbs with melted butter and grated Parmesan. Sprinkle evenly over the squash mixture.
09 - Bake at 400°F for 10 minutes until the topping is golden and the sauce is bubbly. Garnish with chopped parsley and serve hot.