@orangecheck/agent-mcp 0.4.0 → 0.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/README.md +6 -1
- package/package.json +2 -2
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
|
-
|
|
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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangecheck/agent-mcp",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
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",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@noble/hashes": "^1.5.0",
|
|
53
53
|
"@orangecheck/agent-core": "^2.1.0",
|
|
54
|
-
"@orangecheck/agent-signer": "^0.
|
|
54
|
+
"@orangecheck/agent-signer": "^0.4.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^22.10.2",
|