MCPcopy Create free account
hub / github.com/Infiland/cursor-opencode-auth / execute

Function execute

packages/opencode-plugin-cursor/src/tools/cli.ts:30–41  ·  view source on GitHub ↗
(toolArgs)

Source from the content-addressed store, hash-verified

28 .describe("Timeout in ms for the Cursor CLI call (optional)"),
29 },
30 async execute(toolArgs) {
31 const res = await run(args.agentBin, ["status"], {
32 cwd: args.cwd,
33 timeoutMs: toolArgs.timeoutMs ?? 60_000,
34 });
35 if (res.code !== 0) {
36 throw new Error(
37 `Cursor CLI status failed (exit ${res.code}).\n${res.stderr.trim()}`,
38 );
39 }
40 return res.stdout.trim();
41 },
42 }),
43
44 cursor_cli_models: tool({

Callers

nothing calls this directly

Calls 4

parseModelListFunction · 0.85
parseStreamJsonOutputFunction · 0.85
formatStreamJsonSummaryFunction · 0.85
runFunction · 0.50

Tested by

no test coverage detected