By the universal property of the comma object, the identity natural transformation induces the unit \eta_F:\ensuremath{\mathpzc{A}}\xymatrix@1@C=1.6em{{}\ar@<-.2ex>[r]&{}} \ensuremath{\mathpzc{B}}/F over \ensuremath{\mathpzc{B}}. Explicitly,
\eta_F(a)=\@ifnextchar[{\CCO}{\CCO[6ex]}{F(a)}{\ensuremath{\mathrm{id}_{}}}{a}{F(a)}.
Then the pasting
\xymatrix{\ensuremath{\mathpzc{B}}/{P_1}\ar@<-.2ex>[r]^{P'_2}\ar@<-.2ex>[d]_-{P'_1}&\ensuremath{\mathpzc{B}}/F\ar@<-.2ex>[r]^{P_2}\ar@<-.2ex>[d]_{}="w"^-{P_1}&\ensuremath{\mathpzc{A}}\ar@<-.2ex>[d]_{}="f"^-{F}\\
\ensuremath{\mathpzc{B}}\ar@<-.2ex>[r]^{}="q"_-{\ensuremath{\mathrm{Id}_{\ensuremath{\mathpzc{B}}}}}&
\ensuremath{\mathpzc{B}}\ar@<-.2ex>[r]^{}="g"_-{\ensuremath{\mathrm{Id}_{\ensuremath{\mathpzc{B}}}}}\ar|>{}|-*=0[@]{{\raisebox{.7ex}{\scalebox{.3}{$\bullet$}}}}"q";"w".&\ensuremath{\mathpzc{B}}\ar|>{}|-*=0[@]{{\raisebox{.7ex}{\scalebox{.3}{$\bullet$}}}}"g";"f".}
induces the multiplication \mu_F:\ensuremath{\mathpzc{B}}/{P_1}\xymatrix@1@C=1.6em{{}\ar@<-.2ex>[r]&{}} \ensuremath{\mathpzc{B}}/F over \ensuremath{\mathpzc{B}}. Explicitly,
\mu_F(\@ifnextchar[{\CCO}{\CCO[6ex]}{b_1}{f_1}{\@ifnextchar[{\CCO}{\CCO[6ex]}{b_2}{f_2}{a}{F(a)}}{b_2})=\@ifnextchar[{\CCO}{\CCO[6ex]}[8ex]{b_1}{f_2f_1}{a}{F(a)}
and it acts on the arrows by pasting the two commutative squares.
Using the universal property of the comma object, it is straightforward to prove that (M,\mu,\eta) is a colax idempotent 2-monad.
Explicitly, \eta M\dashv \mu with the unit of the adjunction being the identity and counit with component u_F:\eta_{M(F)}\mu_F\xymatrix@1@C=1.3em{{}\ar|>{}|-*=0[@]{{\raisebox{.7ex}{\scalebox{.3}{}}}}[r]&{}} \ensuremath{\mathrm{Id}_{M(MF)}} the natural transformation given by the family of arrows in \ensuremath{\mathpzc{B}}/M(MF),
which component at the index [b_1f_1_-id_b_1^-id_b_1&b_1_-f_1&
&b_1^-f_1^-f_2 f_1&F(a)^-id_F(a)
b_1_-f_1&b_2&
&b_2_-f_2&F(a)$$
from [b_1id_b_1f_2 f_1aF(a)F(a) to [b_1f_1[b_2f_2aF(a)b_2.