Preheat the oven to 350 F. In a large bowl, mix together peanut butter, oats, brown sugar, granulated sugar, and egg until smooth. Fold in the chocolate chips and M&Ms.
Evenly press the cookie dough into a greased 8-inch square baking dish. Bake for 20-25 minutes.