Effective boundary field theory for a Josephson junction chain with a weak link