agent-passport-system-mcp 2.8.2 → 2.8.5
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 +20 -18
- package/build/bin.d.ts +2 -0
- package/build/bin.js +11 -0
- package/build/setup.d.ts +2 -0
- package/build/setup.js +97 -0
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -12,24 +12,27 @@ MCP server for the [Agent Passport System](https://github.com/aeoess/agent-passp
|
|
|
12
12
|
|
|
13
13
|
## Quick Start
|
|
14
14
|
|
|
15
|
-
### Remote (no install)
|
|
15
|
+
### Fastest: Remote (no install needed)
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
```
|
|
18
|
+
npx agent-passport-system-mcp setup --remote
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Connects via SSE to `mcp.aeoess.com/sse`. Zero dependencies. Restart your AI client.
|
|
22
|
+
|
|
23
|
+
### Local install
|
|
18
24
|
|
|
19
|
-
```json
|
|
20
|
-
{
|
|
21
|
-
"mcpServers": {
|
|
22
|
-
"agent-passport": {
|
|
23
|
-
"type": "sse",
|
|
24
|
-
"url": "https://mcp.aeoess.com/sse"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
25
|
```
|
|
26
|
+
npm install -g agent-passport-system-mcp
|
|
27
|
+
npx agent-passport-system-mcp setup
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Auto-configures Claude Desktop and Cursor. Restart your AI client. 61 tools ready.
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
<details>
|
|
33
|
+
<summary>Manual config (if setup doesn't detect your client)</summary>
|
|
31
34
|
|
|
32
|
-
Add to
|
|
35
|
+
Add to your MCP config file:
|
|
33
36
|
|
|
34
37
|
```json
|
|
35
38
|
{
|
|
@@ -42,20 +45,19 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
|
42
45
|
}
|
|
43
46
|
```
|
|
44
47
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
Add to your MCP config:
|
|
48
|
+
Or for remote SSE:
|
|
48
49
|
|
|
49
50
|
```json
|
|
50
51
|
{
|
|
51
52
|
"mcpServers": {
|
|
52
53
|
"agent-passport": {
|
|
53
|
-
"
|
|
54
|
-
"
|
|
54
|
+
"type": "sse",
|
|
55
|
+
"url": "https://mcp.aeoess.com/sse"
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
```
|
|
60
|
+
</details>
|
|
59
61
|
|
|
60
62
|
## Tools (33)
|
|
61
63
|
|
package/build/bin.d.ts
ADDED
package/build/bin.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Thin wrapper — checks argv BEFORE loading any MCP modules
|
|
3
|
+
// Dynamic import() avoids ESM static import hoisting
|
|
4
|
+
if (process.argv[2] === "setup") {
|
|
5
|
+
await import("./setup.js");
|
|
6
|
+
process.exit(0);
|
|
7
|
+
}
|
|
8
|
+
else {
|
|
9
|
+
await import("./index.js");
|
|
10
|
+
}
|
|
11
|
+
export {};
|
package/build/setup.d.ts
ADDED
package/build/setup.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Auto-configure Agent Passport MCP for Claude Desktop, Cursor, Windsurf
|
|
3
|
+
import { readFileSync, writeFileSync, mkdirSync, existsSync } from "node:fs";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { homedir, platform } from "node:os";
|
|
6
|
+
const LOCAL_CONFIG = {
|
|
7
|
+
command: "npx",
|
|
8
|
+
args: ["agent-passport-system-mcp"],
|
|
9
|
+
};
|
|
10
|
+
const REMOTE_CONFIG = {
|
|
11
|
+
type: "sse",
|
|
12
|
+
url: "https://mcp.aeoess.com/sse",
|
|
13
|
+
};
|
|
14
|
+
function getConfigPaths() {
|
|
15
|
+
const home = homedir();
|
|
16
|
+
const paths = [];
|
|
17
|
+
if (platform() === "darwin") {
|
|
18
|
+
paths.push({
|
|
19
|
+
name: "Claude Desktop",
|
|
20
|
+
path: join(home, "Library", "Application Support", "Claude", "claude_desktop_config.json"),
|
|
21
|
+
});
|
|
22
|
+
paths.push({
|
|
23
|
+
name: "Cursor",
|
|
24
|
+
path: join(home, ".cursor", "mcp.json"),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
else if (platform() === "win32") {
|
|
28
|
+
const appdata = process.env.APPDATA || join(home, "AppData", "Roaming");
|
|
29
|
+
paths.push({
|
|
30
|
+
name: "Claude Desktop",
|
|
31
|
+
path: join(appdata, "Claude", "claude_desktop_config.json"),
|
|
32
|
+
});
|
|
33
|
+
paths.push({
|
|
34
|
+
name: "Cursor",
|
|
35
|
+
path: join(home, ".cursor", "mcp.json"),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
paths.push({
|
|
40
|
+
name: "Claude Desktop",
|
|
41
|
+
path: join(home, ".config", "Claude", "claude_desktop_config.json"),
|
|
42
|
+
});
|
|
43
|
+
paths.push({
|
|
44
|
+
name: "Cursor",
|
|
45
|
+
path: join(home, ".cursor", "mcp.json"),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return paths;
|
|
49
|
+
}
|
|
50
|
+
function setup() {
|
|
51
|
+
const useRemote = process.argv.includes("--remote");
|
|
52
|
+
const serverConfig = useRemote ? REMOTE_CONFIG : LOCAL_CONFIG;
|
|
53
|
+
const mode = useRemote ? "remote (SSE)" : "local (npx)";
|
|
54
|
+
console.log(`\n🔑 Agent Passport MCP Setup (${mode})\n`);
|
|
55
|
+
const configs = getConfigPaths();
|
|
56
|
+
let configured = 0;
|
|
57
|
+
for (const { name, path } of configs) {
|
|
58
|
+
try {
|
|
59
|
+
let config = {};
|
|
60
|
+
if (existsSync(path)) {
|
|
61
|
+
const raw = readFileSync(path, "utf-8");
|
|
62
|
+
config = JSON.parse(raw);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
const dir = path.substring(0, path.lastIndexOf("/"));
|
|
66
|
+
mkdirSync(dir, { recursive: true });
|
|
67
|
+
}
|
|
68
|
+
if (!config.mcpServers)
|
|
69
|
+
config.mcpServers = {};
|
|
70
|
+
if (config.mcpServers["agent-passport"]) {
|
|
71
|
+
console.log(` ✓ ${name} — already configured`);
|
|
72
|
+
configured++;
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
config.mcpServers["agent-passport"] = serverConfig;
|
|
76
|
+
writeFileSync(path, JSON.stringify(config, null, 2) + "\n");
|
|
77
|
+
console.log(` ✓ ${name} — configured at ${path}`);
|
|
78
|
+
configured++;
|
|
79
|
+
}
|
|
80
|
+
catch {
|
|
81
|
+
// Config dir doesn't exist = app not installed, skip
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (configured === 0) {
|
|
85
|
+
console.log(" No supported MCP clients found.");
|
|
86
|
+
console.log(" Manual setup: add this to your MCP config:\n");
|
|
87
|
+
console.log(JSON.stringify({ mcpServers: { "agent-passport": serverConfig } }, null, 2));
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
console.log(`\n Restart your AI client to activate Agent Passport (61 tools).`);
|
|
91
|
+
console.log(` Then say: "Create an agent identity" or "Delegate authority"\n`);
|
|
92
|
+
if (!useRemote) {
|
|
93
|
+
console.log(` Tip: Use --remote for zero-install SSE mode: npx agent-passport-system-mcp setup --remote\n`);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
setup();
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-passport-system-mcp",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.5",
|
|
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",
|
|
7
7
|
"bin": {
|
|
8
|
-
"agent-passport-system-mcp": "build/
|
|
8
|
+
"agent-passport-system-mcp": "./build/bin.js",
|
|
9
|
+
"agent-passport-mcp-setup": "./build/setup.js"
|
|
9
10
|
},
|
|
10
11
|
"files": [
|
|
11
12
|
"build",
|
|
@@ -13,10 +14,11 @@
|
|
|
13
14
|
"CODE_OF_CONDUCT.md"
|
|
14
15
|
],
|
|
15
16
|
"scripts": {
|
|
16
|
-
"build": "tsc && chmod 755 build/index.js",
|
|
17
|
+
"build": "tsc && chmod 755 build/bin.js build/index.js build/setup.js",
|
|
17
18
|
"watch": "tsc --watch",
|
|
18
19
|
"inspector": "npx @modelcontextprotocol/inspector build/index.js",
|
|
19
20
|
"prepublishOnly": "npm run build",
|
|
21
|
+
"postinstall": "echo '\\n🔑 Agent Passport MCP installed! Run: npx agent-passport-system-mcp setup\\n Or for zero-install remote: npx agent-passport-system-mcp setup --remote\\n'",
|
|
20
22
|
"postpublish": "cd ~/aeoess_web && node scripts/propagate.mjs --apply --commit 2>/dev/null || echo 'Propagation skipped (aeoess_web not found)'"
|
|
21
23
|
},
|
|
22
24
|
"keywords": [
|