We demonstrate the integration of a spectral pulse-shaper into a passive mode-locked laser cavity for direct control of the output pulse-shape of the laser. Depending on the dispersion filter applied with the pulse-shaper we either observe a bright or dark "soliton-like" pulse train. The results demonstrate the strong potential of an in-cavity spectral pulse-shaper as an experimental tool for controlling the dynamics of passively mode-locked lasers.