@agledger/mcp-server 2.4.0 → 2.4.2
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 +41 -0
- package/README.md +7 -7
- package/dist/verify/verify-export.d.ts +1 -1
- package/dist/verify/verify-export.d.ts.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,47 @@ 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.2] - 2026-05-27
|
|
8
|
+
|
|
9
|
+
Tracks AGLedger API v0.25.5 (Verify → Gate rename). The MCP server is a thin pass-through, so the renamed routes (`/outcome` → `/verdict`, `/verify` → `/evaluate`, `/verification-status` → `/gate-status`) reach the `agledger_api` tool automatically — no functional change. `agledger_verify` (offline COSE_Sign1 audit verification) is cryptographic and unchanged.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- README: the Verdicts capability is now described as accept/reject (was PASS/FAIL).
|
|
14
|
+
|
|
15
|
+
## [2.4.1] - 2026-05-21
|
|
16
|
+
|
|
17
|
+
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:
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Offline verifier (`agledger_verify`): `RecordAuditExport.exportMetadata.enterpriseId` → `orgId` to match v0.24.0 export shape.
|
|
22
|
+
- Integration test fixtures: `/v1/records/{id}/receipts` → `/v1/records/{id}/completions` (vocab cutover leftover from v0.23.0).
|
|
23
|
+
|
|
24
|
+
## [2.4.0] - 2026-05-19
|
|
25
|
+
|
|
26
|
+
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.
|
|
27
|
+
|
|
28
|
+
### Changed (BREAKING — `agledger_verify` tool: format 1.0 → 2.0)
|
|
29
|
+
|
|
30
|
+
- `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.
|
|
31
|
+
- Tool description updated to mention COSE_Sign1 + `Sig_structure` reconstruction + the new failure modes (`cose_decode_failed`, `cose_header_mismatch`).
|
|
32
|
+
- 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.
|
|
33
|
+
- New `chainIntegrityReason: "payload_drift"` — emitted when the visible `payload` jsonb diverges from the predicate signed in `coseSign1` (privileged-DBA-bypass tamper detection).
|
|
34
|
+
- 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`.
|
|
35
|
+
- 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`).
|
|
36
|
+
|
|
37
|
+
### Changed (text only — Receipt → Completion alignment)
|
|
38
|
+
|
|
39
|
+
- `agledger_discover` quickstart step 4: "Do your work, then submit a receipt" → "submit a completion"; path `/v1/records/{id}/receipts` → `/v1/records/{id}/completions`.
|
|
40
|
+
- `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".
|
|
41
|
+
|
|
42
|
+
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`.
|
|
43
|
+
|
|
44
|
+
### Tests
|
|
45
|
+
|
|
46
|
+
- 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.
|
|
47
|
+
|
|
7
48
|
## [2.3.3] - 2026-05-06
|
|
8
49
|
|
|
9
50
|
### 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,
|
|
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
|
|
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}/
|
|
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
|
-
- **
|
|
74
|
-
- **Verdicts** -- principal acceptance decisions (
|
|
75
|
-
- **Audit trail** -- hash-chained, Ed25519-signed, tamper-evident
|
|
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
|
+
- **Verdicts** -- principal acceptance decisions (accept/reject) with settlement signals
|
|
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
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-export.d.ts","sourceRoot":"","sources":["../../src/verify/verify-export.ts"],"names":[],"m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MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACzF;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAKD,wBAAgB,YAAY,CAC1B,UAAU,EAAE,iBAAiB,EAC7B,OAAO,GAAE,mBAAwB,GAChC,kBAAkB,CA2CpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agledger/mcp-server",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
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": ">=
|
|
54
|
+
"node": ">=24.0.0"
|
|
55
55
|
}
|
|
56
56
|
}
|