1Install-time AI-agent control hijack evidence:
21// opted in (marker file present OR pre-marker install detected). A vendor entry
22// also refreshes the shared ~/.agents/skills tree, but only tops up one that is
23// already there: `plugin remove --skills` must survive an upgrade.
⋯
62
63// ── Claude plugin .mcp.json patch ───────────────────────────────────────────
64//
⋯
70
71// The servers shipped in the plugin's .mcp.json, keyed by canonical
72// `["mcp", <suffix>]` args. Only these exact name/args pairs are patched —
⋯
97// isn't the plugin config (caller turns that into the single warning).
98function patchPluginMcpServers(cfg, binaryPath) {
99 if (!cfg || typeof cfg !== "object" || Array.(cfg)) {