Modular Rig mech procedural animation

So, I was trying to make a procedural animation with modular rig on my mech and I just can’t figure it out. Every video about MR is using standart 2-bone legs, meanwhile my mech has 5-6 bones in each leg.
Can anybody give me a step-by-step guide?