@useagentpay/mcp-server 0.1.3 → 0.1.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 +6 -22
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +1301 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -4,17 +4,11 @@ MCP server for [AgentPay](https://github.com/kar69-96/useagentpay) — exposes t
|
|
|
4
4
|
|
|
5
5
|
8 tools, 3 resources, 3 prompts. Agents can propose purchases, wait for human approval, execute checkout, and retrieve receipts — all over the Model Context Protocol.
|
|
6
6
|
|
|
7
|
-
## Install &
|
|
7
|
+
## Install & Setup
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npx
|
|
11
|
-
npx
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
Or via the AgentPay CLI:
|
|
15
|
-
```bash
|
|
16
|
-
agentpay mcp # stdio
|
|
17
|
-
agentpay mcp --http # HTTP
|
|
10
|
+
npx agentpay init # creates agentpay/ folder with AGENT.md
|
|
11
|
+
npx agentpay setup # opens browser to enter card, set budget & limits
|
|
18
12
|
```
|
|
19
13
|
|
|
20
14
|
## Host Configuration
|
|
@@ -26,7 +20,7 @@ Add to your Claude Desktop, Cursor, or Claude Code config:
|
|
|
26
20
|
"mcpServers": {
|
|
27
21
|
"agentpay": {
|
|
28
22
|
"command": "npx",
|
|
29
|
-
"args": ["@useagentpay/mcp-server"]
|
|
23
|
+
"args": ["-p", "@useagentpay/mcp-server", "agentpay", "serve"]
|
|
30
24
|
}
|
|
31
25
|
}
|
|
32
26
|
}
|
|
@@ -39,7 +33,7 @@ Add to your Claude Desktop, Cursor, or Claude Code config:
|
|
|
39
33
|
"mcpServers": {
|
|
40
34
|
"agentpay": {
|
|
41
35
|
"command": "npx",
|
|
42
|
-
"args": ["@useagentpay/mcp-server"],
|
|
36
|
+
"args": ["-p", "@useagentpay/mcp-server", "agentpay", "serve"],
|
|
43
37
|
"env": {
|
|
44
38
|
"AGENTPAY_PASSPHRASE": "your-passphrase"
|
|
45
39
|
}
|
|
@@ -48,16 +42,6 @@ Add to your Claude Desktop, Cursor, or Claude Code config:
|
|
|
48
42
|
}
|
|
49
43
|
```
|
|
50
44
|
|
|
51
|
-
## Prerequisites
|
|
52
|
-
|
|
53
|
-
AgentPay must be set up before the MCP server can operate:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
npm install -g @useagentpay/sdk
|
|
57
|
-
agentpay setup # encrypt & store credentials
|
|
58
|
-
agentpay budget --set 200
|
|
59
|
-
```
|
|
60
|
-
|
|
61
45
|
## Tools
|
|
62
46
|
|
|
63
47
|
| Tool | Description |
|
|
@@ -115,7 +99,7 @@ The `execute_purchase` tool needs access to the vault passphrase. Three modes:
|
|
|
115
99
|
| `AGENTPAY_PASSPHRASE` | Passphrase for execute (env mode) | — |
|
|
116
100
|
| `AGENTPAY_PASSPHRASE_SERVER` | URL to fetch passphrase (server mode) | — |
|
|
117
101
|
| `ANTHROPIC_API_KEY` | LLM API key for browser navigation | — |
|
|
118
|
-
| `AGENTPAY_HOME` | Override data directory |
|
|
102
|
+
| `AGENTPAY_HOME` | Override data directory | `./agentpay` |
|
|
119
103
|
| `MCP_TRANSPORT` | Set to `http` for HTTP transport | `stdio` |
|
|
120
104
|
| `MCP_HTTP_PORT` | HTTP port | `3100` |
|
|
121
105
|
|
package/dist/cli.d.ts
ADDED