The same rules apply as with your other customers — the subscription payment is divided over the period it covers (typically 12 months) and gets added to your MRR.
Consulting and setup fees (which occur much more frequently in custom deals) are excluded from the MRR calculation.
You should include custom deals in your MRR — without it, you won’t have a full view of how your company is doing.