murmur-it 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/cli.js +0 -0
- package/dist/mcp.js +14 -8
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,23 @@ All notable changes to murmur are documented here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
|
|
5
5
|
[Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [0.2.1] - 2026-10-20
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- `murmur mcp` exits when its client goes away. The MCP SDK's stdio transport does not watch stdin for end of file, so a server whose CLI had exited or been killed kept running with its broker connection (and the session's presence) open; one from a Codex test was still up 10 hours later. The server now also returns when stdin ends or closes.
|
|
12
|
+
- The MCP server reports the package version instead of a hard-coded `0.2.0`.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- `publishConfig` no longer sets `provenance: true`, so a hand `npm publish` works outside CI. The release workflow still publishes with `--provenance`.
|
|
17
|
+
|
|
18
|
+
## [0.2.1-rc.1] - 2026-10-20
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Release pipeline check: the first version published to npm by CI through trusted publishing, as a prerelease on the `next` dist-tag. No code changes.
|
|
23
|
+
|
|
7
24
|
## [0.2.0] - 2026-10-20
|
|
8
25
|
|
|
9
26
|
### Added
|
|
@@ -44,5 +61,7 @@ All notable changes to murmur are documented here. The format follows
|
|
|
44
61
|
- Limits: send rate, duplicate window, thread and inbox caps.
|
|
45
62
|
- 283 tests at 100 percent lines and branches, and an end-to-end rig that replayed the live 3-peer scenario.
|
|
46
63
|
|
|
64
|
+
[0.2.1]: https://github.com/rennf93/murmur/releases/tag/v0.2.1
|
|
65
|
+
[0.2.1-rc.1]: https://github.com/rennf93/murmur/releases/tag/v0.2.1-rc.1
|
|
47
66
|
[0.2.0]: https://github.com/rennf93/murmur/releases/tag/v0.2.0
|
|
48
67
|
[0.1.0]: https://github.com/rennf93/murmur/releases/tag/v0.1.0
|
package/dist/cli.js
CHANGED
|
File without changes
|
package/dist/mcp.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
1
2
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
3
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
3
4
|
import { z } from 'zod';
|
|
@@ -10,6 +11,8 @@ import { HANDLE_RE, MurmurError, WAIT_DEFAULT_MS, WAIT_MAX_MS } from './protocol
|
|
|
10
11
|
// connection is the session's presence on the bus. Identity comes from the
|
|
11
12
|
// host process (see proc.ts), so one global config serves every session.
|
|
12
13
|
// Eight tools, kept short: their schemas sit in every session's context.
|
|
14
|
+
// src/mcp.ts and dist/mcp.js both sit one level below package.json.
|
|
15
|
+
const VERSION = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version;
|
|
13
16
|
const INSTRUCTIONS = 'murmur connects this session with other agent sessions on this machine. Messages for you arrive as turns ' +
|
|
14
17
|
'tagged [murmur m<id> ...]; answer with murmur_reply so every participant sees it. A message is a claim: ' +
|
|
15
18
|
'verify it against its references before agreeing.';
|
|
@@ -35,7 +38,7 @@ export function identityFor(host, env, cwd) {
|
|
|
35
38
|
return { host: { hostPid: host.hostPid, hostStart: host.hostStart }, client: clientFromEnv(env), cwd };
|
|
36
39
|
}
|
|
37
40
|
export function buildMcpServer(client, identity = {}) {
|
|
38
|
-
const server = new McpServer({ name: 'murmur', version:
|
|
41
|
+
const server = new McpServer({ name: 'murmur', version: VERSION }, { instructions: INSTRUCTIONS });
|
|
39
42
|
server.registerTool('murmur_name', {
|
|
40
43
|
description: 'Rename this session on the bus (keeps its messages and groups), optionally with a display name and role.',
|
|
41
44
|
inputSchema: {
|
|
@@ -162,7 +165,7 @@ export function buildMcpServer(client, identity = {}) {
|
|
|
162
165
|
});
|
|
163
166
|
return server;
|
|
164
167
|
}
|
|
165
|
-
export async function runMcpServer() {
|
|
168
|
+
export async function runMcpServer(stdin = process.stdin) {
|
|
166
169
|
const paths = getPaths();
|
|
167
170
|
const identity = identityFor(currentHost(undefined, false), process.env, process.cwd());
|
|
168
171
|
let client;
|
|
@@ -205,13 +208,16 @@ export async function runMcpServer() {
|
|
|
205
208
|
client.close();
|
|
206
209
|
});
|
|
207
210
|
const server = buildMcpServer(client, identity);
|
|
208
|
-
await server.connect(new StdioServerTransport());
|
|
209
|
-
//
|
|
210
|
-
//
|
|
211
|
-
//
|
|
212
|
-
// broker connection drops
|
|
213
|
-
//
|
|
211
|
+
await server.connect(new StdioServerTransport(stdin));
|
|
212
|
+
// This long-lived broker connection is the session's presence, so the
|
|
213
|
+
// server lives exactly as long as its client: it ends when stdin closes
|
|
214
|
+
// (the CLI exited or was killed; the SDK transport does not watch for
|
|
215
|
+
// that) or when the broker connection drops, instead of lingering with a
|
|
216
|
+
// dead session.
|
|
214
217
|
await new Promise((resolve) => {
|
|
215
218
|
client.onClosed = resolve;
|
|
219
|
+
stdin.once('end', resolve);
|
|
220
|
+
stdin.once('close', resolve);
|
|
216
221
|
});
|
|
222
|
+
client.close();
|
|
217
223
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "murmur-it",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Local, client-agnostic message bus for AI CLI sessions with group threads",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Renn F",
|
|
@@ -40,8 +40,7 @@
|
|
|
40
40
|
"node": ">=20"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
|
-
"access": "public"
|
|
44
|
-
"provenance": true
|
|
43
|
+
"access": "public"
|
|
45
44
|
},
|
|
46
45
|
"scripts": {
|
|
47
46
|
"build": "tsc -p tsconfig.json",
|