Use ffmpeg
to change the container. You can install it with your favorite package manager or direct from their website, and then just do
ffmpeg -I path/to/input.mkv -c:v copy -c:a copy path/to/output.mov
If the streams are compatible, and they probably are, your QuickTime MOV file should import cleanly into FCPX.