On a local topos acts a monad corresponding to the extra right adjoint of the global section geometric morphism. The sharp modality. It has a left adjoint modality, the flat modality.
The codiscrete objects in a local topos are the modal types for the sharp modality.
The discrete object in a local topos are the modal types for the flat modality.
See the references at local topos.