agent-passport-system-mcp 3.3.1 → 3.4.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 +4 -1
- package/build/index.js +12 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -215,7 +215,7 @@ Layer 1 — Agent Passport Protocol (Ed25519 identity)
|
|
|
215
215
|
|
|
216
216
|
## Links
|
|
217
217
|
|
|
218
|
-
- npm SDK: [agent-passport-system](https://www.npmjs.com/package/agent-passport-system) (v3.3.0, 4,
|
|
218
|
+
- npm SDK: [agent-passport-system](https://www.npmjs.com/package/agent-passport-system) (v3.3.0, 4,326 tests)
|
|
219
219
|
- Python SDK: [agent-passport-system](https://pypi.org/project/agent-passport-system/) (v2.8.0)
|
|
220
220
|
- Go SDK: [agent-passport-go](https://pkg.go.dev/github.com/aeoess/agent-passport-go) (v0.3.0; `go get github.com/aeoess/agent-passport-go@v0.3.0`)
|
|
221
221
|
- Paper (Social Contract): [doi.org/10.5281/zenodo.18749779](https://doi.org/10.5281/zenodo.18749779)
|
|
@@ -233,3 +233,6 @@ Layer 1 — Agent Passport Protocol (Ed25519 identity)
|
|
|
233
233
|
## License
|
|
234
234
|
|
|
235
235
|
Apache-2.0
|
|
236
|
+
|
|
237
|
+
## Related: agent-passport-access-shim
|
|
238
|
+
Adapter that emits a signed AccessReceipt for each governed MCP tools/call: https://www.npmjs.com/package/agent-passport-access-shim. Receipts verify with the SDK or in the browser at https://agent-passport.org/verify.html.
|
package/build/index.js
CHANGED
|
@@ -4618,12 +4618,23 @@ server.tool("aps_capability_sign_effect", "v0.1 capability-token sink effect rec
|
|
|
4618
4618
|
};
|
|
4619
4619
|
}
|
|
4620
4620
|
const preimage = receipt.authority_token_preimage;
|
|
4621
|
-
|
|
4621
|
+
// C-3 fix: reject replay before doing work, and consume the nullifier only
|
|
4622
|
+
// AFTER the effect receipt is successfully signed. Consuming before signing
|
|
4623
|
+
// meant a transient signing failure permanently burned a token that never
|
|
4624
|
+
// produced a valid M4. The block is synchronous (no await between the peek,
|
|
4625
|
+
// the sign, and the consume), so there is no TOCTOU window.
|
|
4626
|
+
if (capabilityNullifierSet.isConsumed(preimage)) {
|
|
4627
|
+
return {
|
|
4628
|
+
content: [{ type: "text", text: JSON.stringify({ error: "nullifier replay: token preimage already consumed" }) }],
|
|
4629
|
+
isError: true,
|
|
4630
|
+
};
|
|
4631
|
+
}
|
|
4622
4632
|
const effectReceipt = signCapabilityEffectReceipt({
|
|
4623
4633
|
challenge_receipt: receipt,
|
|
4624
4634
|
effect: args.effect,
|
|
4625
4635
|
sink_key: sinkKey,
|
|
4626
4636
|
});
|
|
4637
|
+
capabilityNullifierSet.consume(preimage);
|
|
4627
4638
|
return {
|
|
4628
4639
|
content: [{
|
|
4629
4640
|
type: "text",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-passport-system-mcp",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"mcpName": "io.github.aeoess/agent-passport-mcp",
|
|
5
5
|
"description": "MCP server for the Agent Passport System - protocol-layer tools only. 150 tools (132 protocol + 10 gateway deprecation stubs). Identity, delegation, reputation, attestation, coordination, commerce, attribution primitive, attribution settlement. Tracks SDK v3.3.0 (Wave 1 accountability primitives + Phase 4.1 payment rails shipped in SDK; MCP rail-tool exposure deferred). For gateway-runtime tools (ProxyGateway, AgentContext, DataEnforcementGate), use gateway.aeoess.com REST API or pin to v3.1.x.",
|
|
6
6
|
"type": "module",
|