Harden launch/doctor MCP readiness gates with async execution, typed outcomes, and portable docs - #57
Merged
Conversation
Co-authored-by: clduab11 <185000089+clduab11@users.noreply.github.com>
Co-authored-by: clduab11 <185000089+clduab11@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Plan and chunk 1 start [PAP-17]
Harden launch/doctor MCP readiness gates with async execution, typed outcomes, and portable docs
Feb 24, 2026
clduab11
marked this pull request as ready for review
February 24, 2026 15:52
Codex PR ReviewFindings
Suggested Fixes
MCP Usage
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses review feedback on the launch/doctor readiness flow by verifying each finding against current code and applying only required fixes. The updates focus on making MCP gate behavior deterministic, non-blocking, and failure-tolerant, while aligning docs/tests with actual CLI behavior.
CLI gate typing and flow hardening
launch.tsnow uses a dedicatedLaunchNextActionenum instead of string literals fornextAction.doctor.tsintroduces an exportedMCPProfileenum and derives default MCP profiles from it.doctor.tsnow catches per-profile failures (e.g., unknown profile) and emits a failedmcp.<profile>check instead of crashing.Non-blocking command/file operations
launch.ts/doctor.tswith asyncspawnwrappers (Promise<{status, stdout, stderr}>).awaitcommand execution (node ... --help,codex login status,codex mcp ...).fs/promises.access.loadEnvFile,bootstrapCliEnv) and updated CLI startup to await env loading.Typed error behavior for MCP/docker paths
parseCodexMcpNamesnow throwsBridgeError(ErrorCode.MCP_ERROR, ...)for unsupported JSON shapes.service-manager.tsnow returnsCodexSynapticErrorfrom compose start wrapping, with structured context (diagnosis/remediation/exit status/compose command/output/service/profile).dockerLoginwas refactored to asyncspawn('docker', ['login', registry])(no shell interpolation), and CLI caller now awaits it.Docs portability and JSON correctness
docs/guides/quick-start.mdlaunch JSON snippet was corrected to valid JSON.docs/uat/UAT_READINESS_TRACKER.mdabsolute local paths were replaced with repo-relative paths for portability.Targeted test alignment
registriesForProfilesin MCP failure-path tests.onTestFinished(...).DoctorReportfixture internally consistent (summaryaligned withchecks).🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.
Continue Tasks: ✅ 1 no changes — View all