Skip to content

Release mcp/v0.31.0

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 15:43
mcp/v0.31.0
babef3e

[mcp/v0.31.0] - 2026-12-01

The MCP server, renamed jafar-mcp. It embeds shell-core and the parser unchanged since
mcp/v0.30.0 (no source change under shell-core/ or parser*/ since then); the jar's
Embedded-Modules manifest attribute names each embedded module and version.

Changed

  • The MCP server is jafar-mcp (it was jfr-mcp). It serves heap dumps, pprof and OTLP
    profiles and live JFR streams besides recordings, and "JFR MCP server" names a category, not this
    server. Renamed: the Maven artifact (io.btrace:jafar-mcp), the fat jar
    (jafar-mcp-<version>-all.jar), the installed command (jafar-mcp, jafar-mcp-dev), the JBang
    aliases (jafar-mcp@btraceio, jafar-mcp-latest@btraceio) and the installer's settings
    (JAFAR_MCP_DEV, JAFAR_MCP_DAEMON). Not renamed: the tool names (jfr_*, hdump_*,
    pprof_*, otlp_*), serverInfo.name (already jafar-mcp), the jafar-mcp.service and
    io.btrace.jafar-mcp units (they now run ~/.jbang/bin/jafar-mcp), and the module directory and
    Gradle project (jfr-mcp/, :jfr-mcp). Existing setups keep working: jfr-mcp@btraceio and
    jfr-mcp-latest@btraceio stay in the catalog as aliases of the new ones; the installer leaves
    jfr-mcp (jfr-mcp-dev) behind as a wrapper that runs jafar-mcp and says so on stderr only,
    stdout being the protocol stream in stdio mode; JFR_MCP_DEV and JFR_MCP_DAEMON are still read;
    and io.btrace:jfr-mcp is published from now on as a POM that relocates Maven and Gradle builds
    to io.btrace:jafar-mcp at the same version (releases up to 0.30.0 stay where they are). The
    migration table is in jfr-mcp/README.md, "Renamed from jfr-mcp"

Repository and build

  • The JBang catalog retry covers every plane (#339). sync-jbang-catalog.yml retried only
    the shell's entries, so an mcp or core release whose Maven Central sync outlasted
    release.yml's 10-minute wait never reached the catalog: 0.30.0's jfr-mcp alias and
    jfr-mcp-latest/jafar-tools-latest wrappers stayed at 0.29.0. The workflow now runs one job
    per plane, each with its plane's newest release (vX.Y.Z, mcp/vX.Y.Z, core/vX.Y.Z), its
    own Maven Central artifact and its own release age (from when the release was published), and
    files a "Maven Central sync failed" issue once per release, not on every run. The catalog edits
    are scripts/jbang-catalog.sh, shared with release.yml, and never move an entry down: an
    older line's release, or a catalog moved ahead by hand, is left as it is
  • install.sh --dev installs the development snapshot again (#348). jfr-mcp/install.sh
    (run by install.sh --dev and JFR_MCP_DEV=1) installed jfr-mcp-dev@btraceio, an alias the
    JBang catalog renamed to jfr-mcp-latest, and its Claude Desktop and Claude Code hints named it
    too. It now installs jfr-mcp-latest@btraceio as the jfr-mcp-dev command (jbang app install --name jfr-mcp-dev), so the command, the jafar-mcp-dev daemon unit and the stable jfr-mcp
    are as before, and the hints name jfr-mcp-latest@btraceio
  • Docs name the JBang aliases the catalog has (#349). The MCP docs ran jfr-mcp-dev@btraceio,
    an alias the catalog renamed to jfr-mcp-latest; the jfr-shell JBang guide pinned JitPack
    coordinates (io.github.btraceio:jfr-shell), ran a jfr-shell-latest alias and linked a
    jfr-shell.java that do not exist; the README opened a heap dump with jfr-shell, which reads
    JFR only (now jafar-shell, at the hdump> prompt). -Dmcp.port/-Dmcp.host were written after
    the alias or command, where JBang passes them to the server as arguments it ignores (the server
    stayed on port 3000): they now go before the alias (jbang -Dmcp.port=8080 jfr-mcp@btraceio), or
    in JAVA_TOOL_OPTIONS for an installed command; the MCP_PORT variable the docs named was never
    read. "Start on a different port" when a server is running is corrected: a running Jafar SSE
    server is reused (the new one prints its URL and exits) whatever the port; another port helps only
    when a different program holds it. doc/mcp/JBANGCatalogSetup.md describes the catalog as it is
  • A guardrail for the JBang commands users are told to run (#353). scripts/check-jbang-refs.sh
    fails when the docs, the installers or the shell's messages name an <alias>@btraceio or a
    btraceio/jbang-catalog file the live catalog does not have, or put a -D<property> after the
    alias or an installed command (jfr-mcp, jafar-shell, ...), where JBang passes it as a
    program argument; CI runs it in the guardrails job. On the docs
    before #349 it reported the 43 problems #349 fixed. Releasing now checks this, and runs the
    README's quick-start commands against the jars built from the release commit, before the tag
    (doc/agents/Release.md, the release-steward skill)
  • The Combined Test Report counts both JDKs (#352). The PR comment's total changed between
    identical runs (4036, then 4033, on #351): the JDK 8 and JDK 21 JUnit artifacts were downloaded
    into one directory, both hold TEST-io.jafar.parser.ClassDefinerTest.xml, and one copy replaced
    the other, or both were lost when the parallel downloads damaged the file, which the count skips.
    Each artifact now has its own directory, in the same-repo report (pr-tests.yml) and in the
    fork-PR comment (pr-results-comment.yml); the totals come from scripts/junit-totals.sh, the
    named failing set reads every artifact's directory, and prints nothing (not an empty line) when
    nothing failed, so the step summary no longer shows an empty block

🎉 Release 0.31.0 Published Successfully

This release has been published to:

  • ✅ Maven Central (Sonatype): io.btrace:jafar-parser:0.31.0, io.btrace:jafar-tools:0.31.0, io.btrace:jafar-shell:0.31.0, io.btrace:jafar-mcp:0.31.0, io.btrace:jafar-gradle-plugin:0.31.0
  • ✅ Maven Central - Backend Plugins: io.btrace:jfr-shell-jdk:0.31.0, io.btrace:jfr-shell-jafar:0.31.0
  • ✅ JBang Catalog: Updated to 0.31.0

Usage

Via JBang (recommended):

# Using catalog (always latest)
jbang jfr-shell@btraceio recording.jfr

# Version pinned (from Maven Central)
jbang io.btrace:jafar-shell:0.31.0 recording.jfr

# Install as command
jbang app install jfr-shell@btraceio
jfr-shell recording.jfr

Via Maven/Gradle:

<!-- Parser -->
<dependency>
  <groupId>io.btrace</groupId>
  <artifactId>jafar-parser</artifactId>
  <version>0.31.0</version>
</dependency>

<!-- JFR Shell -->
<dependency>
  <groupId>io.btrace</groupId>
  <artifactId>jafar-shell</artifactId>
  <version>0.31.0</version>
</dependency>

<!-- Jafar MCP Server (io.btrace:jfr-mcp relocates to it) -->
<dependency>
  <groupId>io.btrace</groupId>
  <artifactId>jafar-mcp</artifactId>
  <version>0.31.0</version>
</dependency>

Gradle Plugin:

plugins {
  id 'io.btrace.jafar-gradle-plugin' version '0.31.0'
}

Backend Plugins (for JFR Shell):

# Install JDK backend plugin
java -jar jfr-shell.jar --install-plugin io.btrace:jfr-shell-jdk:0.31.0

# Install Jafar backend plugin
java -jar jfr-shell.jar --install-plugin io.btrace:jfr-shell-jafar:0.31.0

# Use specific backend
java -jar jfr-shell.jar --backend jdk recording.jfr

Links