Same problems for me, after adding the Melcloud integration the window closes without any configuration and can’t find the X-MitsContextKey key.
Did you solve it?
EDIT: here you can find the key: Mitsubishi MELCLOUD integration with Home Assistant