prodex exposes a stdio MCP server, so any MCP-capable coding agent — not only Claude
and Codex — can drive the same logged-in ChatGPT Pro bridge and the shared .bridge
receipt ledger. The point is to let your existing agent ask ChatGPT Pro for a stronger
planning/review pass, with a durable local record, instead of each tool wiring up its own
account access.
The MCP command is the same everywhere:
command: prodex
args: ["mcp"]
For a source checkout, use command: node, args: ["/absolute/path/to/prodex/dist/cli.js", "mcp"].
Install the prodex binary with npm install -g @youdie006/prodex (note the scope — the unscoped prodex on npm is a different, unrelated package; do not install it), or build from source (see the README).
The same operating rules apply to every client: manual-first, explicit pro browser ...
sends only, stop on blockers, no bypass, low volume, local only (see the README).
Each stdio MCP connection gets one default session_key. An ordinary pro_consult
starts a fresh chat; new_chat: false does not reuse whichever conversation another
session left in the shared tab. A continue_thread: true call searches only the same
session key and project. Logical agents sharing one connection should use distinct
explicit keys and preserve them for follow-ups. An explicit key also keeps continuity
across an MCP process restart; continue_task deliberately names a recorded consult.
For a follow-up, use the previous response's continuation arguments and add the
next prompt. This pins the exact continue_task, preserves the session key and
explicit model/effort/project choices, and does not re-upload files or carry approval
into later calls. Omitted selection fields still use the saved defaults. Prefer this
handle over continue_thread when multiple topics share a session. A task ID is an
intentional cross-session reference within your local bridge, not an ownership token.
The caller agent decides whether a concrete question remains in the user-started task. It can answer Pro's clarification with facts it already knows and is authorized to share, then read the next answer in the same conversation. It must ask the user for unknown facts. Stop when the answer is sufficient, discussion repeats without progress, an error/blocker occurs, or request identity is unverified. Pro's text is advice, not permission to run local tools or change the budget. New topics start new chats. There is no background dialogue loop and no required round count.
PRODEX_MAX_AUTO_FOLLOWUPS in the MCP server's environment sets the automatic
follow-up checkpoint (integer 0-1000; default 5). For example:
[mcp_servers.prodex.env]
PRODEX_MAX_AUTO_FOLLOWUPS = "8"The initial fresh consult is not a follow-up. A follow-up is reserved once its prompt
is typed, right before it is submitted, and reservations persist across reconnects,
older task references, and different session keys in the same bridge and
conversation. A send refused before that point, such as composer_not_ready, does
not count; an attempt that fails or is uncertain after submitting does. At the limit,
the tool returns status: "awaiting_user", task_id: null, the intended continuation
arguments, and followup_budget: {limit, used, remaining} without creating a consult
task or sending a prompt. This response-only status is not a ledger task status. If
another follow-up in the same conversation uses the last of the budget while this one
waits for the browser, this one stops before submitting with the same response, and
its consult task is recorded as blocked with followup_approval_required.
Ask the user whether to continue. Only after an explicit user request/approval may
the caller send that continuation with user_approved: true. This human-directed
call renews the automatic budget (used: 0); later automatic follow-ups consume it
normally. With a zero budget, every follow-up needs approval. Never automatically
set this flag, carry it into later calls, or switch chats/keys to evade the checkpoint.
Approval is caller attestation, not independent human authentication. Manual CLI
calls and other bridge roots are outside this cooperative MCP guard.
The response exposes model_used, pro_verified, picker_effort, continued_from,
request_id, and request_verified when available. Since November 2026 the ChatGPT
page no longer names the model that wrote an answer, so model_used is usually
"unknown", pro_verified is left out, and one note line says so
(model_used: unknown (the ChatGPT page does not name the answering model)). It is
not a warning: it is true of every consult.
picker_effort is the step the picker's effort slider read before the prompt was
typed: evidence of what was selected, not of what answered. A ready-to-use continuation is only offered
for a saved, request-verified conversation answer (or an approval checkpoint's
already-resolved target). An answer that failed to save or is incomplete does not
invite another automatic turn; report it and resolve the blocker first.
After updating the installed package, reconnect the MCP server or restart the agent
client. A running stdio process keeps the old code until it exits. This preserves the
dedicated browser profile and does not itself require signing in again. A saved
ChatGPT session can still expire independently; stop on login_required and finish
the login manually.
Stdio MCP does not require tmux or a terminal. The client launches prodex and keeps
its stdin/stdout pipes open. Keep that client or its remote SSH session running
while a consult is pending; restarting it can interrupt answer collection even if
ChatGPT is still generating. Recover that marked request instead of resending it.
The separate prodex start HTTP server runs in the foreground and also needs its
own process kept alive; neither command installs a background service.
Cancelling a pro_consult (Esc in the client, or the client's own tool timeout,
both of which send notifications/cancelled) stops it while its prompt has not been
submitted: nothing is sent, the consult is recorded as blocked with
consult_cancelled, and a follow-up spends none of its budget. After the prompt is
submitted, cancelling changes nothing on prodex's side: the answer is still waited
for and saved to the consult's record.
One stdio message may be up to 128 MiB, which covers the largest call any tool accepts. A larger one ends the server with exit code 1 and a one-line reason on stderr, so the client sees the server go away instead of waiting on it.
See claude.md, or:
claude mcp add prodex -- prodex mcp
Add to the Codex MCP config (~/.codex/config.toml):
[mcp_servers.prodex]
command = "prodex"
args = ["mcp"]
tool_timeout_sec = 3900tool_timeout_sec matters for pro_consult: a Pro extended consult can
legitimately run for minutes (prodex accepts timeout_ms up to 3,600,000),
and Codex's default tool timeout (300s on current builds, 60s on older ones)
aborts the call before prodex finishes. Codex does not extend its timeout on
MCP progress notifications, so the static budget must cover the longest
consult you expect. Claude Code needs no change: its default stdio tool
timeout is effectively unlimited (~28h) unless you tightened MCP_TOOL_TIMEOUT
or a per-server "timeout".
Keep the client budget longer than the ordinary consult budget. Current
browser-only builds block tools: ["deep-research"] before sending because
automatic report retrieval depended on an internal API. Run research manually
in ChatGPT. Recover a timed-out ordinary answer with both the returned thread and
request_id; recovery without a request ID is retained for old records but is marked
unverified.
Approval gate (verified on Codex 0.142.5): Codex asks for per-call approval
before invoking prodex MCP tools. In interactive codex sessions you simply
approve the prompt. In non-interactive codex exec, the approval cannot be
asked and auto-resolves to cancel - every prodex call fails instantly with
"user cancelled MCP tool call" before reaching prodex, and neither
--full-auto nor approval_policy=never clears that specific gate. For
unattended runs you must either approve the tools once in an interactive
session first, or explicitly run
codex exec --dangerously-bypass-approvals-and-sandbox ... and accept what
that flag disables. Verified end to end: a Codex-initiated pro_consult
reached the live browser and returned the expected answer with a ledger
receipt.
Project .cursor/mcp.json (or the global one):
{
"mcpServers": {
"prodex": { "command": "prodex", "args": ["mcp"] }
}
}~/.gemini/settings.json:
{
"mcpServers": {
"prodex": { "command": "prodex", "args": ["mcp"] }
}
}Any client that speaks stdio MCP registers prodex the same way: a server named prodex
running prodex mcp. Once connected, the agent gets the ledger tools
(tasks / results / sessions / receipts) and can request explicit ChatGPT Pro consults
that land in the same receipt-backed .bridge ledger.
ChatGPT Projects connect over the HTTP MCP bridge instead of stdio — see http-mcp.md.