McLaren has struck a deal to continue to use Mercedes power units until 2030, the British F1 team announced on Friday.