xdmp.clusterEffectiveVersion() as xs.unsingedLong
Returns the current MarkLogic Server effective version.
xdmp.clusterEffectiveVersion(); => 8000400