An optomechanical cavity embedded with a V-type three-level atom is exploited to control single-photon transport in a one-dimensional waveguide. The effects of the atom–cavity detuning, the optomechanical effect, the coupling strengths between the cavity and the atom or the waveguide, and the atomic