mcp-server-agentpay 1.1.0 → 1.1.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/LICENSE +21 -0
- package/README.md +37 -22
- package/index.js +2 -2
- package/package.json +4 -3
- package/server.json +5 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MetalTorque
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# mcp-server-agentpay
|
|
2
2
|
|
|
3
|
+
<a href="https://glama.ai/mcp/servers/@joepangallo/mcp-server-agentpay"><img width="380" height="200" src="https://glama.ai/mcp/servers/@joepangallo/mcp-server-agentpay/badge" alt="AgentPay MCP server" /></a>
|
|
4
|
+
|
|
3
5
|
MCP server for **AgentPay** — the payment gateway for autonomous AI agents.
|
|
4
6
|
|
|
5
|
-
Fund a wallet once, give your agent the key, and it discovers, provisions, and pays for tool APIs on its own.
|
|
7
|
+
Fund a wallet once, give your agent the key, and it discovers, provisions, and pays for tool APIs on its own. One key, every tool.
|
|
6
8
|
|
|
7
9
|
## Quick Setup
|
|
8
10
|
|
|
@@ -23,8 +25,7 @@ Or add to `~/.claude/settings.json`:
|
|
|
23
25
|
"command": "npx",
|
|
24
26
|
"args": ["-y", "mcp-server-agentpay"],
|
|
25
27
|
"env": {
|
|
26
|
-
"AGENTPAY_GATEWAY_KEY": "apg_your_key_here"
|
|
27
|
-
"AGENTPAY_URL": "https://agentpay.metaltorque.dev"
|
|
28
|
+
"AGENTPAY_GATEWAY_KEY": "apg_your_key_here"
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
}
|
|
@@ -34,36 +35,54 @@ Or add to `~/.claude/settings.json`:
|
|
|
34
35
|
## Get a Gateway Key
|
|
35
36
|
|
|
36
37
|
```bash
|
|
37
|
-
curl -X POST https://
|
|
38
|
+
curl -X POST https://pay.leddconsulting.com/gateway/register \
|
|
38
39
|
-H "Content-Type: application/json" \
|
|
39
40
|
-d '{"email": "you@example.com"}'
|
|
40
41
|
```
|
|
41
42
|
|
|
42
43
|
You get $1 in free credits to start.
|
|
43
44
|
|
|
44
|
-
## Tools
|
|
45
|
+
## Tools
|
|
45
46
|
|
|
46
47
|
| Tool | Description |
|
|
47
48
|
|------|-------------|
|
|
48
|
-
| `discover_tools` | Search tools by keyword |
|
|
49
|
+
| `discover_tools` | Search tools by keyword (e.g. 'security', 'seo') |
|
|
49
50
|
| `list_tools` | List all available tools with pricing |
|
|
50
51
|
| `check_balance` | Check wallet balance and provisioned tools |
|
|
51
52
|
| `call_tool` | Call any tool method (metered, auto-provisions) |
|
|
52
53
|
| `provision_tool` | Pre-provision access to a tool |
|
|
53
54
|
| `get_usage` | View recent call history and costs |
|
|
54
55
|
| `fund_wallet_stripe` | Get Stripe checkout URL for credits |
|
|
55
|
-
| `fund_wallet_x402` | Get x402 crypto funding info |
|
|
56
|
+
| `fund_wallet_x402` | Get x402 crypto funding info (autonomous USDC) |
|
|
56
57
|
| `x402_info` | View x402 payment options and setup |
|
|
57
58
|
|
|
59
|
+
### Admin Tools (optional, requires `AGENTPAY_ADMIN_KEY`)
|
|
60
|
+
|
|
61
|
+
| Tool | Description |
|
|
62
|
+
|------|-------------|
|
|
63
|
+
| `reliability_dashboard` | Circuit breaker states, health metrics, recent events |
|
|
64
|
+
| `reliability_tool_detail` | Detailed reliability info for a specific tool |
|
|
65
|
+
| `reliability_reset` | Force-close a tripped circuit breaker |
|
|
66
|
+
| `reliability_config` | Update circuit breaker settings |
|
|
67
|
+
|
|
68
|
+
## How It Works
|
|
69
|
+
|
|
70
|
+
1. **Register** — create a wallet, get a gateway key
|
|
71
|
+
2. **Fund** — add credits via Stripe or x402 USDC
|
|
72
|
+
3. **Discover** — agent searches for tools by capability
|
|
73
|
+
4. **Call** — agent calls any tool, gateway handles auth + billing
|
|
74
|
+
|
|
75
|
+
The agent never needs to know about individual tool APIs, accounts, or payment. One key, every tool.
|
|
76
|
+
|
|
58
77
|
## Funding Methods
|
|
59
78
|
|
|
60
79
|
### Stripe (human-in-the-loop)
|
|
61
80
|
Use `fund_wallet_stripe` — returns a checkout URL for a human to complete.
|
|
62
81
|
|
|
63
82
|
### x402 USDC (fully autonomous)
|
|
64
|
-
Use `fund_wallet_x402` — returns endpoint, network, and instructions for autonomous USDC payments via the x402 protocol. No human needed.
|
|
83
|
+
Use `fund_wallet_x402` — returns endpoint, network, and instructions for autonomous USDC payments via the [x402 protocol](https://www.x402.org/). No human needed.
|
|
65
84
|
|
|
66
|
-
|
|
85
|
+
### Credit Packages
|
|
67
86
|
|
|
68
87
|
| Package | Price | Credits |
|
|
69
88
|
|---------|-------|---------|
|
|
@@ -73,31 +92,27 @@ Use `fund_wallet_x402` — returns endpoint, network, and instructions for auton
|
|
|
73
92
|
| large | $350 | 500 |
|
|
74
93
|
| whale | $600 | 1,000 |
|
|
75
94
|
|
|
76
|
-
## How It Works
|
|
77
|
-
|
|
78
|
-
1. **Register** — create a wallet, get a gateway key
|
|
79
|
-
2. **Fund** — add credits via Stripe or x402 USDC
|
|
80
|
-
3. **Discover** — agent searches for tools by capability
|
|
81
|
-
4. **Call** — agent calls any tool, gateway handles auth + billing
|
|
82
|
-
|
|
83
|
-
The agent never needs to know about individual tool APIs, accounts, or payment. One key, every tool.
|
|
84
|
-
|
|
85
95
|
## Environment Variables
|
|
86
96
|
|
|
87
97
|
| Variable | Required | Description |
|
|
88
98
|
|----------|----------|-------------|
|
|
89
99
|
| `AGENTPAY_GATEWAY_KEY` | Yes | Your gateway API key (starts with `apg_`) |
|
|
90
|
-
| `
|
|
100
|
+
| `AGENTPAY_ADMIN_KEY` | No | Admin key for reliability endpoints |
|
|
101
|
+
| `AGENTPAY_URL` | No | Custom gateway URL (default: `https://pay.leddconsulting.com`) |
|
|
91
102
|
|
|
92
103
|
## Available Tools (via gateway)
|
|
93
104
|
|
|
94
105
|
- **Security Audit** — scan websites for vulnerabilities, SSL issues, OWASP risks
|
|
95
106
|
- **IndexForge SEO** — submit URLs to Google/Bing, scan sitemaps, check index status
|
|
96
107
|
|
|
97
|
-
More tools added regularly.
|
|
108
|
+
More tools added regularly. Developers can register tools at the [marketplace](https://pay.leddconsulting.com/docs).
|
|
98
109
|
|
|
99
110
|
## Links
|
|
100
111
|
|
|
101
|
-
- [
|
|
102
|
-
- [
|
|
112
|
+
- [API Docs](https://pay.leddconsulting.com/docs)
|
|
113
|
+
- [Status Page](https://pay.leddconsulting.com/status)
|
|
103
114
|
- [MCP Registry](https://registry.modelcontextprotocol.io) — `io.github.joepangallo/agent-pay`
|
|
115
|
+
|
|
116
|
+
## License
|
|
117
|
+
|
|
118
|
+
MIT
|
package/index.js
CHANGED
|
@@ -11,7 +11,7 @@ const { version } = require("./package.json");
|
|
|
11
11
|
|
|
12
12
|
const GATEWAY_KEY = process.env.AGENTPAY_GATEWAY_KEY || "";
|
|
13
13
|
const ADMIN_KEY = process.env.AGENTPAY_ADMIN_KEY || "";
|
|
14
|
-
const BASE_URL = (process.env.AGENTPAY_URL || "https://
|
|
14
|
+
const BASE_URL = (process.env.AGENTPAY_URL || "https://pay.leddconsulting.com").replace(/\/$/, "");
|
|
15
15
|
|
|
16
16
|
// ── HTTP helper ─────────────────────────────────────────────────────
|
|
17
17
|
|
|
@@ -73,7 +73,7 @@ function request(method, urlPath, body, timeout = 120_000) {
|
|
|
73
73
|
|
|
74
74
|
function noKeyError() {
|
|
75
75
|
return {
|
|
76
|
-
content: [{ type: "text", text: "Error: AGENTPAY_GATEWAY_KEY environment variable is required.\n\nRegister at https://
|
|
76
|
+
content: [{ type: "text", text: "Error: AGENTPAY_GATEWAY_KEY environment variable is required.\n\nRegister at https://pay.leddconsulting.com to get a gateway key.\nYou get $1 in free credits to start." }],
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-server-agentpay",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"mcpName": "io.github.joepangallo/agent-pay",
|
|
5
5
|
"description": "MCP server for AgentPay — the payment gateway for autonomous AI agents. Discover, provision, and pay for MCP tool APIs. Includes reliability monitoring with circuit breakers and health metrics.",
|
|
6
6
|
"bin": {
|
|
@@ -41,8 +41,9 @@
|
|
|
41
41
|
"author": "MetalTorque",
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|
|
44
|
-
"url": "https://github.com/joepangallo/
|
|
44
|
+
"url": "https://github.com/joepangallo/mcp-server-agentpay"
|
|
45
45
|
},
|
|
46
|
+
"homepage": "https://pay.leddconsulting.com",
|
|
46
47
|
"dependencies": {
|
|
47
48
|
"@modelcontextprotocol/sdk": "^1.27.0",
|
|
48
49
|
"zod": "^3.23.0"
|
|
@@ -56,4 +57,4 @@
|
|
|
56
57
|
"server.json",
|
|
57
58
|
"package.json"
|
|
58
59
|
]
|
|
59
|
-
}
|
|
60
|
+
}
|
package/server.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.joepangallo/agent-pay",
|
|
4
|
-
"description": "Payment gateway for AI agents.
|
|
4
|
+
"description": "Payment gateway for AI agents. Discover, provision, and pay for tool APIs.",
|
|
5
5
|
"repository": {
|
|
6
|
-
"url": "https://github.com/joepangallo/
|
|
6
|
+
"url": "https://github.com/joepangallo/mcp-server-agentpay",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.1.
|
|
9
|
+
"version": "1.1.1",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "mcp-server-agentpay",
|
|
14
|
-
"version": "1.1.
|
|
14
|
+
"version": "1.1.1",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"name": "AGENTPAY_ADMIN_KEY"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"description": "AgentPay API URL",
|
|
34
|
+
"description": "AgentPay API URL. Defaults to https://pay.leddconsulting.com",
|
|
35
35
|
"isRequired": false,
|
|
36
36
|
"format": "string",
|
|
37
37
|
"isSecret": false,
|