I seem to remember an old Star Wars game from maybe 10 years ago. I know it was based off of the Cartoon Network series from back then. I also seem to remember it having something to do with McDonalds.
Since you didn't specify if what you're looking for is a video game, a toy or maybe a tabletop I'll just list here what I think you meant.
Idea #1 - McDonalds 2010-2011 STAR WARS - The Clone Wars set
This is a set of Happy Meal toys McDonalds released in 2010 and 2011 tied into The Clone Wars cartoon.
Idea #2 - Lego Star Wars III: The Clone Wars
This is a video game about the clone wars released in 2011 and is part of the Lego Star Wars series of video games.
This doesn't seem to tie into McDonalds at all but it seems there are no video games released or endorsed by McDonalds about the Star Wars universe.