Using cursor agent outside the editor

Is there a way to leverage cursor agent outside the editor? the idea is to hit the agent via API to take a custom prompt and generate a diff and maybe a PR if integrated with MCP without invoking the completion from inside the editor? i.e. a calling service can async raise diffs for simple/infra code changes.

1 Like