MCP Protocol
Connect any MCP-compatible AI tool
PCR implements the Model Context Protocol (MCP) server spec. Any AI tool that supports MCP can connect to pcr mcp and call PCR tools directly for richer per-prompt metadata than the file watcher captures.
⚠
The MCP server is being rewritten in v0.2.x and currently exits with code 50 (NotImplemented). Use the file watcher (pcr start) for now.
Starting the server
pcr mcp
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.
{
"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. Useful at session end.
pcr_status
Returns the prompt count for the current session and your auth status.