It depends on how you want to portray yourself.
Because the conversational situation you are describing is
- informal (someone you know well)
- you are being invited to a party
- you are talking to a co-worker, even though it's your boss
- assuming you are on good terms with your boss
using
I'm in
is appropriate, of course adding "thank you" is courteous
Thanks for the invite, I'm in!
would convey a certain excitement of looking forward to going to the party. If you are too formal you may come across as being aloof or distant.