posted
When we first met McKay in "48 Hours", he was a stargate physics expert who had never actually SEEN the gate - he was working with a computer model, which he'd presumably built himself. Knowing how a stargate works typically involves being able to rewire and reprogram the thing, as Carter has done umpteen times; it follows that McKay can do the same thing.