Your Onlyoffice Documents application on iOS. It can’t connect to Mega since there is no server support there, so Mega can’t start a Webdav server your app could connect to
So the only way it seems is to add a connector similar to other a apps like Dropbox via an API