Cursor
Automate AI development workflows with Cursor and emma
With emma's Cursor integration, you can connect directly with Cursor Cloud Agent. Streamline your development workflow through agent launching, management, and conversation history retrieval.
Features
Cursor_Operator supports the following 9 tools:
| Category | Tools | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Read Operations | 6 | ||||||||||||||||||||||
| |||||||||||||||||||||||
| Write Operations | 3 | ||||||||||||||||||||||
| |||||||||||||||||||||||
Main Parameters
| Parameter | Description |
|---|---|
| prompt_text | Task instruction content to execute |
| repository | GitHub repository URL (e.g., https://github.com/owner/repo) |
| ref | Base Git ref (branch, tag, commit) |
| model | AI model to use (auto-selected if not specified) |
| auto_create_pr | Whether to auto-create PR on completion |
| branch_name | Branch name to create |
| webhook_url | URL for status change notifications |
Prerequisites
- • emma account
- • Cursor account
- • Cursor API key
- • GitHub account integration
Setup
1. Install the package
npm install @duzzle/cursor-integration2. Initialize
import { DuzzleCursor } from '@duzzle/cursor-integration';
const cursor = new DuzzleCursor({
apiKey: process.env.DUZZLE_API_KEY,
cursorApiKey: process.env.CURSOR_API_KEY
});3. Launch Cloud Agent
// Launch a new Cloud Agent
const agent = await cursor.launchAgent({
repository: 'https://github.com/owner/repo',
ref: 'main',
prompt_text: 'Add unit tests for the authentication module',
auto_create_pr: true,
branch_name: 'feature/add-auth-tests',
model: 'claude-4-sonnet'
});
console.log('Agent ID:', agent.id);
console.log('Status:', agent.status);