Magnetic field compatible hybrid circuit quantum electrodynamics