@orangecheck/agent-mcp 0.4.1 → 0.4.3

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/README.md +8 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -92,11 +92,16 @@ A server receiving a stamped invocation verifies it with `@orangecheck/agent-cor
92
92
 
93
93
  ```ts
94
94
  import { verifyAction } from '@orangecheck/agent-core';
95
+ import { verifySignature } from '@orangecheck/bip322';
95
96
 
97
+ // `revocations` is required: the kind-30085 envelopes you fetched with
98
+ // "#t": [delegation.id] (see @orangecheck/agent-core's README), or
99
+ // `skipRevocationCheck: true` to state that you are not checking.
96
100
  const r = await verifyAction({
97
101
  action,
98
102
  delegation,
99
- verifyBip322: async (m, s, a) => bip322.verify(a, m, s),
103
+ revocations,
104
+ verifyBip322: async (m, s, a) => verifySignature(a, m, s),
100
105
  });
101
106
  if (!r.ok) throw new Error(`auth failed: ${r.code}`);
102
107
 
@@ -126,13 +131,14 @@ action.ots = await stampCommit(action.id);
126
131
 
127
132
  ## Composing with Nostr
128
133
 
129
- Publish the action for public auditability (OC Agent reuses OC Stamp's kind-30084 transport, disambiguated by envelope `kind`):
134
+ Publish the action for public auditability on kind 30084, OC Agent's action kind. The `t` tag carries the delegation id, so anyone can list a delegation's actions with `{ kinds: [30084], '#t': [delegation.id] }` (oc-agent-protocol SPEC §10.3). Tags sit on the Nostr event, outside the signed envelope, so they change no id:
130
135
 
131
136
  ```ts
132
137
  await nostr.publish({
133
138
  kind: 30084,
134
139
  tags: [
135
140
  ['d', 'oc-agent-act:' + action.id],
141
+ ['t', action.delegation_id],
136
142
  ['kind', 'agent-action'],
137
143
  ['delegation', action.delegation_id],
138
144
  ['agent', action.signer.address],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangecheck/agent-mcp",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Wrap Model Context Protocol tool invocations in OC Agent envelopes — every call produces a signed, scope-constrained, verifiable agent-action stamp.",
5
5
  "keywords": [
6
6
  "bitcoin",