Repository navigation
Description
Problem
MCP clients can list and send but cannot request a bounded explanation of discovery, SSH-return-route or receiver readiness failures through a reviewed diagnostic contract. Raw doctor output may contain more route/environment information than a shared MCP caller needs.
Proposed scope
Expose a narrowly scoped diagnostic tool around supported CLI checks. Separate local metadata inspection from explicitly permitted active connection probes and return sanitized structured findings.
Acceptance criteria
- Require explicit operator policy for diagnostic actions, destinations and permitted agents. Do not derive diagnostic authority from list/send permission or expand old policies silently.
- Enumerate supported checks and their effects. Metadata-only inspection must not automatically invoke SSH/network/native/version probes; active probes require separately explicit permission.
- Enforce bounded execution time, output/byte budgets, per-call probe limits and cancellation cleanup. Do not add continuous health monitoring, unbounded watch or automatic retries.
- Preserve exact destination/SSH/home allowlists. No arbitrary command, host, path, trusted SSH config, bind address, firewall or credential overrides.
- Return only reviewed safe summary fields. Keep raw logs, native transcripts, message contents, keys, fingerprint material and private topology/path details out of model-visible output unless a separately reviewed policy explicitly permits a narrow field.
- Distinguish configuration/discovery readiness, TCP accept, TLS, peer authentication, native submission and ACK. Missing older-version fields mean unknown, not false or success.
- Diagnostic success is not send authorization, effective-storage attestation, guaranteed return path, native consumption or ACK.
- No install/update, service restart, pairing mutation, firewall/ACL change, policy rewrite or fallback route is performed.
- Add installed stdio, policy, malformed/partial-result, timeout/cancellation, non-reflection and zero-submission fixtures. Retain current POSIX versus Windows cleanup limits.
Related work
Depends on the destination/capability contract and coordinates safe refusal/explanation fields with MCP preflight. Reuse doctor/readiness semantics, including #341/#342 diagnostics; do not reopen those completed changes or infer live acceptance.
Source: MCP guide, doctor/readiness implementation.
Planning
Proposed v1.4.0 candidate, priority P2; no committed date. Registration does not authorize active live probes, implementation, merge, release or operational changes.
Tracking dependencies
Depends on #356; coordinate structured refusal/explanation output with #357. Active probes require explicit diagnostic policy, not authority inferred from either tool's successful output.
Activity
abruption commentedon Nov 2, 2026
Implementation prepared in PR #363, stacked after #362. Initial diagnostic execution deliberately covers only forward/local doctor checks of allowed agents and the selected Codex home. Reverse SSH probing is excluded: it needs a separately reviewed operator-owned return-route allowlist, not a model-provided reply host. TCP/TLS/paired-device authentication and per-target readiness remain not_checked; forward SSH failures expose only fixed categories. This boundary is explicit in the PR/docs and does not complete any broader reverse-route or native acceptance gate. Paired CLI/translation review and current CI are recorded; no merge/publication/operations.
abruption commentedon Nov 2, 2026
Verified on 2026-11-03 against published v1.4.0, source
476c67e636ef02cb93797dd2f42252dfe577625f. The exact main CI passed all 37 jobs (including the 12 Mac/Linux MCP SDK/version cells), and publication/PyPI verification passed all 6 jobs. This completion audit is a source/test/contract review, not a new native/SSH/model/ACK experiment.Implementation: PR #363, merge
7f85cb12cf6661db2facd5d74b2b31d7ee8514bd.Complete for the explicitly published forward/local diagnostic scope: separate metadata/active permissions, selected-agent/home collection, finite time/pipe/result budgets, sanitized failures and cancellation cleanup. ok means collection completeness. Reverse-route probing, per-target readiness, TCP/TLS, paired-device authentication, consumption and ACK remain not_checked; Windows active diagnostics remain unsupported. Closing does not claim those excluded capabilities. A future reverse-route feature would require its own operator-owned allowlist design.
Closing as completed for the shipped scoped contract; Long-term native identity/storage, handoff and integration research remain separate.
abruption commentedon Nov 14, 2026
Follow-up evaluation: per-target capabilities and versions (2026-11-14)
The owner's sequential MCP investigation evaluated whether to add a separate target-profile tool. No separate stable-feature issue/tool is being scheduled for this proposal. Existing
list_destinations, metadata diagnostics and preflight already cover policy permissions and adapter declarations; the prototype added no verified live-target support facts.Eight contract tests and one real MCP stdio test passed on Mac/Python 3.13.7/MCP 2.3.0 and on KR Linux/Python 3.12.3 with MCP 1.30.0 and 2.3.0. Controlled version-child tests stayed synthetic. Separate Mac
--versionobservations returned Codex 0.169.0, Claude Code 2.1.325 and Antigravity 1.5.9; those describe local PATH-selected executables only. They were never attributed to a remote destination or running target owner.Claude Opus 5.5 and Gemini 4 Argon Medium independently recommended deferring a separate profile API: policy, adapter declarations, server package version, destination runtime, selected executable and live owner version must remain separate. A version alone establishes neither feature availability, readiness, caller identity, generation nor ACK. Future version probing needs an explicitly reviewed operator permission and route-bound provenance; existing default/v1 or diagnostics permissions must not silently gain subprocess execution. No arbitrary executable/home path should be accepted from a model. Server-package metadata without a probe may be considered within existing diagnostics if a concrete use case arises.
Native-tool version research also found the exact name
codex_tui.list_threads: initial stable source inclusion at 0.150.0; embedded task-tool enablement at 0.167.0. These are topology-qualified source/tag findings, not old-binary execution or a blanket compatibility floor. The reviewed 0.150–0.167 paths enforce topology/namespace/managed-MCP/protocol/cloud conditions; newer installations need their own actual tool-presence checks. MCP startup in 0.150 is local-daemon/local-environment conditional, while other non-embedded paths may use dynamic tools; 0.167 adds the local embedded startup path.This records a design decision, not a new implemented API, supported version matrix, live session/remote probe, publication or operations change. Existing #358 remains closed.
A focused follow-up by the same reviewers checked positive startup-path source evidence and the Linux outcomes (input SHA-256
bf52afa15c1cf7da87b72a80defd8787c4e7e20416c57be63728f9c5753226d5). The host-provided tool catalog and local executable version were observed separately; no server-build binding or old-binary live validation is claimed.Tracking:
MCP-FEASIBILITY-20261114.