@kya-os/mcp-i 1.12.3 → 1.13.0
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 +11 -11
- package/dist/125.js +1 -0
- package/dist/227.js +1 -1
- package/dist/283.js +1 -1
- package/dist/295.js +1 -1
- package/dist/317.js +1 -1
- package/dist/65.js +1 -1
- package/dist/843.js +1 -1
- package/dist/runtime/248.js +1 -0
- package/dist/runtime/adapter-express.js +3 -3
- package/dist/runtime/adapter-nextjs.js +5 -5
- package/dist/runtime/{delegation-verifier-agentshield.d.ts → delegation-verifier-checkpoint.d.ts} +13 -18
- package/dist/runtime/{delegation-verifier-agentshield.js → delegation-verifier-checkpoint.js} +41 -121
- package/dist/runtime/delegation-verifier.d.ts +17 -9
- package/dist/runtime/delegation-verifier.js +7 -6
- package/dist/runtime/former-names.d.ts +20 -0
- package/dist/runtime/former-names.js +17 -0
- package/dist/runtime/http.js +3 -3
- package/dist/runtime/identity.d.ts +26 -0
- package/dist/runtime/identity.js +37 -4
- package/dist/runtime/index.d.ts +4 -3
- package/dist/runtime/index.js +21 -5
- package/dist/runtime/mcpi-runtime-wrapper.js +4 -2
- package/dist/runtime/mcpi-runtime.d.ts +9 -3
- package/dist/runtime/mcpi-runtime.js +7 -6
- package/dist/runtime/proof-batch-queue.d.ts +4 -4
- package/dist/runtime/proof-batch-queue.js +12 -12
- package/dist/runtime/stdio.js +3 -3
- package/dist/runtime/tool-protection.d.ts +11 -5
- package/dist/runtime/tool-protection.js +12 -11
- package/dist/runtime/utils/tools.js +7 -7
- package/package.json +4 -4
- package/dist/958.js +0 -1
- package/dist/runtime/215.js +0 -1
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ npm install @kya-os/mcp-i
|
|
|
40
40
|
- **Identity Management** - Ed25519 key generation and DID-based identity
|
|
41
41
|
- **Cryptographic Proofs** - JWS proof generation for tool responses
|
|
42
42
|
- **Session Management** - Nonce-protected sessions with configurable TTL
|
|
43
|
-
- **Delegation Verification** - Verify delegated permissions from
|
|
43
|
+
- **Delegation Verification** - Verify delegated permissions from Checkpoint
|
|
44
44
|
- **Tool Protection** - Configure which tools require delegation
|
|
45
45
|
- **Canonical Audit Trails** - Record privacy-minimal lifecycle events through `@kya-os/mcp`
|
|
46
46
|
- **Well-Known Endpoints** - Standard MCP-I discovery endpoints
|
|
@@ -136,8 +136,8 @@ Verify delegated permissions:
|
|
|
136
136
|
import { createDelegationVerifier } from "@kya-os/mcp-i";
|
|
137
137
|
|
|
138
138
|
const verifier = createDelegationVerifier({
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
checkpointApiUrl: "https://kya.vouched.id",
|
|
140
|
+
checkpointApiKey: process.env.CHECKPOINT_API_KEY,
|
|
141
141
|
});
|
|
142
142
|
|
|
143
143
|
const result = await verifier.verify({
|
|
@@ -158,14 +158,14 @@ Configure which tools require delegation:
|
|
|
158
158
|
```typescript
|
|
159
159
|
import {
|
|
160
160
|
ToolProtectionResolver,
|
|
161
|
-
|
|
161
|
+
CheckpointToolProtectionSource
|
|
162
162
|
} from "@kya-os/mcp-i";
|
|
163
163
|
|
|
164
|
-
// Load protection config from
|
|
165
|
-
const source = new
|
|
164
|
+
// Load protection config from Checkpoint
|
|
165
|
+
const source = new CheckpointToolProtectionSource({
|
|
166
166
|
apiUrl: "https://kya.vouched.id",
|
|
167
|
-
apiKey: process.env.
|
|
168
|
-
projectId: process.env.
|
|
167
|
+
apiKey: process.env.CHECKPOINT_API_KEY,
|
|
168
|
+
projectId: process.env.CHECKPOINT_PROJECT_ID,
|
|
169
169
|
});
|
|
170
170
|
|
|
171
171
|
const resolver = new ToolProtectionResolver([source]);
|
|
@@ -286,9 +286,9 @@ const identity = await deterministicKeys.generateIdentity("test-agent");
|
|
|
286
286
|
| `AGENT_PRIVATE_KEY` | Base64-encoded Ed25519 private key (production) |
|
|
287
287
|
| `AGENT_KEY_ID` | Key ID for the agent |
|
|
288
288
|
| `AGENT_DID` | Agent's DID (production) |
|
|
289
|
-
| `
|
|
290
|
-
| `
|
|
291
|
-
| `
|
|
289
|
+
| `CHECKPOINT_API_KEY` | API key for Checkpoint |
|
|
290
|
+
| `CHECKPOINT_API_URL` | Checkpoint API URL (default: `https://kya.vouched.id`) |
|
|
291
|
+
| `CHECKPOINT_PROJECT_ID` | Project ID in Checkpoint |
|
|
292
292
|
| `XMCP_ENV` | Set to `test` to enable test infrastructure |
|
|
293
293
|
|
|
294
294
|
## Platform Support
|