Mega does not support WebDAV due to their own client side encryption.
They suggest to use their sync client.
https://help.mega.nz/webclient/general.html#can-i-upload-data-using-ftp-sftp-webdav-or-similar
It should be possible to store a vault within the local folder that is used by this sync client.