@datacules/agent-identity-mcp 0.8.0 → 0.10.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 +24 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="../../../assets/logo.svg" alt="Agent Identity — by Datacules LLC" width="360"/>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# @datacules/agent-identity-mcp
|
|
2
6
|
|
|
3
7
|
MCP server adapter for [`@datacules/agent-identity`](../../core). Exposes credential resolution as MCP tools so any MCP-capable client — **Claude Desktop, Claude Code, Cursor, Windsurf**, or a custom agent — can resolve credentials without touching the HTTP REST API.
|
|
4
8
|
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @datacules/agent-identity-mcp
|
|
13
|
+
```
|
|
14
|
+
|
|
5
15
|
## Tools exposed
|
|
6
16
|
|
|
7
17
|
| Tool | Description |
|
|
@@ -45,8 +55,8 @@ const { start, stop } = createAgentIdentityMcpServer({
|
|
|
45
55
|
httpAuthToken: process.env.MCP_AUTH_TOKEN, // optional
|
|
46
56
|
});
|
|
47
57
|
await start();
|
|
48
|
-
//
|
|
49
|
-
//
|
|
58
|
+
// GET http://127.0.0.1:3002/sse → SSE stream
|
|
59
|
+
// POST http://127.0.0.1:3002/messages → tool calls
|
|
50
60
|
```
|
|
51
61
|
|
|
52
62
|
### With a custom CredentialStore
|
|
@@ -54,7 +64,10 @@ await start();
|
|
|
54
64
|
```typescript
|
|
55
65
|
import { VaultCredentialStore } from '@datacules/agent-identity-store-vault';
|
|
56
66
|
|
|
57
|
-
const store = new VaultCredentialStore({
|
|
67
|
+
const store = new VaultCredentialStore({
|
|
68
|
+
address: process.env.VAULT_ADDR!,
|
|
69
|
+
token: process.env.VAULT_TOKEN!,
|
|
70
|
+
});
|
|
58
71
|
const { start } = createAgentIdentityMcpServer({ store, rules });
|
|
59
72
|
await start();
|
|
60
73
|
```
|
|
@@ -86,7 +99,10 @@ echo '[{"id":"cred-1", ...}]' | base64
|
|
|
86
99
|
## Claude Code config
|
|
87
100
|
|
|
88
101
|
```bash
|
|
89
|
-
claude mcp add agent-identity
|
|
102
|
+
claude mcp add agent-identity \\
|
|
103
|
+
-e AGENT_IDENTITY_CREDENTIALS=<base64> \\
|
|
104
|
+
-e AGENT_IDENTITY_RULES=<base64> \\
|
|
105
|
+
-- npx @datacules/agent-identity-mcp
|
|
90
106
|
```
|
|
91
107
|
|
|
92
108
|
## Environment variables (standalone CLI)
|
|
@@ -99,3 +115,7 @@ claude mcp add agent-identity -e AGENT_IDENTITY_CREDENTIALS=<base64> -e AGENT_ID
|
|
|
99
115
|
| `MCP_HTTP_PORT` | `3002` | HTTP port (only when `MCP_TRANSPORT=http`) |
|
|
100
116
|
| `MCP_HTTP_HOST` | `127.0.0.1` | Bind address |
|
|
101
117
|
| `MCP_HTTP_AUTH_TOKEN` | — | Optional bearer token for HTTP auth |
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
Part of the [agent-identity monorepo](https://github.com/hvrcharon1/agent-identity) by [Datacules LLC](https://datacules.com).
|
package/package.json
CHANGED