Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ release that first shipped the module.

### Documented

- **The MCP and workspace CLI quick starts now show the JBang commands for
Maven Central.** Each command selects the entry point in release `0.1.2`.

- **The Kotlin and Scala quick starts now run as standalone programs.** Each
includes its build file and starts a private tmux session using the
published libraries. (#203)
Expand Down
18 changes: 18 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,24 @@ questions.
So on the `0.1.N` line, while `0.1.2` is being prepared, `libtmuxVersion` is
`0.1.2-SNAPSHOT` and `libtmuxApiBaseline` is `0.1.1`.

### Run the published launchers

After the Central release is visible, set `version` to the version just
published. Check that JBang selects each entry point in a headless shell:

```console
$ jbang run "io.github.libtmux:libtmux-workspace-cli:$version" --help \
</dev/null
```

```console
$ jbang run "io.github.libtmux:libtmux-mcp:$version" </dev/null
```

The CLI prints its help. The MCP server consumes EOF and exits successfully.
A main-class chooser on either path means a headless client cannot start the
published artifact using its coordinate alone.

### The changelogs

The root `CHANGELOG.md` and the `CHANGELOG.md` of each published module are
Expand Down
15 changes: 13 additions & 2 deletions libtmux-mcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,19 @@ panes](#find-your-way-and-read-panes) · [Run a command](#run-a-command-and-wait

## Quick start

Build the launcher. An MCP client starts it as a subprocess and speaks JSON-RPC
over its stdin and stdout, so there is nothing to keep running:
With JDK 25 or newer, JBang can run the published MCP server from Maven
Central. Release `0.1.2` needs the entry point on the command line:

```console
$ jbang run --main io.github.libtmux.mcp.Main \
io.github.libtmux:libtmux-mcp:0.1.2
```

An MCP client sends JSON-RPC on this process's stdin and reads responses from
stdout. When configuring a client, use `jbang` as the command and pass `run`,
`--main`, the class, and the coordinate as separate arguments.

To build the launcher from a checkout:

```console
$ ./gradlew :libtmux-mcp:installDist
Expand Down
11 changes: 10 additions & 1 deletion libtmux-workspace-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,16 @@ leaves out](#what-it-leaves-out) · [Support and status](#support-and-status) ·

## Quick start

Build the launcher from the repository root and put its directory on `PATH`:
With JDK 25 or newer, ask the published CLI to print its help. JBang resolves
its dependencies from Maven Central. Release `0.1.2` needs an explicit main
class:

```console
$ jbang run --main io.github.libtmux.workspace.cli.Main \
io.github.libtmux:libtmux-workspace-cli:0.1.2 --help
```

To use the checkout's launcher, build it and put its directory on `PATH`:

```console
$ ./gradlew :libtmux-workspace-cli:installDist
Expand Down
Loading