Sadly, it doesn’t there are technical reasons for it, the current implementation makes it difficult. Until API changes or I find a solution to make it work reliably it’s only for RGB color mode.
However, it does have an Indexed Mode which restricts all colors to the current palette, which means no function of the Magic Pencil will introduce new colors to your image.