Looks like a self generated system.
If you don't have battery power anywhere to CDI you can just remove battery.
If you want lights to work without blowing bulbs you'll need a capacitor and a really good voltage regulator.
Probably find it has around 70v AC (no load) from generator.
Find wiring diagram from an XL125~185 (or an XR, they are different and run without battery)
I'm pretty sure you will need a small battery because tail light and indicators need to work.
Not sure where you'll get MOT, Thunder Road will probably have Phil, Budgie or Rags do it (not sure who's there now?)