Meta Knight is fundamentally good, but he works for King Dedede so he can keep a close watch on him. When he occasionally clashes with Kirby, it's often because Dedede ordered it, and Meta Knight is following that command—otherwise he'd risk being dismissed. His true allegiance leans heroic.