  The Medium-Resolution Spectrometer (MRS) provides one of the four operating
modes of the Mid-Infrared Instrument (MIRI) on board the James Webb Space
Telescope (JWST). The MRS is an integral field spectrometer, measuring the
spatial and spectral distributions of light across the 5-28 $\mu m$ wavelength
range with a spectral resolving power between 3700-1300. We present the MRS's
optical, spectral, and spectro-photometric performance, as achieved in flight,
and we report on the effects that limit the instrument's ultimate sensitivity.
The MRS flight performance has been quantified using observations of stars,
planetary nebulae, and planets in our Solar System. The precision and accuracy
of this calibration was checked against celestial calibrators with well-known
flux levels and spectral features. We find that the MRS geometric calibration
has a distortion solution accuracy relative to the commanded position of 8 mas
at 5 $\mu m$ and 23 mas at 28 $\mu m$. The wavelength calibration is accurate
to within 9 km/sec at 5 $\mu m$ and 27 km/sec at 28 $\mu m$. The uncertainty in
the absolute spectro-photometric calibration accuracy was estimated at 5.6 +-
0.7 %. The MIRI calibration pipeline is able to suppress the amplitude of
spectral fringes to below 1.5 % for both extended and point sources across the
entire wavelength range. The MRS point spread function (PSF) is 60 % broader
than the diffraction limit along its long axis at 5 $\mu m$ and is 15 % broader
at 28 $\mu m$. The MRS flight performance is found to be better than prelaunch
expectations. The MRS is one of the most subscribed observing modes of JWST and
is yielding many high-profile publications. It is currently humanity's most
powerful instrument for measuring the mid-infrared spectra of celestial sources
and is expected to continue as such for many years to come.
