Repository navigation
fix: make the agent plugins work from a clean install - #13
Merged
Merged
Conversation
The server depends on io.btrace:btrace:3.0.0-SNAPSHOT with no //REPOS, and JBang searches only Maven Central, so it could not start for a new user. It stayed hidden on machines with the artifact in ~/.m2 and in CI, which sets BTRACE_JAR. Add the Central snapshots repository and fail repository validation when a snapshot //DEPS has no snapshot //REPOS. Verified: JBang with empty JBANG_DIR and JBANG_REPO answers tools/list with 9 tools; removing the line fails validate-repository.js; gradlew test 31 passed, e2eTest 13 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude Code names plugin tools mcp__plugin_<plugin>_<server>__<tool>, so allowlists using mcp__jafar__ and mcp__jfr-mcp__ matched nothing and subagents ran without MCP tools. Use the qualified names, validate them, use bare tool names in jfr-analyzer prose, and let the specialists open and close a recording when invoked directly. check-tool-references.js missed hyphenated names and all subskills. Widening it exposed pprof_stackprofile and otlp_stackprofile, which the server does not have, so triage now skips that step for pprof and OTLP, and drilldown uses otlp_flamegraph and otlp_query. Verified: cpu-analyst, perf-lead and jfr-analyzer:perf-engineer called MCP tools in claude -p, and perf-lead dispatched cpu-analyst; check-tool-references.js reports all 37 referenced tools exist; validate-marketplace.sh passed. Not tested on Codex or Pi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pi reads only extensions, skills, prompts and themes from a package manifest, so the pi.mcp key had no effect and no server was registered. Replace it with an extension that registers jafar and btrace. Verified: after pi install in a fresh agent directory, a logging jbang wrapper recorded Pi starting both servers with the expected arguments. Not verified in a live model session, because Pi has no API key here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reflection wrapped client exceptions in an InvocationTargetException with a null message, so a second JVM on the default port failed with 'Error deploying oneliner: null'. Unwrap the cause, name the port argument when the port is busy, and always return a non-null message. Verified: with two live JVMs the second gets the new error on deploy_oneliner and list_probes, and port 2021 deploys; new unit and e2e cases pass; gradlew test 31 passed, e2eTest 13 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The e2e job sets BTRACE_JAR, so it passed while the server could not start for a new user. Add a step that starts the server with empty JBang directories and checks tools/list. Verified: the same handshake against empty JBang directories locally returns the tools/list response; the step itself runs for the first time on this PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jbachorik
marked this pull request as ready for review
October 31, 2026 21:32
jbachorik
added a commit
that referenced
this pull request
Oct 31, 2026
Verifying the page found steps that fail when pasted and stale details. Codex now gets a working path and install command; Pi describes the MCP servers registered by #13; JBang and async-profiler needs are stated; jafar-perf and btrace-development cards match the plugins; the footer links to btrace.io; and skill rows no longer overflow on phones. Verified: the same edits rendered locally with no console errors, and the phone page width went from 441px to 375px. 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
Verifying https://btrace.io/agent-plugins/ found four high-priority bugs, fixed here one per commit, plus a CI step:
//DEPSwithout a snapshot//REPOS.mcp__plugin_<plugin>_<server>__<tool>, and validation enforces it. Specialists can open and close a recording when invoked directly.pi.mcpkey. An extension now registersjafarandbtrace. The alternative, documenting manualpi mcp add, would leave skills without tools after install.Error deploying oneliner: null. Client exceptions are now unwrapped and the message names theportargument. Automatic free-port selection was left out.BTRACE_JARhides resolution failures.Widening
check-tool-references.jsto hyphenated names and subskills also exposedpprof_stackprofileandotlp_stackprofile, which the server does not have.jfr-analyzerno longer calls them.How verified
./gradlew clean test e2eTestBUILD SUCCESSFUL; unit 31 tests, 0 failed; e2e 13 tests, 0 failednode scripts/validate-repository.jsRepository consistency valid: 5 plugins, 31 skillsnode scripts/check-tool-references.jsOK: all 37 referenced tools exist on the server.scripts/validate-marketplace.shMarketplace validation passed.tools/listreturned 9 toolscpu-analyst,perf-lead,jfr-analyzer:perf-engineerinclaude -pperf-leaddispatchedcpu-analystpi install, loggingjbangwrapperdeploy_onelinerandlist_probes;port: 2021deploysCoverage notes
New unit tests cover the busy-port and no-message errors, and a new e2e case covers a busy port on a fresh JVM. The Pi extension has no automated test. Evals were not run.
Not verified / known limitations
pisession calling the tools would verify it.allowed-toolsnames: not tested on either host.3.0.0-SNAPSHOT, so a bad snapshot can break new installs, and the new CI step depends on the published snapshot.Draft because of the first three items. Running those checks, or accepting them as known gaps, flips it to ready.
Breaking changes / migration
None. A
jafarorbtraceserver in a Pi user'smcp.jsontakes precedence over the extension's.Links
The
gh-pagesupdate follows this merge, because its Pi text describes the new extension.🤖 Generated with Claude Code