Question on sales tax in Massachusetts

When dealers give a breakdown of the out the door price, should the sales tax be on the MSRP or on MSRP+Doc Fees. For instance, if MSRP is 24,750 and doc fees is 469, is it okay for the dealer to charge the sales tax on (24,750+469) or should they be applying the tax on MSRP 24,750 only?