Preheat the oven to 375°F. Cut the spaghetti squash in half lengthwise and scoop out the seeds.
Arrange the squash halves cut-side down in a baking dish. Add hot water until it reaches a depth of ½ inch. Bake uncovered for 30 to 40 minutes, or until the squash is tender.
Remove the squash from the oven and allow it to cool until comfortable to handle. Use a fork to scrape out the flesh, separating it into strands. Reserve both the strands and the empty squash shells. Reduce the oven temperature to 350°F.
Place the ground beef, chopped onion, and green pepper in a large skillet over medium heat. Cook for approximately 3 to 4 minutes, breaking the beef into crumbles, until it is no longer pink. Drain the mixture.
Add the sliced mushrooms, minced garlic, dried basil, oregano, salt, and pepper. Cook and stir for 2 minutes.
Add the drained diced tomatoes. Cook and stir for another 2 minutes.
Stir in the reserved spaghetti squash strands. Continue cooking uncovered for approximately 10 minutes, or until the excess liquid has evaporated.
Divide the beef and vegetable mixture between the reserved squash shells. Arrange the filled shells in a shallow baking dish.
Bake uncovered at 350°F for 15 minutes.
Sprinkle the mozzarella cheese evenly over the filling. Return the squash boats to the oven and bake for approximately 5 minutes longer, until the cheese has melted.
Garnish with sliced fresh basil, if desired, and serve warm.