other
Cursor CLI for CI
Use the Cursor CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.
4 functions 4 read 0 write API key auth
Cursor CLI for CI
Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.
Use this shape when a pipeline needs to read or update an external service. The Cursor CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Cursor CLI for CI
kosmokrator integrations:configure cursor --set api_key="$CURSOR_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call cursor.cursor_list_workspaces '{}' --json Discovery Before Execution
Agents and scripts can inspect Cursor docs and schemas before choosing a function.
kosmo integrations:docs cursor --json
kosmo integrations:docs cursor.cursor_list_workspaces --json
kosmo integrations:schema cursor.cursor_list_workspaces --json
kosmo integrations:search "Cursor" --json
kosmo integrations:list --json Useful Cursor CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
cursor.cursor_list_workspaces | Read | none | List all Cursor workspaces accessible to the authenticated user. Returns workspace IDs you can use with other Cursor tools. |
cursor.cursor_get_workspace | Read | workspace_id | Get details for a specific Cursor workspace by its ID. |
cursor.cursor_list_team_members | Read | workspace_id | List all team members in a Cursor workspace. Returns member names, emails, and roles. |
cursor.cursor_list_extensions | Read | workspace_id | List all extensions installed in a Cursor workspace. Returns extension names, identifiers, and versions. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.