e-Comet doctor
Base every conclusion on an observed typed result. Absence of a local tool can be a valid remote-only installation and does not prove a broken full installation.
Triage before any conclusion
Both hosts load tools on demand. Search the host tool catalog for e-comet with a large result limit, or search by
exact tool name. A fresh task's start list proves nothing. A truncated search result does not prove absence; use the
host's supported bounded search again or search for the exact capability before calling it unavailable.
| Observed after search | Meaning | Next step |
|---|---|---|
| No e-Comet tools | Installation or enablement is uncertain; in Cowork the remote connector may also be disconnected | Cowork: call host ListConnectors filtered for e-Comet. If ListConnectors shows the connector connected, verify in Customize → Plugins → Yours that e-Comet MCP Tools is installed and enabled, answer any local MCP permission prompt with Continue, and start a new task. Codex: use the README fallback to check marketplace, plugin installation and enablement, then start a new task. No local probe is available. |
| Local tools present, remote tools absent | Remote authorization, chat enablement, or connection is uncertain | Codex: call installation e_comet_diagnose with safe_probes and codex_mcp_auth. Cowork: call ListConnectors. Apply the connector rules below. |
| Both present | Tools are visible in this task | Continue with the numbered steps below. |
The extension connects through the local MCP. When the local MCP is absent, first resolve that host route; extension checks cannot explain the missing local tools.
Typed-result cases
The host-neutral cases (BRIDGE_* causes, extension not installed, disabled or not activated, account mismatch,
WB_NOT_AUTHENTICATED, SELLER_LOGIN_REQUIRED, BROWSER_JOB_HANDOFF_REQUIRED, OZON_ROUTE_NOT_READY), the
extension rules, the answer order, plain examples and common mistakes are in
TROUBLESHOOTING.md: read it before concluding, and give its action when a row
matches. Its owner rule decides the report: a cause owned by the user or an administrator ends with the action and no
report unless the action did not help; one owned by e-Comet gets a report. The rows below add the actions only this
host has. A user prerequisite is not a bug report; retryDisposition governs repeats.
Only for BRIDGE_HOST_START_FAILED whose message does not name ComSpec, or for BRIDGE_HOST_NOT_STARTED after the
e-Comet icon click did not help while the runtime extension_log check could not read the log, read
guided steps and follow them; nothing else sends you there.
Host cases
| Observed | Meaning | User action |
|---|---|---|
BROWSER_JOB_HANDOFF_REQUIRED, or Ozon OZON_AUTHORIZATION_REJECTED with "The trusted browser-job hook did not provide Ozon authorization." | The host hook did not provide the authorization: plugin hooks not trusted, disabled, changed after an update, or not run by the host in this task | Never repeat browser_job automatically. Codex: run installation hook_permissions; on disabled or review_required send the user to Settings → Plugins → Personal → e-Comet MCP Tools → Hooks to enable and trust all e-Comet handlers at once; on ready or not_checked say the cause is not established and offer a retry on the user's decision or a report. Cowork (local tools named mcp__remote-devices__...): the call lacked triggerUrl; pass trigger_url from the same browser_job result, unchanged, as triggerUrl and call the local tool once more, without a new browser_job. «Плагин не смог передать разрешение браузеру. Проверю настройки хуков e-Comet в Codex и скажу, что сделать.» Then, for a disabled or review-required handler: «Откройте Settings → Plugins → Personal → e-Comet MCP Tools → Hooks и разрешите сразу все хуки e-Comet, потом повторим.» |
Remote tools absent after search; Codex codex_mcp_auth not_logged_in, or Cowork installState other than connected | Codex configuration shows sign-in not completed; Cowork reports the connector not connected; firm wording only after a host authorization error | Codex: Settings → Plugins → e-Comet MCP Tools → server E-comet → Connect. «По настройкам Codex вход в e-Comet не выполнен: откройте настройки плагина и нажмите Connect у сервера E-comet.» Cowork: plugin card → Connectors → Connect. «Коннектор e-Comet не подключён: нажмите Connect в карточке плагина.» |
Cowork installState:"connected", enabledInChat:false | Connector connected but disabled for this chat | Ask the user to enable e-Comet for this chat; the exact control is an unverified UI detail, describe the action and name no control. «Коннектор e-Comet подключён, но выключен для этого чата: включите его в этом чате.» |
| Only remote tools after search | Basic installation, or a full one whose local MCP did not start | Ask which installation was intended (README: Базовая / Полная); for a full one use the README fallback. |
Hook denial HANDOFF_MISSING or HANDOFF_TOOL_MISMATCH | No authorization waited for this tool in this conversation | After a HANDOFF_MISSING from a local call made in the same parallel step as browser_job, retry the local tool alone once. Otherwise call browser_job once for the intended tool, then the local tool without authorization fields. |
Hook error HANDOFF_TOKEN_NOT_FOUND beside the browser_job result, then HANDOFF_MISSING | The hook found no authorization in the result the host handed it | Do not repeat browser_job; offer a report with the responseShape it names. |
Hook denial HANDOFF_EXPIRED | The waiting authorization outlived its 90 seconds | One fresh browser_job, then the local tool right away. |
Hook denial HANDOFF_MODEL_AUTHORIZATION or HANDOFF_INVALID_INPUT | The call itself carried triggerUrl or trigger_url, or arguments that are not an object; nothing was spent | Remove the field or fix the arguments and call the same local tool again, without a new browser_job. |
Hook denial HANDOFF_COPY_REQUIRED (Cowork) | The device call lacked triggerUrl, which the model passes itself in Cowork; nothing was spent | Pass trigger_url from the same browser_job result, unchanged, as triggerUrl and call the same local tool again, without a new browser_job. |
Hook denial HANDOFF_INVALID_ENTRY or HANDOFF_INVALID_TOKEN | The waiting authorization could not be read and is used up | One fresh browser_job, then the local tool; report if it repeats. |
Hook denial HANDOFF_INVALID_SESSION | The host's hook event carried no usable conversation identifier | Same check as HANDOFF_DATA_DIR_UNAVAILABLE; report if it persists. Never another browser_job for it. |
Hook denial HANDOFF_DATA_DIR_UNAVAILABLE | The host gave the hook no plugin storage | Check that the plugin is installed and its hooks run here (Codex: installation hook_permissions; Cowork: verify the plugin in Customize → Plugins → Yours and start a new task); report if it persists. |
Hook denial HANDOFF_STORAGE_ERROR | The hook could not use its storage | Follow the systemCode action in TROUBLESHOOTING (free space, or restore access to the plugin storage); Cowork: start a new task, report if it persists. Never another browser_job for it. |
Remote connector rules
Give the connector action in the first answer where its evidence appears. A firm authorization conclusion requires
a remote call's host authorization error or a
host system notice naming authorization. Say e-Comet is not authorized and ask the user to connect the remote
connector; until then analytics, live data and reports are unavailable. Cowork ListConnectors.installState other
than connected supports the distinct conclusion that its connector is not connected, with the Connect action.
Codex facts.status:"not_logged_in" supports the qualified wording "According to the
Codex configuration, e-Comet sign-in was not completed" with the same action. credentials_present proves only
stored credentials: call info if available, and let its host authorization error outrank the snapshot. missing,
ambiguous, unknown_status, and not_checked support no authorization claim. Without stronger
evidence, say only that remote tools are not visible and check whether the connector is connected and authorized.
In Cowork installState:"connected" with enabledInChat:false means connected but disabled for this chat. Ask the
user to enable it for this chat, not to sign in; the per-chat control has no verified label, so describe the action
and name no control. Cowork's Connect action is on the plugin card under Connectors (or
the Connect button on the connectors card). Codex in ChatGPT Desktop: Settings → Plugins → e-Comet MCP Tools →
server E-comet → Connect. Do not give a CLI command as the user's Desktop action. Before concluding that the
remote server is down or answering about a particular organization, call info when available: inspect subscription
tier and expiry, and that organization's read flag. An expired subscription or absent readable organization is a
specific observation, not a server-down diagnosis. A stored-credentials snapshot or a host connected status
before a real call does not establish that the call will succeed.
Only when remote tools fail with an observed network error while local tools work, suggest checking the host's
network permission as a candidate: Allow network egress in Cowork, Allow network access in Codex. Neither
permission is a diagnosed cause from tool absence alone.
For feedback sending or feedback-specific recovery, call describe_e_comet_tool({name:"prepare_e_comet_feedback"}) once and follow the returned contract before feedback preparation.
- For a host launch or bootstrap failure, use the independent public fallback. If Node can run the packaged file, collect exactly one
node mcp/src/doctor.mjs --jsonresult. Doctor covers only that Node execution plane. - For current local runtime facts, the agent calls
local_bridge_status.ok:truemeans the response was produced, not that the product is healthy. - The agent calls
e_comet_diagnosewith the narrowest scope for installation evidence, runtime extension context, or an exact operation receipt. Installation probes arestorage_write,extension_install, and, only for an observed Codex host,hook_permissionsandcodex_mcp_auth; under any other client those two answerunsupported. The runtime probes areextension_snapshot, which asks a connected extension, andextension_log, which reads the extension's own connection log from the browser profile when no connector answers; neither proves a connection. All requiresafe_probes. Repeating a passive read does not guarantee a more specific cause. After the user's step, run the runtimeextension_logprobe, then readcodefromlocal_bridge_status, or repeat the request that failed. - Read DIAGNOSTICS.md for exact field and enum meanings and TROUBLESHOOTING.md for the typed-result cases. After the host is observed, read only Codex or Claude.
BROWSER_JOB_HANDOFF_REQUIRED, or the Ozon message about the hook not providing authorization, is the symptom that the hooks did not provide the authorization: on an observed Codex host run hook_permissions before anything else, never repeat browser_job, and read the DIAGNOSTICS.md section Missing authorization handoff. A successful Codex hook_permissions result is a configuration snapshot for the checked installation context, not proof that a hook ran in this task. ready means all expected native handlers are enabled and trusted. disabled means at least one trusted handler is off. review_required means at least one handler is new or changed and awaits review. Name the affected safe handler roles. A not_checked result with facts.context:"configuration_probe" means the bounded inspector failed before a hook inventory was available; use its closed failure.reason and failure.phase as probe evidence, and do not describe hooks as missing, disabled, or untrusted. For observed ChatGPT Desktop with Codex, direct the user to Settings → Plugins → Personal → e-Comet MCP Tools → Hooks only when a snapshot observed a disabled or review-required handler, and ask to enable and trust all e-Comet handlers in one pass, not only the affected ones: these are the e-Comet plugin's own handlers, and Codex asks to trust them again after the plugin is installed or updated (the README step is Trust all). For observed Codex CLI, use /hooks for the corresponding observed action with the same explanation. Do not expose paths, commands, hashes, or raw inspector errors. Do not use a local Codex snapshot to explain Claude Code or Cowork. Missing native hook context is unavailable evidence; missing Cowork cloud context is not device evidence.


