File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
registry/coder-labs/modules/cursor-cli Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
display_name : Cursor CLI
3
3
icon : ../../../../.icons/cursor.svg
4
- description : Run Cursor CLI agent in your workspace (no AgentAPI)
4
+ description : Run Cursor Agent CLI in your workspace for AI pair programming
5
5
verified : true
6
- tags : [agent, cursor, ai, cli ]
6
+ tags : [agent, cursor, ai, tasks ]
7
7
---
8
8
9
9
# Cursor CLI
10
10
11
- Run the Cursor Coding Agent in your workspace using the Cursor CLI directly.
11
+ Run the Cursor Agent CLI in your workspace for interactive coding assistance and automated task execution.
12
+
13
+ ``` tf
14
+ module "cursor_cli" {
15
+ source = "registry.coder.com/coder-labs/cursor-cli/coder"
16
+ version = "0.1.1"
17
+ agent_id = coder_agent.example.id
18
+ folder = "/home/coder/project"
19
+ }
20
+ ```
21
+
22
+ ## Basic setup
12
23
13
24
A full example with MCP, rules, and pre/post install scripts:
14
25
@@ -31,7 +42,7 @@ module "coder-login" {
31
42
32
43
module "cursor_cli" {
33
44
source = "registry.coder.com/coder-labs/cursor-cli/coder"
34
- version = "0.1.0 "
45
+ version = "0.1.1 "
35
46
agent_id = coder_agent.example.id
36
47
folder = "/home/coder/project"
37
48
@@ -40,6 +51,7 @@ module "cursor_cli" {
40
51
force = true
41
52
model = "gpt-5"
42
53
ai_prompt = data.coder_parameter.ai_prompt.value
54
+ api_key = "xxxx-xxxx-xxxx" # Required while using tasks, see note below
43
55
44
56
# Minimal MCP server (writes `folder/.cursor/mcp.json`):
45
57
mcp = jsonencode({
You can’t perform that action at this time.
0 commit comments