The actress Rose McGowan on Wednesday sued Harvey Weinstein and the lawyers David Boies and Lisa Bloom, accusing them of directing a campaign of covert and illegal measures meant to discredit her and prevent her from going public with her rape accusation against him.

The lawsuit includes Ms. McGowan’s account of attempts to interfere with her plan to publish a memoir, “Brave,” including sending an undercover agent to befriend her and then steal a copy of the manuscript. It also describes efforts to derail the reporting by The New York Times and The New Yorker that ultimately exposed decades of accusations against Mr. Weinstein and helped ignite the #MeToo movement.

The lawsuit, filed in Federal District Court in Los Angeles, said that Mr. Weinstein tapped into a team of professionals whose goal was to “ensure that Ms. McGowan’s story never saw the light of day, and — if it did — that no one would believe her.”

Besides Mr. Weinstein, Mr. Boies and Ms. Bloom, the lawsuit names the lawyers’ firms as defendants, as well as Black Cube, a private intelligence firm that used undercover agents to approach women who had accused Mr. Weinstein of sexual misconduct.