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 pcr and args to ["mcp"]

What's captured

FieldValue
sourcecursor
capture_methodfile-watcher
session_idCursor conversation UUID
prompt_textYour message to the AI
response_textThe AI's response (thinking + answer)
project_nameDerived 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.