As the typical material of two-dimensional transition metal dichalcogenides (TMDs), few-layered MoS2 possesses broadband saturable absorption and a large nonlinear refractive index, which could be regarded as a promising candidate for dual-function photonic device fabrication. In this work, the coex