Magnesium isotopic detection in cool stars: Tracing nucleosynthetic signatures from MgH features | Synapse