Please first verify (and give reply) that you have the SC-EM800 display mounted on your bike or not, because depending on the display type and battery type, the other components have to be selected!
Again, carefully check the previously linked compatibilty document of Shimano.
It takes some time to get down to the insights of this document, so be patient and also read the small letters - this will avoid that you will buy the wrong components.
I cannot write anything to the mechanical components, because I am not a "mechanical guy", my focus is on electronics, firmware and software.
However, at least you most probably need a new linkglide compatible
chain and also should check if your currently used chainring (the front "big sprocket") is compatible with the linkglide technology from Shimano.
Also you have to take care of the so called "chain line" (see e.g.
here) but that is not my stuff too. These are all mechanical issues, but you need to assure that these components will match to each other, otherwise your Di2 experience may not be that great and you will get nasty noises and bad (non-precise) gear shifting in the end.
As written before, I would never use AutoShift on a "real" mountain bike like yours, because I always want to shift exactly by myself and never would want that the AutoShift functionality would change gears automatically if I am in "hard terrain".
This is why I only use the (in my eyes perfect) RD-M8150-12 derailleur with 12 gears since quite some years now (I think I was one of the first users of this derailleur worldwide).
FreeShift is awesome (but you have FreeShift - functionality on RD-M8150-12 and RD-M8150-11 in the same way).
The selection of the cassette is up to you - I would prefer the 11-50teeth one because with this you have more "dynamics".
SW-EN600-R and SW-M8150 are up to you also, however I only would select the SW-EN600-R if your bike is fitted already with the (similar looking) SW-EN600-L unit at the left hand side.
But I am quite sure that your bike is using the SC-EM800 display (and because of this no SW-EN600-L control, because SW-EN600-L and SC-EM800 cannot be used at the same time on a bike) and so most probably I would select one of the "real" and classical SW-M8150xx shifters. They are a great choice and give you some cool "oldschool" shifter feeling with a new touch.
Regarding cable length: If you are using an SC-EM800 display, this display has 4 receptacles in total and mostly 2 of them are not used currently. So you need one short cable from the display to the right hand side gear control unit, e.g. SW-M8150xx. Depending if this cable will be inside or outside of the handlebar, the cable length may differ. Use one which is long enough.
Then you need another (mostly much longer) cable which will connect the drive unit with the rear derailleur. It can be a quite time consuming process to get this cable correctly mounted inside the frame. Most probably you have to dismantle or at least lower the drive unit for this and so need some related tools to do so. Also take care that this cable will not be squeezed from moving parts while riding.
After you have correctly mechanically and electrically mounted this equipment, you most probably will get an E903 error in the display when powering on the bike.
Now take the correct adapter cable from the SM-PCE02 interface (take care to order this interface in the newer packaging version which already includes the newer adapter cable with the new small SD300 plug, see in chapter 3.2 of
this document) and connect this cable to the last non-used receptacle of the (most probably) SC-EM800 display and then you can use the latest version 2.60 of the Windows based
miniMax program already in the licence key free (and so free of charge) version to configure your new perfect derailleur correctly and have a lot of fun with your bike.