agent-passport-system-mcp 2.12.0 → 2.12.1
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 +3 -3
- package/build/index.js +12 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ MCP server for the [Agent Passport System](https://github.com/aeoess/agent-passp
|
|
|
10
10
|
|
|
11
11
|
> **🤖 For AI agents:** If you are an agent reading this, visit [aeoess.com/llms.txt](https://aeoess.com/llms.txt) for machine-readable documentation or [llms-full.txt](https://aeoess.com/llms-full.txt) for the complete technical reference. This README is designed for humans.
|
|
12
12
|
|
|
13
|
-
**83 tools** across
|
|
13
|
+
**83 tools** across 42 core modules + 32 v2 constitutional governance modules (separation of powers, circuit breakers, approval fatigue detection, and more). Works with any MCP client: Claude Desktop, Cursor, Windsurf, and more.
|
|
14
14
|
|
|
15
15
|
## Quick Start
|
|
16
16
|
|
|
@@ -206,8 +206,8 @@ Layer 1 — Agent Passport Protocol (Ed25959 identity)
|
|
|
206
206
|
|
|
207
207
|
## Links
|
|
208
208
|
|
|
209
|
-
- npm SDK: [agent-passport-system](https://www.npmjs.com/package/agent-passport-system) (v1.21.
|
|
210
|
-
- Python SDK: [agent-passport-system](https://pypi.org/project/agent-passport-system/) (v0.
|
|
209
|
+
- npm SDK: [agent-passport-system](https://www.npmjs.com/package/agent-passport-system) (v1.21.3, 1178 tests)
|
|
210
|
+
- Python SDK: [agent-passport-system](https://pypi.org/project/agent-passport-system/) (v0.5.1)
|
|
211
211
|
- Paper: [doi.org/10.5281/zenodo.18749779](https://doi.org/10.5281/zenodo.18749779)
|
|
212
212
|
- Docs: [aeoess.com/llms-full.txt](https://aeoess.com/llms-full.txt)
|
|
213
213
|
- Agora: [aeoess.com/agora.html](https://aeoess.com/agora.html)
|
package/build/index.js
CHANGED
|
@@ -88,6 +88,7 @@ const state = {
|
|
|
88
88
|
contributionLedger: createContributionLedger(),
|
|
89
89
|
sourceReceipts: new Map(),
|
|
90
90
|
trainingLedger: createTrainingLedger(),
|
|
91
|
+
sessionAgent: null,
|
|
91
92
|
};
|
|
92
93
|
// Load persisted task state
|
|
93
94
|
function loadTasks() {
|
|
@@ -365,6 +366,15 @@ server.tool("identify", "Identify yourself to the coordination server. Sets your
|
|
|
365
366
|
}
|
|
366
367
|
}
|
|
367
368
|
}
|
|
369
|
+
// Create session agent passport (reused by commerce and other tools)
|
|
370
|
+
state.sessionAgent = joinSocialContract({
|
|
371
|
+
name: state.agentId || args.public_key.slice(0, 12),
|
|
372
|
+
mission: 'MCP session agent',
|
|
373
|
+
owner: 'mcp-session',
|
|
374
|
+
capabilities: ['commerce:checkout', 'commerce:browse', 'coordination', 'agora'],
|
|
375
|
+
platform: 'node',
|
|
376
|
+
models: ['mcp'],
|
|
377
|
+
});
|
|
368
378
|
return {
|
|
369
379
|
content: [{
|
|
370
380
|
type: "text",
|
|
@@ -1667,8 +1677,8 @@ server.tool("commerce_preflight", "Run preflight checks before a purchase. Valid
|
|
|
1667
1677
|
const hasCommerceScope = sessionDel
|
|
1668
1678
|
? sessionDel.scope.some((s) => s === 'commerce' || s === 'commerce:checkout' || s.startsWith('commerce'))
|
|
1669
1679
|
: (state.agentContext ? true : false); // fallback to context if no delegation found
|
|
1670
|
-
//
|
|
1671
|
-
const agent = joinSocialContract({
|
|
1680
|
+
// Use session agent if available (created by identify), fallback to throwaway
|
|
1681
|
+
const agent = state.sessionAgent || joinSocialContract({
|
|
1672
1682
|
name: args.agent_id,
|
|
1673
1683
|
mission: 'Commerce operation',
|
|
1674
1684
|
owner: 'mcp-session',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-passport-system-mcp",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"mcpName": "io.github.aeoess/agent-passport-mcp",
|
|
5
5
|
"description": "MCP server for Agent Passport System — cryptographic identity, delegation, governance, and deliberation for AI agents",
|
|
6
6
|
"type": "module",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"homepage": "https://github.com/aeoess/agent-passport-mcp",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
52
|
-
"agent-passport-system": "^1.21.
|
|
52
|
+
"agent-passport-system": "^1.21.3",
|
|
53
53
|
"zod": "^3.25.76"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|