On the W2, in the state section. MA should be selected for the MA source income to report. You may need to break up the state income between MA and your resident state.
It's ok if the state section of the w2 does not match the form. The form has already been filed with the federal and state governments. This is your chance to correct the form to reality.