@kya-os/mcp-i 1.12.1 → 1.12.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.
- package/README.md +7 -9
- package/dist/958.js +1 -0
- package/dist/runtime/215.js +1 -0
- package/dist/runtime/adapter-express.js +3 -3
- package/dist/runtime/adapter-nextjs.js +3 -3
- package/dist/runtime/http.js +3 -3
- package/dist/runtime/identity.d.ts +11 -0
- package/dist/runtime/identity.js +57 -8
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +3 -2
- package/dist/runtime/mcpi-runtime.js +62 -61
- package/dist/runtime/proof-batch-queue.d.ts +60 -6
- package/dist/runtime/proof-batch-queue.js +154 -21
- package/dist/runtime/stdio.js +3 -3
- package/dist/runtime/utils/tools.js +19 -2
- package/dist/test/examples/test-usage-example.d.ts +12 -12
- package/package.json +7 -7
- package/dist/365.js +0 -1
- package/dist/runtime/160.js +0 -1
package/README.md
CHANGED
|
@@ -183,15 +183,13 @@ Generate cryptographic proofs for tool responses:
|
|
|
183
183
|
```typescript
|
|
184
184
|
import { ProofGenerator, createProofResponse } from "@kya-os/mcp-i";
|
|
185
185
|
|
|
186
|
-
const proofGenerator = new ProofGenerator(identity,
|
|
187
|
-
|
|
188
|
-
const proof = await proofGenerator.generateProof(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
nonce: session.nonce,
|
|
194
|
-
});
|
|
186
|
+
const proofGenerator = new ProofGenerator(identity, cryptoProvider);
|
|
187
|
+
|
|
188
|
+
const proof = await proofGenerator.generateProof(
|
|
189
|
+
{ method: "get-weather", params: { city: "London" } },
|
|
190
|
+
{ data: { temperature: 20 } },
|
|
191
|
+
session, // SessionContext, e.g. { sessionId, nonce, audience }
|
|
192
|
+
);
|
|
195
193
|
|
|
196
194
|
// Create response with detached proof
|
|
197
195
|
const response = createProofResponse(toolOutput, proof);
|