@relayburn/mcp 0.41.0 → 0.43.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +13 -15
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,39 +1,37 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to `@relayburn/mcp` will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
3
+ All notable changes to `@relayburn/mcp`.
7
4
 
8
5
  ## [Unreleased]
9
6
 
7
+ ## [0.43.0] - 2026-04-29
8
+
9
+ ### Changed
10
+
11
+ - Tighten changelog entries
12
+
10
13
  ## [0.33.0] - 2026-04-27
11
14
 
12
15
  ### Dependencies
13
16
 
14
- - Sync package.json versions to 0.32.0 to match npm
17
+ - Version sync only. No package behavior changed.
15
18
 
16
19
  ## [0.30.0] - 2026-04-27
17
20
 
18
21
  ### Changed
19
22
 
20
- - **`burn__sessionCost` and `burn__currentBlock` query the analytics archive on the hot path** ([#97](https://github.com/AgentWorkforce/burn/issues/97)). Both tool handlers now default to `queryTurnsFromArchive` (a single SQL query against `archive.sqlite`) instead of folding the entire JSONL ledger on every MCP call. Tool responses are equivalent to the pre-migration implementation within float-rounding tolerance for cost. Each call also runs an incremental `buildArchive()` first so turns appended to the JSONL ledger by hooks mid-session show up in the next tool response — the build is cursor-driven and a no-op when nothing has changed since the last call. If the archive cannot be opened or the query throws, both handlers transparently fall back to `queryAll` and emit a one-line note via the new `onLog` dependency hook (the CLI server wires this to stderr) so persistent breakage is visible without ever refusing to serve.
23
+ - `burn__sessionCost` and `burn__currentBlock` now read from `archive.sqlite` by default, build the archive before each query, and fall back to the JSONL ledger on archive failure.
21
24
 
22
25
  ## [0.18.0] - 2026-04-26
23
26
 
24
27
  ### Fixed
25
28
 
26
- - Fix reasoning-token pricing semantics, preserve models.dev reasoning tariffs (#32)
29
+ - Fixed reasoning-token pricing in MCP tool responses.
27
30
 
28
31
  ## [0.13.1] - 2026-04-25
29
32
 
30
33
  ### Added
31
34
 
32
- - Initial release: MCP (Model Context Protocol) stdio server exposing read-only burn ledger queries for in-session self-query by the running agent (#26).
33
- - `startStdioServer({sessionId?, tools?, ...})` minimal JSON-RPC 2.0 MCP server over stdio. No external SDK dependency.
34
- - `buildMcpConfig({sessionId, burnBin?})` — returns a JSON string for Claude Code's `--mcp-config` flag. Registers `burn mcp-server --session-id <id>` as the `burn` server.
35
- - Built-in tools:
36
- - `burn__sessionCost({ sessionId? })` — returns `{totalUSD, totalTokens, turnCount, models}` for the session. Session id defaults to the `--session-id` baked into the server at spawn time.
37
- - `burn__currentBlock({ sessionId? })` — returns the Claude OAuth-reported 5-hour `percentUsed` plus a locally-forecast `burnRateTokensPerMin`, `projectedBlockTotal`, and `minutesToReset` with a coarse `advice` label.
38
- - Read-only by construction: no MCP tool writes to the ledger.
39
-
35
+ - Initial release with a read-only stdio MCP server.
36
+ - Added `startStdioServer()` and `buildMcpConfig()`.
37
+ - Added `burn__sessionCost` and `burn__currentBlock` tools.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relayburn/mcp",
3
- "version": "0.41.0",
3
+ "version": "0.43.0",
4
4
  "description": "MCP (Model Context Protocol) server exposing read-only relayburn ledger queries for in-session self-query",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,9 +19,9 @@
19
19
  "node": ">=22"
20
20
  },
21
21
  "dependencies": {
22
- "@relayburn/reader": "0.41.0",
23
- "@relayburn/ledger": "0.41.0",
24
- "@relayburn/analyze": "0.41.0"
22
+ "@relayburn/reader": "0.43.0",
23
+ "@relayburn/analyze": "0.43.0",
24
+ "@relayburn/ledger": "0.43.0"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",