Cursor integration
Capture prompts from Cursor automatically
PCR.dev captures Cursor prompts by watching the agent transcript files that Cursor writes to disk. No changes to Cursor's settings are required for basic capture.
File watcher (recommended)
Cursor stores agent transcripts in JSONL format at:
~/.cursor/projects/<project-slug>/agent-transcripts/<session-uuid>/<session-uuid>.jsonl
Run pcr init in your project and pcr start to begin capturing. That's it.
MCP integration (optional)
For richer metadata, add the PCR MCP server to Cursor's settings:
- –Open Cursor Settings (
Cmd+,) - –Search for "MCP"
- –Click "Add MCP Server"
- –Set command to
pcrand args to["mcp"]
What's captured
| Field | Value |
|---|---|
| source | cursor |
| capture_method | file-watcher |
| session_id | Cursor conversation UUID |
| prompt_text | Your message to the AI |
| response_text | The AI's response (thinking + answer) |
| project_name | Derived from the project slug |
ℹ
Cursor does not currently include model information in transcript files. The model field will be null for file-watcher captures from Cursor.