@agledger/mcp-server 2.4.0 → 2.4.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 CHANGED
@@ -4,6 +4,39 @@ All notable changes to the AGLedger MCP Server will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [2.4.1] - 2026-05-21
8
+
9
+ Tracks AGLedger API v0.24.0. MCP server is a thin pass-through, so the v0.24.0 rename sweep lands on `agledger_api` calls automatically. Internal updates:
10
+
11
+ ### Changed
12
+
13
+ - Offline verifier (`agledger_verify`): `RecordAuditExport.exportMetadata.enterpriseId` → `orgId` to match v0.24.0 export shape.
14
+ - Integration test fixtures: `/v1/records/{id}/receipts` → `/v1/records/{id}/completions` (vocab cutover leftover from v0.23.0).
15
+
16
+ ## [2.4.0] - 2026-05-19
17
+
18
+ Tracks AGLedger API v0.23.0. SCITT vocabulary alignment + canonical COSE_Sign1 chain envelope cutover. The MCP server is a thin pass-through, so most of the wave is API-side; the `agledger_verify` tool is rewritten to verify the new COSE_Sign1 envelope. Closes cross-repo issue agledger-agents#68.
19
+
20
+ ### Changed (BREAKING — `agledger_verify` tool: format 1.0 → 2.0)
21
+
22
+ - `agledger_verify` now decodes canonical COSE_Sign1 envelopes (RFC 9052, tag 18, EdDSA) over in-toto v1 Statement payloads, deterministic CBOR per RFC 8949 §4.2.1. Replaces the JCS + detached-Ed25519 verifier from 2.3.x.
23
+ - Tool description updated to mention COSE_Sign1 + `Sig_structure` reconstruction + the new failure modes (`cose_decode_failed`, `cose_header_mismatch`).
24
+ - The tool's `structuredContent` result now carries a `signatureCoverage` discriminator (`{ signed, unsigned, skipped, total }`). Agents should not conclude "Ed25519-verified" from `valid: true` alone — surface `signatureCoverage` or `integrityLevel` in their reports.
25
+ - New `chainIntegrityReason: "payload_drift"` — emitted when the visible `payload` jsonb diverges from the predicate signed in `coseSign1` (privileged-DBA-bypass tamper detection).
26
+ - Pre-1.0 export-format JSON (`exportFormatVersion: "1.0"`) is rejected with `unsupported_algorithm`. Re-export the chain from a v0.23.0+ engine. The MCP tool description tells the agent how to do this: `agledger_api method=GET path=/v1/records/{id}/audit-export`.
27
+ - The verifier picks up a `cborg` runtime dependency (only used by the offline-verifier path; the `agledger_discover` + `agledger_api` tools still use direct `fetch`).
28
+
29
+ ### Changed (text only — Receipt → Completion alignment)
30
+
31
+ - `agledger_discover` quickstart step 4: "Do your work, then submit a receipt" → "submit a completion"; path `/v1/records/{id}/receipts` → `/v1/records/{id}/completions`.
32
+ - `agledger_api` tool description: route example `/v1/records/{id}/receipts` → `/v1/records/{id}/completions`. Workflow line "POST /v1/records/{id}/receipts — submit evidence when done" → "POST /v1/records/{id}/completions — submit evidence when done".
33
+
34
+ The three-tool surface is unchanged: `agledger_discover`, `agledger_api`, `agledger_verify`. `agledger_api` is a pure HTTP pass-through, so the API-side renames (route paths, request/response field names, webhook event names, scopes) surface verbatim. Agents writing prompts that target `agledger_api method=POST path=/v1/records/{id}/receipts` need to update the path to `/v1/records/{id}/completions`.
35
+
36
+ ### Tests
37
+
38
+ - 127 tests pass. The `agledger_verify` test suite was rewritten with an in-test COSE_Sign1 envelope builder to cover the new failure modes (cose_decode_failed, cose_header_mismatch, payload_drift) without depending on engine-generated fixtures.
39
+
7
40
  ## [2.3.3] - 2026-05-06
8
41
 
9
42
  ### Fixed
package/README.md CHANGED
@@ -7,8 +7,8 @@ Connects any MCP-compatible AI agent (Claude, Cursor, Windsurf, etc.) to the AGL
7
7
  **Learn more**
8
8
 
9
9
  - [agledger.ai](https://agledger.ai) — what AGLedger is and why Layer 3 accountability matters
10
- - [How it works](https://agledger.ai/how-it-works) — the four-endpoint lifecycle: record, receipt, verdict, fulfill
11
- - [Glossary](https://agledger.ai/glossary) — canonical definitions of Record, Receipt, Verdict, Settlement Signal
10
+ - [How it works](https://agledger.ai/how-it-works) — the four-endpoint lifecycle: record, completion, verdict, fulfill
11
+ - [Glossary](https://agledger.ai/glossary) — canonical definitions of Record, Completion, SCITT Receipt, Verdict, Settlement Signal
12
12
  - [MCP Server guide](https://agledger.ai/docs/guides/mcp-server) — installation and agent workflow
13
13
  - [Protocol (AOAP)](https://agledger.ai/protocol) — the coordination language behind AGLedger
14
14
 
@@ -45,7 +45,7 @@ agledger-mcp --api-key <key> [--api-url <url>]
45
45
  |------|-------------|
46
46
  | `agledger_discover` | Returns API health, your identity, available scopes, and a quickstart workflow. Call this first. |
47
47
  | `agledger_api` | Make any AGLedger API call (method, path, params). The API returns `nextSteps` on every response for self-guided workflow discovery. |
48
- | `agledger_verify` | Verify a record audit export offline (RFC 8785 hash chain + Ed25519 signatures). No network calls. Returns `valid`, `verifiedEntries`, and a `brokenAt` pointer on failure. |
48
+ | `agledger_verify` | Verify a record audit export offline (COSE_Sign1 envelopes per RFC 9052, hash chain + Ed25519 signatures). No network calls. Returns `valid`, `verifiedEntries`, and a `brokenAt` pointer on failure. |
49
49
 
50
50
  ### Agent workflow
51
51
 
@@ -54,7 +54,7 @@ The `agledger_discover` tool returns a quickstart workflow that guides agents th
54
54
  1. `GET /v1/schemas` -- list available Record types
55
55
  2. `GET /v1/schemas/{type}` -- get required fields and examples
56
56
  3. `POST /v1/records` -- create a record
57
- 4. `POST /v1/records/{id}/receipts` -- submit evidence when done
57
+ 4. `POST /v1/records/{id}/completions` -- submit a completion (evidence) when done
58
58
 
59
59
  Every API error response includes a `suggestion` field with actionable recovery guidance -- agents can self-correct without human intervention.
60
60
 
@@ -70,9 +70,9 @@ Every API error response includes a `suggestion` field with actionable recovery
70
70
  AGLedger is the accountability layer for automated operations. It records what was agreed to, by whom, when -- and tracks the delegation of that agreement through other systems.
71
71
 
72
72
  - **Records** -- structured commitments with acceptance criteria and tolerance bands
73
- - **Receipts** -- task attestations recording what was reported to be done
73
+ - **Completions** -- performer evidence recording what was reported to be done (renamed from Receipts in 0.8.0 / SDK 0.8.0 to align with SCITT vocabulary)
74
74
  - **Verdicts** -- principal acceptance decisions (PASS/FAIL) with settlement signals
75
- - **Audit trail** -- hash-chained, Ed25519-signed, tamper-evident chain
75
+ - **Audit trail** -- COSE_Sign1 envelopes, hash-chained, Ed25519-signed, tamper-evident
76
76
 
77
77
  Learn more at [agledger.ai](https://www.agledger.ai) | [API docs](https://www.agledger.ai/docs/)
78
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agledger/mcp-server",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "AGLedger MCP Server — Thin API pass-through for AI agents via MCP protocol",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "AGLedger LLC",
@@ -51,6 +51,6 @@
51
51
  "zod": "^4.3.6"
52
52
  },
53
53
  "engines": {
54
- "node": ">=22.0.0"
54
+ "node": ">=24.0.0"
55
55
  }
56
56
  }