MCP Protocol
Connect any MCP-compatible AI tool
PCR.dev implements the Model Context Protocol (MCP) server spec. Any AI tool that supports MCP can connect to pcr mcp and call PCR tools directly.
Starting the server
pcr mcp
The server communicates via stdio (JSON-RPC). All log output goes to stderr so it doesn't corrupt the transport.
Available tools
pcr_log_prompt
Log a single prompt/response pair. Call this after completing a coding task.
{
"prompt_text": "Add authentication to the API",
"response_text": "I've added JWT authentication...",
"session_id": "optional-session-id",
"project_name": "my-api",
"branch_name": "feat/auth",
"model": "claude-sonnet-4-5",
"source": "my-tool",
"files_changed": ["src/auth.ts", "src/middleware.ts"]
}pcr_log_session
Log an entire session transcript at once. Use at the end of a session.
pcr_status
Returns the number of prompts captured in the current session and auth status.