Repository navigation
Description
Summary
Make libtmux-mcp and tmux-workspace runnable and installable with one JBang (repo, docs) command from their Maven Central coordinates, so an MCP client config needs no clone, no build, and no absolute path. Split out of #23.
Linux QA on November 30, 2026
With JBang 0.143.0 and Maven Central 0.1.2, each bare coordinate exited 2 in a headless shell and named one candidate. Both downloaded JARs lacked Main-Class. With explicit selection, the CLI printed help and the MCP server initialized, listed 41 tools, and returned the live marker session from the selected socket. The actual JARs matched the inspected artifact checksums.
jbang run --main io.github.libtmux.workspace.cli.Main io.github.libtmux:libtmux-workspace-cli:0.1.2 --help
jbang run --main io.github.libtmux.mcp.Main io.github.libtmux:libtmux-mcp:0.1.2The MCP invocation speaks stdio. The Main-Class change from #206 is on audited source. Both bare staged coordinates passed there. Recheck the bare coordinates against the next Central release before marking that part shipped. MCP manifest (audited trunk) · MCP manifest (v0.1.2) · Workspace manifest (audited trunk) · Workspace manifest (v0.1.2)
Motivation
The MCP server's README tells users to build it themselves and point their client at the result: ./gradlew :libtmux-mcp:installDist, then "command": "/absolute/path/to/libtmux-mcp" (README).
The published jar cannot be started by its coordinates alone: its manifest carries Automatic-Module-Name and no Main-Class (libtmux-mcp/build.gradle.kts). The application plugin's mainClass only reaches the start scripts, so jbang io.github.libtmux:libtmux-mcp:<version> needs an explicit --main. The CLI, published as libtmux-workspace-cli in #23, has the same gap.
Status on November 28
Both Maven Central 0.1.2 jars omit Main-Class. JBang 0.143.0 can open a desktop chooser when an MCP client invokes the bare coordinate. A headless invocation with --main io.github.libtmux.mcp.Main initialized the published server at 0.1.2, listed 41 tools and returned a session from an explicitly selected private socket. The workspace CLI printed help with --main io.github.libtmux.workspace.cli.Main. The MCP coordinate alone produced SLF4J provider warnings on stderr. Published MCP jar and POM · Published CLI jar and POM.
#206 adds the entry points to the two published manifests and checks the staged jars before release. With its staged coordinates, JBang ran both tools in headless mode without an explicit main class. The CLI printed help and the MCP server completed the same three protocol calls. The install aliases, JDK provisioning check, launcher logging dependency, documentation and catalog/release smoke tests remain outstanding.
Codex checked both released manifests and exercised the released and staged clients with JDK 25 and an isolated tmux socket.
Proposal
The invariants are the non-negotiable part; everything under intent is open.
Invariants
- The server's stdout stays protocol-only: no JBang progress output and no SLF4J provider warning reaches a client.
- An alias resolves exactly the version the release published.
- It works on a machine that has no JDK 25, since JBang provisions one.
Intent (non-binding)
- Put
Main-Classin both jars' manifests. - Add a root
jbang-catalog.jsonwith aliaseslibtmux-mcpandtmux-workspace. Each carries the main class andjava: 25+, andlibtmux-mcpalso carriesorg.slf4j:slf4j-nop, which today reaches only the launcher distribution. - Document installs in both READMEs, with client configs for Claude Code, Claude Desktop, Cursor, VS Code, Codex CLI and Gemini CLI, each using
jbang --quiet libtmux-mcp@libtmux/libtmux-java. - Have the release commit move the catalog's versions, with a docs test that ties them to
libtmuxVersionthe way the install blocks already are. - Have the release rehearsal launch both through JBang against the staged repository.
Not doing
- An org-wide
libtmux/jbang-catalog(alias@libtmux). It is possible later, if the ports want one catalog. - Coursier: see the evidence below.
Evidence at the original alpha revisions
What was run, with JBang 0.142.0 on Linux x64
The published alpha.14 and alpha.15 servers both answered initialize when started from Central coordinates:
jbang --quiet --main io.github.libtmux.mcp.Main io.github.libtmux:libtmux-mcp:0.0.1-alpha.15
A local catalog alias with main, dependencies: ["org.slf4j:slf4j-nop:2.0.17"] and java answered initialize with serverInfo version 0.0.1-alpha.15, and stderr carried only the server's own identity line.
jbang alias list quarkiverse/quarkus-mcp-servers lists that repository's root catalog, one alias per MCP server. jbang alias list jbangdev resolves the bare-owner form to jbangdev/jbang-catalog.
A dead end, recorded so nobody retries it: Coursier's JVM launcher (cs launch ... -M io.github.libtmux.mcp.Main) crashed on JDK 26 with AbstractMethodError inside its own cats dependency, before loading any libtmux class.
References
- JBang alias catalogs: root
jbang-catalog.json, thealias@owner/repogrammar, andalias@ownerresolving toowner/jbang-catalog - Root catalogs in practice: quarkiverse/quarkus-mcp-servers, which has one alias per MCP server, and apache/camel
Headless release check
The launcher draft gives both runnable release commands in their module READMEs. It also adds two checks to the release guide for the next Central publication. With staged artifacts, the bare workspace coordinate printed help with stdin closed. A separate bare MCP process consumed immediate EOF and exited 0. A second MCP process completed a handshake and returned the 41-tool catalog. A deliberately absent main class made JBang fail.
Activity