JWST MIRI detections of H and O III and direct metallicity measurement of the z=10. 17 lensed galaxy MACS0647-JD | Synapse