MCP servers · Detect & Refine · MCP server
Connect Codex CLI to Detect & Refine
One line gives Codex CLI your Detect & Refine account as tools: 3 endpoints, track, grade, lookup grade, called with your own connection. No key in the prompt, a receipt for every call, revoke Codex CLI's access alone any time.
Three steps
- Create a free 0n3 account and connect Detect & Refine. Paste a key or sign in; it lands in your vault, encrypted.
- Install 0n3 into Codex CLI. OpenAI's terminal agent reads 0n3 over Streamable HTTP with a token from your environment.
- Ask Codex CLI: whoami. Then: "Track in Detect & Refine".
Put the token in your environment
export ON3_TOKEN="<your 0n token>"
Add it to your shell profile so Codex finds it next time.
The line above carries a placeholder; 0n3.app/install mints a real key named for Codex CLI and fills it in.
What Codex CLI can then do in Detect & Refine
Track · Beacon ingestion — find-or-create dr_clicks row, upsert dr_sessions by uuid1
Track
POST /api/trackGrade · Rule-based + Groq openai/gpt-oss-20b refinement, persists to dr_ai_scores1
Grade
POST /api/gradeLookup grade · Fetch latest grade for a session_id, click_id, or click_id_value0
Fetch latest grade for a session_id, click_id, or click_id_value
Rollup · Counts by grade, network, and crm_pipeline (sale/nurture/dead/x)0
Counts by grade, network, and crm_pipeline (sale/nurture/dead/x)
Export to sheet · Append graded rows to a Google Sheet via OAuth (composes with google_sheets)0
Append graded rows to a Google Sheet via OAuth (composes with google_sheets)
More · Everything else this app exposes.1
Stats
GET /api/statsDetect & Refine in other AI clients
Claude Code + Detect & RefineMCP server + skillClaude (desktop & claude.ai) + Detect & RefineconnectorChatGPT + Detect & Refineconnector · GPT actionGemini CLI + Detect & RefineMCP serverCursor + Detect & RefineMCP serverVS Code (Copilot) + Detect & RefineMCP serverWindsurf + Detect & RefineMCP server
