You need to explicitly think about a causal model for $Y$ including the $M^x$. It seems you are assuming the effect of $D$ on $Y$ is a constant $\phi$, so I'll assume constant effects throughout.
You could postulate that
$$ Y_{jt} = \delta^1_j + \gamma^1_t + \phi^1 D_{jt} + M_{jt}\alpha + \epsilon^1_{jt} $$
where $M_{jt}$ is a vector of all $M^x$ and $\alpha$ is a vector of coefficients. Then, $\phi^1$ is what the mediation literature would call the controlled direct effect of D, fixing the mediators $M^x$. Since we are assuming constant effects, this then also equals the so-called natural direct effect.
Under these assumptions, if $\phi^1$ is zero, then any causal effect $D$ has on $Y$ must flow through the mediators. It also holds under these assumptions that
$$ ATE = \phi = \phi^1 + NIE$$
where NIE stands for natural indirect effect, so that by identifying $\phi$ and $\phi^1$, you get the NIE "for free".
You assume that $\phi$ is identified via DiD. However, that does not automatically identify $\phi^1$. You need to assume that $\epsilon^1_{jt}$ is mean independent from D. In this context, this means to assume no unobserved variables besides $D$ and the unit/time FE influencing both $M$ and $Y$.
If this seems plausible, $\phi^1$ can be estimated by a regression of $Y$ on unit and time FE and D and M. That means that the usual advice not to adjust for post-treatment variables becomes moot, because we need to net out the indirect effect of $D$ through $M$.
Things get more a bit more tricky when the $M^x$ influence each other. However, this is testable under the no-confounding assumption: Simply regress any $M^x$ on $D$ and the other two mediators (and fixed effects). If any regression coefficient of the $M$s is different from zero, then either the no-confounding or the mediator-do-not-influence-each-other assumption is wrong.
If you're interested in the effect of $M^x$ on $Y$ only, under no-confounding, a simple FE regression of $Y$ on $M^x$ and $D$ will do under constant effects. Again, you then would also need to think about the relationship between the mediators in order to decide for which you needed to adjust in that regression.