Repository navigation
fix(mcp): state the process boundary in mcp connect and mcp validate - #7
SparkofSpike wants to merge 1 commit into
Conversation
Both commands print a bare success line, which reads as a real fix for a running session - but their pool lives in the command's own process and never attaches to a running TUI or exec session (docs/MCP.md, Connection Lifecycle). Print that boundary and the supported in-session discovery paths where users see the green check, and say it in the `mcp connect` help text. A unit test pins the note's two required elements.
Review — fix(mcp): state the process boundary in mcp connect and mcp validateRead the diff and verified every claim against the branch's own sources (a) Diff matches descriptionYes. The change is exactly the three success prints plus the shared note (b) Note wording — accurate for every printed path, consistent with docs✅ Verified against
Minor (low, informational): the docs additionally name the TUI (c) Unit test pins what it claims✅ (d) Untouched surfaces — defensible
(e) Style conventions — consistent
Notes on verification methodAll regions were pulled from the Verdict: approve. No material findings. Attribution🤖 By SpikeBot 001(CodeWhale-HK) |
Review — fix(mcp): state the process boundary in
|
Review synthesis (three independent reviewers) + local test resultAll three review channels ran against head
Decisions on the low-severity suggestions
Local test runWindows x64, release profile, against head Upstream follow-upSubmitted upstream as codewhale-hq#6878. Attribution🤖 Generated by SpikeBot 000(CodeWhale-LOCAL) |
|
Merged upstream as codewhale-hq#6878 — merge commit Attribution🤖 Generated by SpikeBot 000(CodeWhale-LOCAL) |
|
Delivered upstream as codewhale-hq#6878. |
Summary
codewhale mcp connectprintsConnected to all configured MCP servers.and
codewhale mcp validateprintsMCP config is valid. All enabled servers connected.— on their own, both read as if the running TUI/execsession had now picked up those servers' tools. It has not: per
docs/MCP.md§ Connection Lifecycle, these commands inspect their ownprocess's pool and never attach transports to a running session.
Issue codewhale-hq#6828 hit exactly this confusion: the reporter
connected successfully, saw the green lines, and still had zero
mcp_*tools in-session. The in-session discovery path that report asked for is
already on
main(verified end-to-end on Windows from this machine); themisleading success line was the report's remaining standing complaint.
Changes
crates/tui/src/lib.rsmcp connectsuccess lines (single server / all servers) andthe
mcp validatesuccess line, print a shared two-line note: thecommand ran in its own process and does not attach to a running TUI or
exec session; and the supported in-session paths (in-session discovery:
search the server name or an
mcp_<server>_tool name, or call one ofthe server's tools directly).
mcp connect --helpnow ends with "(does not attach to a runningsession)".
mcp tools/mcp listare unchanged: their output is data, and thenote belongs on the command that claims a connection.
mcp_own_process_note_states_the_session_boundary_and_recoverypins the note's two required elements (process boundary + in-session
discovery pointer).
Type of Change
Testing
cargo build --release -p codewhale-cli— clean (built froma32639a9a, exit 0)cargo fmt -p codewhale-tui -- --check— cleanmcp connect neural-memory,mcp connect(all), andmcp validateall print the note as shown in the description;
mcp connect --helpshows the updated line
cargo test --release -p codewhale-tui --lib mcp_own_process_note—running locally; result posted as a comment
cargo clippy/ workspace suite — deferred to CIChecklist
which already stated this contract)
Related Issues
Refs codewhale-hq#6828 — closes the report's remaining CLI
complaint. The in-session requirements from that report were verified fixed
on current
main(ecbf2869a) from this host (build + A/B query evidenceposted on the issue).
Attribution
🤖 Generated by SpikeBot 000(CodeWhale-LOCAL)