protect-mcp 0.9.4 → 0.9.5

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
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.5: replayable from scratch
4
+
5
+ The public demo film (legate.scopeblind.com/record) is now reproducible by
6
+ anyone in 60 seconds, and the CLI answers the first two commands every new
7
+ user types.
8
+
9
+ - **`sample`.** Seeds a clearly-labeled sample record (fresh Ed25519 keypair,
10
+ kid `sample-demo`): 8 decisions including one BLOCKED network call and two
11
+ payments ($0.02 x402-style per-call, $12.50 invoice), plus
12
+ `demo-tampered.jsonl` with one decision flipped after signing. The receipts
13
+ are real signed artifacts (same envelope and canonical-JSON preimage as the
14
+ gate's signer), so `record`, `claim --payment-under`, `verify-claim`, and
15
+ `anchor-record` work on the folder immediately. Refuses to touch an existing
16
+ record or signing key; `--force` overrides.
17
+ - **`--version` / `version` / `-V`.** Prints the installed version. Previously
18
+ these fell through to wrap-mode parsing and errored demanding a `--`
19
+ separator, which was the first thing many new users saw.
20
+ - **`help` word.** `npx protect-mcp help` prints usage (previously errored).
21
+ Help and version flags are now only recognized BEFORE the `--` separator, so
22
+ `protect-mcp -- node server.js --version` wraps that command as intended
23
+ instead of printing our help.
24
+
3
25
  ## 0.9.4: agent payments get receipts, records get heartbeats, anchors get names
4
26
 
5
27
  The provenance layer reaches the agentic economy's payment rails (x402), the
package/README.md CHANGED
@@ -185,6 +185,24 @@ npx protect-mcp claim --no net.egress --anchor
185
185
  This is an accountable, position-blind attestation, not full zero-knowledge: it
186
186
  reveals the shape, not the content.
187
187
 
188
+ ## Try it in 60 seconds (no agent required)
189
+
190
+ Watch the two-minute film at [legate.scopeblind.com/record](https://legate.scopeblind.com/record), then replay it against your own copy:
191
+
192
+ ```bash
193
+ npx protect-mcp sample # seed a labeled sample record (8 decisions: 1 blocked, 2 payments)
194
+ npx protect-mcp record # open it: signatures verified in your browser
195
+
196
+ npx protect-mcp claim --payment-under 100 --anchor --output payments-under-100.json
197
+ npx protect-mcp verify-claim payments-under-100.json
198
+ npx protect-mcp anchor-record
199
+ ```
200
+
201
+ Drop the generated `demo-tampered.jsonl` into the record page to watch a
202
+ post-signing edit get caught. `sample` refuses to touch an existing record, so
203
+ run it in an empty folder. When you are ready for the real thing, wire the gate
204
+ below and the same commands run against your agent's own record.
205
+
188
206
  ## Claude Code hook quickstart
189
207
 
190
208
  ```bash
@@ -368,6 +386,7 @@ To report a vulnerability, see [SECURITY.md](./SECURITY.md).
368
386
  |---------|-------------|
369
387
  | `serve` | Start the HTTP hook server for Claude Code (port 9377). `--enforce` runs the restraint self-test first; `--cedar <dir>` and `--policy <path>` select the policy. |
370
388
  | `init` | Generate an Ed25519 keypair (`keys/gateway.json`), a config template, and a sample policy. |
389
+ | `sample` | Seed a clearly-labeled sample record (8 decisions: one blocked call, two payments; kid `sample-demo`) plus a tampered copy, so `record`, `claim`, `verify-claim`, and `anchor-record` are replayable from scratch before wiring an agent. Refuses to touch an existing record; `--force` overrides. |
371
390
  | `wrap` | Print a protected MCP command or patch Claude Desktop MCP servers. Dry-run by default; use `--write` to update Claude Desktop config. |
372
391
  | `dashboard` | Start a local-only dashboard on `127.0.0.1` showing tool inventory, risk, policy coverage, exact-action approvals, receipt chains, and audit export. |
373
392
  | `recommend` | Draft a reviewable JSON policy from observed local calls. Dry-run by default; use `--write` to create `protect-mcp.recommended.json`. |