agent-payments-mcp 0.1.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 +84 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +236 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# agent-pay-mcp
|
|
2
|
+
|
|
3
|
+
MCP server for [AgentPay](https://agent-pay.pro) — payment infrastructure for AI agents.
|
|
4
|
+
|
|
5
|
+
Add A2A (agent-to-agent) payments to any Claude Desktop, Cursor, or MCP-compatible workflow in 30 seconds.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"mcpServers": {
|
|
12
|
+
"agentpay": {
|
|
13
|
+
"command": "npx",
|
|
14
|
+
"args": ["agent-pay-mcp"],
|
|
15
|
+
"env": {
|
|
16
|
+
"AGENTPAY_API_KEY": "sk_live_your_key_here"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Add this to your Claude Desktop config at:
|
|
24
|
+
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
25
|
+
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
26
|
+
|
|
27
|
+
## Tools
|
|
28
|
+
|
|
29
|
+
### `agentpay_register`
|
|
30
|
+
Register a new AI agent with AgentPay. No API key required — returns the new agent_id and api_key.
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
agentpay_register(name: string, email: string)
|
|
34
|
+
→ { id, name, email, api_key, balance, stripe_connected }
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### `agentpay_pay`
|
|
38
|
+
Send a payment to another agent. Debits your wallet, credits recipient instantly.
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
agentpay_pay(to_agent_id: string, amount: number, purpose?: string, api_key?: string)
|
|
42
|
+
→ { id, from_agent_id, to_agent_id, amount, status }
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### `agentpay_accept`
|
|
46
|
+
Create a payment request (merchant side). Returns an accept_id for the payer to reference.
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
agentpay_accept(amount: number, purpose?: string, api_key?: string)
|
|
50
|
+
→ { id, amount, status }
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### `agentpay_balance`
|
|
54
|
+
Check an agent's wallet balance.
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
agentpay_balance(agent_id: string, api_key?: string)
|
|
58
|
+
→ { agent_id, balance, currency }
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Environment Variables
|
|
62
|
+
|
|
63
|
+
| Variable | Description |
|
|
64
|
+
|---|---|
|
|
65
|
+
| `AGENTPAY_API_KEY` | Your AgentPay API key (sk_live_...). Get one at [agent-pay.pro](https://agent-pay.pro) |
|
|
66
|
+
| `AGENTPAY_BASE_URL` | Override API base URL (default: `https://agent-pay.pro`) |
|
|
67
|
+
|
|
68
|
+
## Example Prompts
|
|
69
|
+
|
|
70
|
+
Once configured, you can ask Claude:
|
|
71
|
+
|
|
72
|
+
> "Register me as a new AgentPay agent with name 'DataBot' and email 'bot@example.com'"
|
|
73
|
+
|
|
74
|
+
> "Check the balance for agent_abc123"
|
|
75
|
+
|
|
76
|
+
> "Send $0.50 to agent_xyz789 for 'data enrichment service'"
|
|
77
|
+
|
|
78
|
+
## Get an API Key
|
|
79
|
+
|
|
80
|
+
Register at [agent-pay.pro](https://agent-pay.pro) or use the `agentpay_register` tool directly in Claude.
|
|
81
|
+
|
|
82
|
+
## License
|
|
83
|
+
|
|
84
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* AgentPay MCP Server (agent-payments-mcp)
|
|
4
|
+
*
|
|
5
|
+
* Exposes AgentPay payment capabilities as MCP tools so any
|
|
6
|
+
* MCP-compatible AI agent can send/receive USD payments.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* AGENTPAY_API_KEY=sk_live_... npx agent-payments-mcp
|
|
10
|
+
*
|
|
11
|
+
* Or in Claude Desktop config:
|
|
12
|
+
* {
|
|
13
|
+
* "mcpServers": {
|
|
14
|
+
* "agentpay": {
|
|
15
|
+
* "command": "npx",
|
|
16
|
+
* "args": ["-y", "agent-payments-mcp"],
|
|
17
|
+
* "env": { "AGENTPAY_API_KEY": "sk_live_..." }
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
*/
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;GAmBG"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* AgentPay MCP Server (agent-payments-mcp)
|
|
4
|
+
*
|
|
5
|
+
* Exposes AgentPay payment capabilities as MCP tools so any
|
|
6
|
+
* MCP-compatible AI agent can send/receive USD payments.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* AGENTPAY_API_KEY=sk_live_... npx agent-payments-mcp
|
|
10
|
+
*
|
|
11
|
+
* Or in Claude Desktop config:
|
|
12
|
+
* {
|
|
13
|
+
* "mcpServers": {
|
|
14
|
+
* "agentpay": {
|
|
15
|
+
* "command": "npx",
|
|
16
|
+
* "args": ["-y", "agent-payments-mcp"],
|
|
17
|
+
* "env": { "AGENTPAY_API_KEY": "sk_live_..." }
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
*/
|
|
22
|
+
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
23
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
24
|
+
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
25
|
+
const BASE_URL = process.env.AGENTPAY_BASE_URL ?? "https://agent-pay.pro";
|
|
26
|
+
const API_KEY = process.env.AGENTPAY_API_KEY ?? "";
|
|
27
|
+
// ---------------------------------------------------------------------------
|
|
28
|
+
// HTTP helpers
|
|
29
|
+
// ---------------------------------------------------------------------------
|
|
30
|
+
async function apiRequest(method, path, body, apiKey) {
|
|
31
|
+
const key = apiKey ?? API_KEY;
|
|
32
|
+
const res = await fetch(`${BASE_URL}${path}`, {
|
|
33
|
+
method,
|
|
34
|
+
headers: {
|
|
35
|
+
"Content-Type": "application/json",
|
|
36
|
+
...(key ? { Authorization: `Bearer ${key}` } : {}),
|
|
37
|
+
},
|
|
38
|
+
body: body != null ? JSON.stringify(body) : undefined,
|
|
39
|
+
});
|
|
40
|
+
const data = (await res.json());
|
|
41
|
+
if (!res.ok) {
|
|
42
|
+
throw new Error(data.error ?? `HTTP ${res.status} ${path}`);
|
|
43
|
+
}
|
|
44
|
+
return data;
|
|
45
|
+
}
|
|
46
|
+
// ---------------------------------------------------------------------------
|
|
47
|
+
// Tool definitions
|
|
48
|
+
// ---------------------------------------------------------------------------
|
|
49
|
+
const TOOLS = [
|
|
50
|
+
{
|
|
51
|
+
name: "agentpay_register",
|
|
52
|
+
description: "Register a new AI agent with AgentPay to enable payments. Returns an agent_id, api_key, and test_api_key. No existing API key required.",
|
|
53
|
+
inputSchema: {
|
|
54
|
+
type: "object",
|
|
55
|
+
properties: {
|
|
56
|
+
name: {
|
|
57
|
+
type: "string",
|
|
58
|
+
description: "Display name for the agent (e.g. 'my-parser-bot')",
|
|
59
|
+
},
|
|
60
|
+
email: {
|
|
61
|
+
type: "string",
|
|
62
|
+
description: "Email address for the agent account (used for key recovery)",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
required: ["name", "email"],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "agentpay_pay",
|
|
70
|
+
description: "Send a payment from this agent to another agent. Debits the authenticated agent's wallet and credits the recipient instantly. In test mode (test_sk_ key), no real money moves.",
|
|
71
|
+
inputSchema: {
|
|
72
|
+
type: "object",
|
|
73
|
+
properties: {
|
|
74
|
+
to_agent_id: {
|
|
75
|
+
type: "string",
|
|
76
|
+
description: "Recipient agent ID (e.g. agent_abc123)",
|
|
77
|
+
},
|
|
78
|
+
amount: {
|
|
79
|
+
type: "number",
|
|
80
|
+
description: "Amount in USD (e.g. 0.25 = $0.25)",
|
|
81
|
+
},
|
|
82
|
+
purpose: {
|
|
83
|
+
type: "string",
|
|
84
|
+
description: "Optional human-readable description of payment purpose",
|
|
85
|
+
},
|
|
86
|
+
api_key: {
|
|
87
|
+
type: "string",
|
|
88
|
+
description: "AgentPay API key. Falls back to AGENTPAY_API_KEY env var.",
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
required: ["to_agent_id", "amount"],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "agentpay_accept",
|
|
96
|
+
description: "Create a payment request (merchant side). Use when your agent is providing a service and wants to receive payment. Returns an accept_id that the payer can reference.",
|
|
97
|
+
inputSchema: {
|
|
98
|
+
type: "object",
|
|
99
|
+
properties: {
|
|
100
|
+
amount: {
|
|
101
|
+
type: "number",
|
|
102
|
+
description: "Amount in USD to request (e.g. 1.00 = $1.00)",
|
|
103
|
+
},
|
|
104
|
+
purpose: {
|
|
105
|
+
type: "string",
|
|
106
|
+
description: "Description of the service being provided",
|
|
107
|
+
},
|
|
108
|
+
api_key: {
|
|
109
|
+
type: "string",
|
|
110
|
+
description: "AgentPay API key. Falls back to AGENTPAY_API_KEY env var.",
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
required: ["amount"],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "agentpay_balance",
|
|
118
|
+
description: "Check an agent's payment balance and available funds. In test mode returns a virtual $100.",
|
|
119
|
+
inputSchema: {
|
|
120
|
+
type: "object",
|
|
121
|
+
properties: {
|
|
122
|
+
agent_id: {
|
|
123
|
+
type: "string",
|
|
124
|
+
description: "Agent ID to check balance for (e.g. agent_abc123)",
|
|
125
|
+
},
|
|
126
|
+
api_key: {
|
|
127
|
+
type: "string",
|
|
128
|
+
description: "AgentPay API key. Falls back to AGENTPAY_API_KEY env var.",
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
required: ["agent_id"],
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "agentpay_transactions",
|
|
136
|
+
description: "List recent transactions for the authenticated agent (sent and received).",
|
|
137
|
+
inputSchema: {
|
|
138
|
+
type: "object",
|
|
139
|
+
properties: {
|
|
140
|
+
limit: {
|
|
141
|
+
type: "number",
|
|
142
|
+
description: "Max results to return (default 20)",
|
|
143
|
+
},
|
|
144
|
+
offset: {
|
|
145
|
+
type: "number",
|
|
146
|
+
description: "Pagination offset (default 0)",
|
|
147
|
+
},
|
|
148
|
+
api_key: {
|
|
149
|
+
type: "string",
|
|
150
|
+
description: "AgentPay API key. Falls back to AGENTPAY_API_KEY env var.",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
required: [],
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
];
|
|
157
|
+
// ---------------------------------------------------------------------------
|
|
158
|
+
// Server setup
|
|
159
|
+
// ---------------------------------------------------------------------------
|
|
160
|
+
const server = new Server({ name: "agent-payments-mcp", version: "0.1.0" }, { capabilities: { tools: {} } });
|
|
161
|
+
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS }));
|
|
162
|
+
server.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
163
|
+
const { name, arguments: args } = req.params;
|
|
164
|
+
const a = (args ?? {});
|
|
165
|
+
try {
|
|
166
|
+
switch (name) {
|
|
167
|
+
case "agentpay_register": {
|
|
168
|
+
const result = await apiRequest("POST", "/api/agents/register", { name: a.name, email: a.email });
|
|
169
|
+
return {
|
|
170
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
case "agentpay_pay": {
|
|
174
|
+
const result = await apiRequest("POST", "/api/payments/create", {
|
|
175
|
+
to_agent_id: a.to_agent_id,
|
|
176
|
+
amount: a.amount,
|
|
177
|
+
purpose: a.purpose,
|
|
178
|
+
}, a.api_key);
|
|
179
|
+
return {
|
|
180
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
case "agentpay_accept": {
|
|
184
|
+
const result = await apiRequest("POST", "/api/accept", { amount: a.amount, purpose: a.purpose }, a.api_key);
|
|
185
|
+
return {
|
|
186
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
case "agentpay_balance": {
|
|
190
|
+
const result = await apiRequest("GET", `/api/agents/${a.agent_id}/balance`, undefined, a.api_key);
|
|
191
|
+
return {
|
|
192
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
case "agentpay_transactions": {
|
|
196
|
+
const qs = new URLSearchParams();
|
|
197
|
+
if (a.limit != null)
|
|
198
|
+
qs.set("limit", String(a.limit));
|
|
199
|
+
if (a.offset != null)
|
|
200
|
+
qs.set("offset", String(a.offset));
|
|
201
|
+
const query = qs.toString() ? `?${qs.toString()}` : "";
|
|
202
|
+
const result = await apiRequest("GET", `/api/transactions${query}`, undefined, a.api_key);
|
|
203
|
+
return {
|
|
204
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
default:
|
|
208
|
+
return {
|
|
209
|
+
content: [{ type: "text", text: `Unknown tool: ${name}` }],
|
|
210
|
+
isError: true,
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
catch (err) {
|
|
215
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
216
|
+
return {
|
|
217
|
+
content: [{ type: "text", text: `Error: ${message}` }],
|
|
218
|
+
isError: true,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
// ---------------------------------------------------------------------------
|
|
223
|
+
// Start
|
|
224
|
+
// ---------------------------------------------------------------------------
|
|
225
|
+
async function main() {
|
|
226
|
+
if (!API_KEY) {
|
|
227
|
+
process.stderr.write("Warning: AGENTPAY_API_KEY not set. Some tools require an API key passed explicitly.\n");
|
|
228
|
+
}
|
|
229
|
+
const transport = new StdioServerTransport();
|
|
230
|
+
await server.connect(transport);
|
|
231
|
+
}
|
|
232
|
+
main().catch((err) => {
|
|
233
|
+
process.stderr.write(`Fatal: ${err}\n`);
|
|
234
|
+
process.exit(1);
|
|
235
|
+
});
|
|
236
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAE5C,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,uBAAuB,CAAC;AAC1E,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC;AAEnD,8EAA8E;AAC9E,e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M,EAAE,IAAI,EAAE,UAAU,OAAO,EAAE,EAAE,CAAC;YACtD,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,8EAA8E;AAC9E,QAAQ;AACR,8EAA8E;AAE9E,KAAK,UAAU,IAAI;IACjB,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,uFAAuF,CACxF,CAAC;IACJ,CAAC;IACD,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agent-payments-mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MCP server for AgentPay — payment infrastructure for AI agents. Add A2A payments to any Claude, Cursor, or MCP-compatible workflow in 30 seconds.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"agent-payments-mcp": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"start": "node dist/index.js",
|
|
13
|
+
"prepublishOnly": "npm run build"
|
|
14
|
+
},
|
|
15
|
+
"keywords": ["mcp", "model-context-protocol", "ai", "agents", "payments", "a2a", "agent-payments", "langchain", "crewai", "autogen", "claude", "cursor", "multi-agent", "stripe"],
|
|
16
|
+
"author": "AgentPay",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"homepage": "https://agent-pay.pro",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/gs-lang/AgentPay.git",
|
|
22
|
+
"directory": "mcp"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^20.0.0",
|
|
29
|
+
"typescript": "^5.0.0"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18"
|
|
33
|
+
},
|
|
34
|
+
"files": ["dist", "README.md"]
|
|
35
|
+
}
|