Repository navigation
v1.4.0 - Project ID Mapping & Model Configuration
π Major Features
π Project ID Mapping
Map short, memorable project IDs to workspace paths for easier API calls.
Key Features:
- β
Web management UI at
/manage - β Auto-generated unique IDs (10 characters)
- β Full CRUD API for project management
- β
Persistent storage in
~/.cursor-agent-a2a/projects.json - β
URL parameter support:
POST /messages/:projectId
Example:
```bash
Create project mapping
curl -X POST "http://localhost:4937/projects" \
-H "Authorization: Bearer your-api-key" \
-d '{"name": "My Project", "workspace": "/path/to/project"}'
Use project ID (much simpler!)
curl -X POST "http://localhost:4937/messages/abc123xyz" \
-H "Authorization: Bearer your-api-key" \
-d '{"message": "Hello"}'
```
π€ Model Configuration
Choose which Cursor model to use for each request.
Available Models:
- π Claude 4.5 Sonnet (default) - Balanced performance
- π§ Claude 4.5 Opus - Most capable
- π» GPT-5.2 Codex - Code-optimized
- β‘ Gemini 3 Flash - Fast responses
- And many more...
Configuration Methods:
-
Per-request (highest priority):
```json
{"message": "Hello", "model": "sonnet-4.5"}
``` -
Environment variable:
```bash
export CURSOR_DEFAULT_MODEL=sonnet-4.5
``` -
System default:
sonnet-4.5(fallback)
π§ Enhanced Cursor CLI Integration
- Auto-discovers Cursor CLI location
- No manual PATH configuration required
- Works out-of-the-box on macOS
π Documentation
- CHANGELOG.md - Complete version history
- EXAMPLES.md - Practical usage examples
- README.md - Updated with new features
π Migration from v1.3.x
No Breaking Changes! All existing API calls work as before.
New Features to Try:
- Visit
http://localhost:4937/manageto set up project mappings - Add
"model": "sonnet-4.5"to your requests - Set
CURSOR_DEFAULT_MODELenvironment variable
π¦ Installation
```bash
Update to latest version
npm update -g cursor-agent-a2a
or
pnpm update -g cursor-agent-a2a
Restart service
cursor-agent-a2a restart
```
π Bug Fixes
- Fixed "Cursor command not found" error with auto-discovery
- Resolved Opus slow pool quota issues by defaulting to Sonnet
π Acknowledgments
Thanks to all users who requested these features and provided feedback!
Full Changelog: v1.3.1...v1.4.0