  We report modifications of the temperature-dependent transport properties of
$\mathrm{MoS_2}$ thin flakes via field-driven ion intercalation in an electric
double layer transistor. We find that intercalation with $\mathrm{Li^+}$ ions
induces the onset of an inhomogeneous superconducting state. Intercalation with
$\mathrm{K^+}$ leads instead to a disorder-induced incipient metal-to-insulator
transition. These findings suggest that similar ionic species can provide
access to different electronic phases in the same material.
