We prove that the modular operad of diffeomorphism classes of Riemann surfaces with both "open" and "closed" boundary components, in the sense of string field theory, is the modular completion of its genus 0 part quotiented by the Cardy condition. We also provide a finitary presentation of a version of this modular two-colored operad and characterize its algebras via morphisms of Frobenius algebras, recovering some previously known results of Kaufmann, Penner and others.
As an important auxiliary tool we characterize inclusions of cyclic operads that induce inclusions of their modular completions.