Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/runner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
4 changes: 2 additions & 2 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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}'`);

Expand Down
Loading