Matlab Toolbox for Self-Tuning Adaptive Control Systems:
https://www.mathworks.com/matlabcentral/fileexchange/8381-stcsl-standard-version
The following Youtube link represents how to design MRAC based on Lyapunov:
Model Reference Adaptive Controller based on the Lyapunov theory in state space