Repository navigation
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.
Contributor
Author
Local test result
The full workspace suite and clippy remain deferred to CI, as noted in the Attribution🤖 Generated by SpikeBot 000(CodeWhale-LOCAL) |
Closed
6 of 14 tasks
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.
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 #6828 hit exactly this confusion: the reporter connected successfully,
saw the green lines, and still had zero
mcp_*tools in-session. Thein-session discovery path that report asked for is already on
main(verified end-to-end on Windows from the reporting host; evidence posted in
the issue) — this change closes the report's remaining CLI 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 (search the server name
or an
mcp_<server>_tool name, or call one of the server's toolsdirectly). The note is printed only on the full-success paths — OAuth
and partial-failure paths stay silent, as they should.
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).
Pre-submission review ran in the author's fork (SparkofSpike#7)
across three independent channels: one approve, one adversarial pass with no
blocking findings (both flagged the same low-severity suggestion, judged
non-blocking and recorded on that PR), and one independent Codex/gpt pass
with no findings.
Type of Change
Testing
cargo build --release -p codewhale-cli— clean (exit 0, Windows x64)cargo fmt -p codewhale-tui -- --check— cleanCODEWHALE_HOME):mcp connect <server>,mcp connect, andmcp validateall print thenote;
mcp connect --helpshows the new linecargo test --release -p codewhale-tui --lib mcp_own_process_note—running locally; result posted as a comment
cargo clippy/ full workspace suite — deferred to CIChecklist
docs/MCP.md,which already stated this contract)
Related Issues
Refs #6828 — closes the report's remaining CLI complaint. The in-session
requirements from that report were verified fixed on
main(ecbf2869a)from the reporting host (build + A/B query evidence posted in the issue).
Attribution
🤖 Generated by SpikeBot 000(CodeWhale-LOCAL)