Preheat the oven to 400°F (200°C) or preheat an outdoor grill to medium-high heat.
Prepare four sheets of heavy-duty aluminum foil, approximately 12x18 inches each.
Place one chicken breast in the center of each foil sheet and coat evenly with olive oil.
Apply the dry French onion soup mix to both sides of each chicken breast, pressing firmly to adhere.
Distribute the sliced onions into four equal portions and place directly on top of each chicken breast.
Divide the asparagus into four equal portions and place them alongside the chicken on the foil.
Drizzle the melted butter over the asparagus spears and season them with salt and pepper.
Fold the foil over the ingredients and crimp the edges tightly to create a sealed pouch, leaving a small amount of space for steam expansion.
Place the foil packets on a large baking sheet and bake for 20 to 25 minutes, or until the internal temperature of the chicken reaches 165°F (74°C).
Carefully open the packets (avoiding steam burns), sprinkle 0.25 cup of Gruyère cheese over each chicken breast, and broil uncovered for 2 to 3 minutes until the cheese is golden and bubbly.
Garnish with fresh thyme leaves and serve immediately.