Yep, but the whole thing was started by an unknown (or unnamed) Republican who dropped the effort. Then it was continued by the DNC and Clinton campaign. We know McCain had it picked up and delivered to the FBI. How did McCain know the "dossier" was finished and ready for delivery?
At this point, the important thing to remember is that the dossier was a political operations research product that was used by the FBI and the intel community to create the premise that the Trump campaign was colluding with the Russians, which was then used as the basis for a FISA warrant that allowed them to bug Trump and his staff, campaign and transition.