diff --git a/README.md b/README.md index 8880011..09f5178 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ Add the plugin source path to `plugins.load.paths` in `~/.openclaw/openclaw.json ```bash npm ci && npm run build && npm pack -openclaw plugin install cursor-agent-0.1.0.tgz +openclaw plugins install cursor-agent-0.1.0.tgz ``` ### 4. Configure diff --git a/src/runner.test.ts b/src/runner.test.ts index c75a58f..76d5def 100644 --- a/src/runner.test.ts +++ b/src/runner.test.ts @@ -247,6 +247,7 @@ describe("runCursorAgent", () => { const args = spawnMock.mock.calls[0]![1] as string[]; expect(args).toContain("--approve-mcps"); + expect(args).toContain("--force"); }); it("includes --model when model is specified", async () => { diff --git a/src/runner.ts b/src/runner.ts index 1cae91f..ed47845 100644 --- a/src/runner.ts +++ b/src/runner.ts @@ -31,7 +31,7 @@ function buildCommand(opts: RunOptions): { cmd: string; args: string[] } { } if (opts.enableMcp) { - agentArgs.push("--approve-mcps"); + agentArgs.push("--approve-mcps", "--force"); } if (opts.model) { agentArgs.push("--model", opts.model); @@ -52,7 +52,7 @@ function buildCommand(opts: RunOptions): { cmd: string; args: string[] } { } else if (opts.mode !== "agent") { parts.push("--mode", opts.mode); } - if (opts.enableMcp) parts.push("--approve-mcps"); + if (opts.enableMcp) parts.push("--approve-mcps", "--force"); if (opts.model) parts.push("--model", `'${opts.model}'`); parts.push(`'${escaped}'`);