Repository navigation
fix(mcp): recognise the current BTrace client's busy-port error - #18
Merged
Merged
Conversation
The BTrace client now says "Port N is in use by another process ... choose a free agent port with -p <port>" instead of "Port N unavailable". The MCP server matched only the old wording, so a busy port reached the user with advice about a CLI flag that means nothing over MCP, and the e2e test for it failed. Both wordings now give the same message, naming the 'port' argument. Verified: the new BTraceClientTest case fails without the change. ./gradlew test: 32 tests, 0 failed. e2eTest against the current BTrace 3.0.0-SNAPSHOT jar: 13 tests, 0 failed, aBusyPortIsReportedWithTheArgumentThatAvoidsIt included. validate-marketplace passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jbachorik
added a commit
that referenced
this pull request
Nov 2, 2026
…b5-b13 main landed the same busy-port fix (#18) as b88819e, so BTraceClient and BTraceClientTest take main's version. The fake Client keeps this branch's laterOutputSent latch, which the detach test needs, plus main's comment. Verified: ./gradlew clean test e2eTest: 32 unit and 13 e2e tests, 0 failed. validate-repository, validate-evals (15 cases), check-tool-references and validate-marketplace pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What & why
The BTrace client changed its busy-port error, from
Port N unavailabletoPort N is in use by another process (often another BTrace agent); choose a free agent port with -p <port>. The MCP server matched only the old wording. As a result:-pflag, which means nothing over MCP.McpServerE2ETest.aBusyPortIsReportedWithTheArgumentThatAvoidsItfails against the current BTrace build. It currently fails fix(mcp): never report a probe stopped while it may still run #17'se2ejob, and will failmain's next e2e run.Both wordings now produce the same message,
Port N unavailable. Another BTrace agent or process is using it; pass a different 'port' argument.How verified
./gradlew test(mcp)./gradlew e2eTest -PbtraceJar=<btrace 3.0.0-SNAPSHOT>aBusyPortIsReportedWithTheArgumentThatAvoidsItincludedscripts/validate-marketplace.shCoverage notes
BTraceClientTestcase throws the current client's wording from the fake client. It checks that the message names the'port'argument and no longer mentions-p, and it fails without the change.Not verified / known limitations
None.
Breaking changes / migration
None.
Links
Unblocks the
e2ejob on #17.🤖 Generated with Claude Code