agentpay-mcp 1.2.0 → 4.0.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/.env.example +37 -0
- package/LICENSE +21 -0
- package/README.md +732 -33
- package/claude_desktop_config.json +17 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +248 -0
- package/dist/index.js.map +1 -0
- package/dist/session/manager.d.ts +90 -0
- package/dist/session/manager.d.ts.map +1 -0
- package/dist/session/manager.js +262 -0
- package/dist/session/manager.js.map +1 -0
- package/dist/session/types.d.ts +113 -0
- package/dist/session/types.d.ts.map +1 -0
- package/dist/session/types.js +16 -0
- package/dist/session/types.js.map +1 -0
- package/dist/tools/bridge.d.ts +52 -0
- package/dist/tools/bridge.d.ts.map +1 -0
- package/dist/tools/bridge.js +97 -0
- package/dist/tools/bridge.js.map +1 -0
- package/dist/tools/budget.d.ts +84 -0
- package/dist/tools/budget.d.ts.map +1 -0
- package/dist/tools/budget.js +163 -0
- package/dist/tools/budget.js.map +1 -0
- package/dist/tools/deploy.d.ts +49 -0
- package/dist/tools/deploy.d.ts.map +1 -0
- package/dist/tools/deploy.js +123 -0
- package/dist/tools/deploy.js.map +1 -0
- package/dist/tools/escrow.d.ts +73 -0
- package/dist/tools/escrow.d.ts.map +1 -0
- package/dist/tools/escrow.js +146 -0
- package/dist/tools/escrow.js.map +1 -0
- package/dist/tools/history.d.ts +59 -0
- package/dist/tools/history.d.ts.map +1 -0
- package/dist/tools/history.js +202 -0
- package/dist/tools/history.js.map +1 -0
- package/dist/tools/identity.d.ts +65 -0
- package/dist/tools/identity.d.ts.map +1 -0
- package/dist/tools/identity.js +158 -0
- package/dist/tools/identity.js.map +1 -0
- package/dist/tools/payments.d.ts +71 -0
- package/dist/tools/payments.d.ts.map +1 -0
- package/dist/tools/payments.js +158 -0
- package/dist/tools/payments.js.map +1 -0
- package/dist/tools/session.d.ts +240 -0
- package/dist/tools/session.d.ts.map +1 -0
- package/dist/tools/session.js +678 -0
- package/dist/tools/session.js.map +1 -0
- package/dist/tools/swap.d.ts +65 -0
- package/dist/tools/swap.d.ts.map +1 -0
- package/dist/tools/swap.js +101 -0
- package/dist/tools/swap.js.map +1 -0
- package/dist/tools/tokens.d.ts +129 -0
- package/dist/tools/tokens.d.ts.map +1 -0
- package/dist/tools/tokens.js +138 -0
- package/dist/tools/tokens.js.map +1 -0
- package/dist/tools/transfers.d.ts +86 -0
- package/dist/tools/transfers.d.ts.map +1 -0
- package/dist/tools/transfers.js +136 -0
- package/dist/tools/transfers.js.map +1 -0
- package/dist/tools/wallet.d.ts +107 -0
- package/dist/tools/wallet.d.ts.map +1 -0
- package/dist/tools/wallet.js +271 -0
- package/dist/tools/wallet.js.map +1 -0
- package/dist/tools/x402.d.ts +90 -0
- package/dist/tools/x402.d.ts.map +1 -0
- package/dist/tools/x402.js +268 -0
- package/dist/tools/x402.js.map +1 -0
- package/dist/utils/client.d.ts +46 -0
- package/dist/utils/client.d.ts.map +1 -0
- package/dist/utils/client.js +123 -0
- package/dist/utils/client.js.map +1 -0
- package/dist/utils/format.d.ts +59 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/format.js +161 -0
- package/dist/utils/format.js.map +1 -0
- package/package.json +62 -12
- package/index.d.ts +0 -1
- package/index.js +0 -13
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatEth = formatEth;
|
|
4
|
+
exports.formatToken = formatToken;
|
|
5
|
+
exports.formatSpendLimit = formatSpendLimit;
|
|
6
|
+
exports.formatAddress = formatAddress;
|
|
7
|
+
exports.formatAddressFull = formatAddressFull;
|
|
8
|
+
exports.formatDuration = formatDuration;
|
|
9
|
+
exports.formatTimestamp = formatTimestamp;
|
|
10
|
+
exports.utilizationBadge = utilizationBadge;
|
|
11
|
+
exports.chainName = chainName;
|
|
12
|
+
exports.explorerTxUrl = explorerTxUrl;
|
|
13
|
+
exports.explorerAddressUrl = explorerAddressUrl;
|
|
14
|
+
exports.textContent = textContent;
|
|
15
|
+
exports.formatError = formatError;
|
|
16
|
+
exports.formatSuccess = formatSuccess;
|
|
17
|
+
const viem_1 = require("viem");
|
|
18
|
+
// ─── ETH / token formatting ────────────────────────────────────────────────
|
|
19
|
+
/**
|
|
20
|
+
* Format a bigint wei amount as a readable ETH string.
|
|
21
|
+
* e.g., 1000000000000000000n → "1.000000 ETH"
|
|
22
|
+
*/
|
|
23
|
+
function formatEth(wei) {
|
|
24
|
+
return `${(0, viem_1.formatEther)(wei)} ETH`;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Format a bigint token amount with the given decimals.
|
|
28
|
+
* e.g., 1000000n with decimals=6 → "1.000000 USDC"
|
|
29
|
+
*/
|
|
30
|
+
function formatToken(amount, decimals, symbol) {
|
|
31
|
+
return `${(0, viem_1.formatUnits)(amount, decimals)} ${symbol}`;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Format a bigint as a readable ETH or "N/A" if zero/unlimited.
|
|
35
|
+
* Used for spend limits where 0 means "no autonomous spending allowed".
|
|
36
|
+
*/
|
|
37
|
+
function formatSpendLimit(wei) {
|
|
38
|
+
if (wei === 0n)
|
|
39
|
+
return '0 ETH (no autonomous spending)';
|
|
40
|
+
// Very large value = effectively unlimited
|
|
41
|
+
if (wei > BigInt('0xFFFFFFFFFFFFFFFFFFFFFFF'))
|
|
42
|
+
return 'Unlimited';
|
|
43
|
+
return formatEth(wei);
|
|
44
|
+
}
|
|
45
|
+
// ─── Address formatting ────────────────────────────────────────────────────
|
|
46
|
+
/**
|
|
47
|
+
* Format an address with a label. Truncates middle for readability.
|
|
48
|
+
*/
|
|
49
|
+
function formatAddress(address) {
|
|
50
|
+
return `${address.slice(0, 8)}...${address.slice(-6)}`;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Format a full address (for display in detailed outputs).
|
|
54
|
+
*/
|
|
55
|
+
function formatAddressFull(address) {
|
|
56
|
+
return address;
|
|
57
|
+
}
|
|
58
|
+
// ─── Time formatting ───────────────────────────────────────────────────────
|
|
59
|
+
/**
|
|
60
|
+
* Format seconds as human-readable duration.
|
|
61
|
+
*/
|
|
62
|
+
function formatDuration(seconds) {
|
|
63
|
+
if (seconds === 0)
|
|
64
|
+
return '0 seconds';
|
|
65
|
+
const days = Math.floor(seconds / 86400);
|
|
66
|
+
const hours = Math.floor((seconds % 86400) / 3600);
|
|
67
|
+
const mins = Math.floor((seconds % 3600) / 60);
|
|
68
|
+
const secs = seconds % 60;
|
|
69
|
+
const parts = [];
|
|
70
|
+
if (days > 0)
|
|
71
|
+
parts.push(`${days}d`);
|
|
72
|
+
if (hours > 0)
|
|
73
|
+
parts.push(`${hours}h`);
|
|
74
|
+
if (mins > 0)
|
|
75
|
+
parts.push(`${mins}m`);
|
|
76
|
+
if (secs > 0)
|
|
77
|
+
parts.push(`${secs}s`);
|
|
78
|
+
return parts.join(' ');
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Format a Unix timestamp as ISO string.
|
|
82
|
+
*/
|
|
83
|
+
function formatTimestamp(ts) {
|
|
84
|
+
if (ts === 0)
|
|
85
|
+
return 'Never';
|
|
86
|
+
return new Date(ts * 1000).toISOString();
|
|
87
|
+
}
|
|
88
|
+
// ─── Status badges ─────────────────────────────────────────────────────────
|
|
89
|
+
/**
|
|
90
|
+
* Get a utilization badge based on percentage used.
|
|
91
|
+
*/
|
|
92
|
+
function utilizationBadge(pct) {
|
|
93
|
+
if (pct >= 90)
|
|
94
|
+
return '🔴 Critical';
|
|
95
|
+
if (pct >= 70)
|
|
96
|
+
return '🟠 High';
|
|
97
|
+
if (pct >= 40)
|
|
98
|
+
return '🟡 Moderate';
|
|
99
|
+
return '🟢 Healthy';
|
|
100
|
+
}
|
|
101
|
+
// ─── Chain info ────────────────────────────────────────────────────────────
|
|
102
|
+
function chainName(chainId) {
|
|
103
|
+
const names = {
|
|
104
|
+
8453: 'Base Mainnet',
|
|
105
|
+
84532: 'Base Sepolia (testnet)',
|
|
106
|
+
1: 'Ethereum Mainnet',
|
|
107
|
+
42161: 'Arbitrum One',
|
|
108
|
+
137: 'Polygon',
|
|
109
|
+
};
|
|
110
|
+
return names[chainId] ?? `Chain ${chainId}`;
|
|
111
|
+
}
|
|
112
|
+
function explorerTxUrl(txHash, chainId) {
|
|
113
|
+
const explorers = {
|
|
114
|
+
8453: 'https://basescan.org/tx',
|
|
115
|
+
84532: 'https://sepolia.basescan.org/tx',
|
|
116
|
+
1: 'https://etherscan.io/tx',
|
|
117
|
+
42161: 'https://arbiscan.io/tx',
|
|
118
|
+
137: 'https://polygonscan.com/tx',
|
|
119
|
+
};
|
|
120
|
+
const base = explorers[chainId] ?? 'https://basescan.org/tx';
|
|
121
|
+
return `${base}/${txHash}`;
|
|
122
|
+
}
|
|
123
|
+
function explorerAddressUrl(address, chainId) {
|
|
124
|
+
const explorers = {
|
|
125
|
+
8453: 'https://basescan.org/address',
|
|
126
|
+
84532: 'https://sepolia.basescan.org/address',
|
|
127
|
+
1: 'https://etherscan.io/address',
|
|
128
|
+
42161: 'https://arbiscan.io/address',
|
|
129
|
+
137: 'https://polygonscan.com/address',
|
|
130
|
+
};
|
|
131
|
+
const base = explorers[chainId] ?? 'https://basescan.org/address';
|
|
132
|
+
return `${base}/${address}`;
|
|
133
|
+
}
|
|
134
|
+
// ─── MCP content helpers ───────────────────────────────────────────────────
|
|
135
|
+
/**
|
|
136
|
+
* Create a standard MCP text content block.
|
|
137
|
+
*/
|
|
138
|
+
function textContent(text) {
|
|
139
|
+
return { type: 'text', text };
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Format an error into a human-readable MCP error response text.
|
|
143
|
+
*/
|
|
144
|
+
function formatError(error, context) {
|
|
145
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
146
|
+
return `❌ ${context} failed: ${msg}`;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Format a success message with optional details.
|
|
150
|
+
*/
|
|
151
|
+
function formatSuccess(message, details) {
|
|
152
|
+
let out = `✅ ${message}`;
|
|
153
|
+
if (details && Object.keys(details).length > 0) {
|
|
154
|
+
out += '\n';
|
|
155
|
+
for (const [key, value] of Object.entries(details)) {
|
|
156
|
+
out += `\n ${key}: ${value}`;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return out;
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":";;AAaA,8BAEC;AAMD,kCAEC;AAMD,4CAKC;AAOD,sCAEC;AAKD,8CAEC;AAOD,wCAcC;AAKD,0CAGC;AAOD,4CAKC;AAID,8BASC;AAED,sCAUC;AAED,gDAUC;AAOD,kCAEC;AAKD,kCAGC;AAKD,sCASC;AA1JD,+BAAgD;AAEhD,8EAA8E;AAE9E;;;GAGG;AACH,SAAgB,SAAS,CAAC,GAAW;IACnC,OAAO,GAAG,IAAA,kBAAW,EAAC,GAAG,CAAC,MAAM,CAAC;AACnC,CAAC;AAED;;;GAGG;AACH,SAAgB,WAAW,CAAC,MAAc,EAAE,QAAgB,EAAE,MAAc;IAC1E,OAAO,GAAG,IAAA,kBAAW,EAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,EAAE,CAAC;AACtD,CAAC;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,GAAW;IAC1C,IAAI,GAAG,KAAK,EAAE;QAAE,OAAO,gCAAgC,CAAC;IACxD,2CAA2C;IAC3C,IAAI,GAAG,GAAG,MAAM,CAAC,2BAA2B,CAAC;QAAE,OAAO,WAAW,CAAC;IAClE,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;AACxB,CAAC;AAED,8EAA8E;AAE9E;;GAEG;AACH,SAAgB,aAAa,CAAC,OA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AAC,OAAO,CAAC,IAAI,8BAA8B,CAAC;IAClE,OAAO,GAAG,IAAI,IAAI,OAAO,EAAE,CAAC;AAC9B,CAAC;AAED,8EAA8E;AAE9E;;GAEG;AACH,SAAgB,WAAW,CAAC,IAAY;IACtC,OAAO,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,CAAC;AACzC,CAAC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,KAAc,EAAE,OAAe;IACzD,MAAM,GAAG,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACnE,OAAO,KAAK,OAAO,YAAY,GAAG,EAAE,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,SAAgB,aAAa,CAAC,OAAe,EAAE,OAAgC;IAC7E,IAAI,GAAG,GAAG,KAAK,OAAO,EAAE,CAAC;IACzB,IAAI,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/C,GAAG,IAAI,IAAI,CAAC;QACZ,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YACnD,GAAG,IAAI,OAAO,GAAG,KAAK,KAAK,EAAE,CAAC;QAChC,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,23 +1,73 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentpay-mcp",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"mcpName": "io.github.up2itnow0822/agentpay",
|
|
5
|
+
"description": "AgentPay MCP Server — Non-custodial x402 payment layer for AI agents. Multi-chain wallets, spending limits, and machine-to-machine payments.",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"agentpay-mcp": "dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"README.md",
|
|
14
|
+
"claude_desktop_config.json",
|
|
15
|
+
".env.example"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"dev": "tsc --watch",
|
|
20
|
+
"start": "node dist/index.js",
|
|
21
|
+
"clean": "rm -rf dist",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"test:watch": "vitest",
|
|
24
|
+
"test:coverage": "vitest run --coverage",
|
|
25
|
+
"typecheck": "tsc --noEmit",
|
|
26
|
+
"lint": "eslint src/",
|
|
27
|
+
"prepublishOnly": "npm run clean && npm run build && npm run typecheck"
|
|
28
|
+
},
|
|
7
29
|
"keywords": [
|
|
8
|
-
"mcp",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
30
|
+
"mcp",
|
|
31
|
+
"model-context-protocol",
|
|
32
|
+
"agent-wallet",
|
|
33
|
+
"x402",
|
|
34
|
+
"crypto-payments",
|
|
35
|
+
"ai-agent",
|
|
36
|
+
"base",
|
|
37
|
+
"claude",
|
|
38
|
+
"cursor",
|
|
39
|
+
"windsurf",
|
|
40
|
+
"non-custodial",
|
|
41
|
+
"spend-limits",
|
|
42
|
+
"agentic-payments",
|
|
43
|
+
"autonomous-agent"
|
|
12
44
|
],
|
|
13
|
-
"author": "AI Agent Economy <max@ai-agent-economy.com>",
|
|
14
45
|
"license": "MIT",
|
|
15
46
|
"repository": {
|
|
16
47
|
"type": "git",
|
|
17
|
-
"url": "https://github.com/
|
|
48
|
+
"url": "https://github.com/up2itnow0822/agentpay-mcp"
|
|
49
|
+
},
|
|
50
|
+
"author": "AgentNexus",
|
|
51
|
+
"engines": {
|
|
52
|
+
"node": ">=18.0.0"
|
|
18
53
|
},
|
|
19
|
-
"homepage": "https://ai-agent-economy.com",
|
|
20
54
|
"dependencies": {
|
|
21
|
-
"@
|
|
55
|
+
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
56
|
+
"agentwallet-sdk": "^6.0.0",
|
|
57
|
+
"viem": "2.46.0",
|
|
58
|
+
"zod": "^3.22.4"
|
|
59
|
+
},
|
|
60
|
+
"overrides": {
|
|
61
|
+
"viem": "2.46.0"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@types/node": "^20.11.0",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^8.57.1",
|
|
66
|
+
"@typescript-eslint/parser": "^8.57.1",
|
|
67
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
68
|
+
"eslint": "^10.1.0",
|
|
69
|
+
"typescript": "^5.3.3",
|
|
70
|
+
"typescript-eslint": "^8.57.1",
|
|
71
|
+
"vitest": "^4.0.18"
|
|
22
72
|
}
|
|
23
73
|
}
|
package/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@agenteconomy/pay';
|
package/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* agentpay-mcp
|
|
3
|
-
*
|
|
4
|
-
* Non-custodial x402 payment layer for AI agents.
|
|
5
|
-
* Previously known as clawpay-mcp.
|
|
6
|
-
*
|
|
7
|
-
* Agents sign transactions locally on Base using USDC.
|
|
8
|
-
* No custodial infrastructure. No API keys required.
|
|
9
|
-
*
|
|
10
|
-
* Part of the AI Agent Economy: https://ai-agent-economy.com
|
|
11
|
-
* npm: https://www.npmjs.com/package/@agenteconomy/pay
|
|
12
|
-
*/
|
|
13
|
-
module.exports = require('@agenteconomy/pay');
|