@rackspay/wallet-mcp 1.2.2 → 1.2.4
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 +1 -1
- package/build/index.js +16 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ Every action is signed server-side using the agent's embedded Privy wallet. Buil
|
|
|
93
93
|
racks_mpp_request("https://mpp.dev/api/ping/paid")
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
The agent's existing EVM wallet address works on Tempo. Fund it with
|
|
96
|
+
The agent's existing EVM wallet address works on Tempo. Fund it with USDC.e via `racks_bridge_usdc(destination_chain="tempo")` to enable paid requests.
|
|
97
97
|
|
|
98
98
|
---
|
|
99
99
|
|
package/build/index.js
CHANGED
|
@@ -173,15 +173,16 @@ server.tool("racks_get_wallet_balance", "Return this agent's USDC balance on eve
|
|
|
173
173
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
174
174
|
server.tool("racks_bridge_usdc", "Bridge USDC between chains using the Relay solver network. " +
|
|
175
175
|
"Gas is abstracted — no ETH needed on the destination chain. " +
|
|
176
|
-
"Supports Solana → Arbitrum, Arbitrum → Arbitrum,
|
|
177
|
-
"Use this to move funds into Arbitrum before depositing to HyperCore for trading
|
|
176
|
+
"Supports Solana → Arbitrum, Arbitrum → Polygon, Arbitrum → Tempo, Tempo → Arbitrum. " +
|
|
177
|
+
"Use this to move funds into Arbitrum before depositing to HyperCore for trading, " +
|
|
178
|
+
"or to Tempo for MPP machine payments. " +
|
|
178
179
|
"IMPORTANT: call racks_get_wallet_balance first to confirm source chain balance.", {
|
|
179
180
|
origin_chain: z
|
|
180
|
-
.enum(["solana", "arbitrum", "polygon"])
|
|
181
|
-
.describe("Chain to bridge FROM. Use 'solana'
|
|
181
|
+
.enum(["solana", "arbitrum", "polygon", "tempo"])
|
|
182
|
+
.describe("Chain to bridge FROM. Use 'solana' for Solana wallet, 'tempo' for Tempo chain"),
|
|
182
183
|
destination_chain: z
|
|
183
|
-
.enum(["arbitrum", "polygon"])
|
|
184
|
-
.describe("Chain to bridge TO. Use 'arbitrum' to fund HyperCore trading"),
|
|
184
|
+
.enum(["arbitrum", "polygon", "tempo"])
|
|
185
|
+
.describe("Chain to bridge TO. Use 'arbitrum' to fund HyperCore trading, 'tempo' for MPP payments"),
|
|
185
186
|
amount_usdc: z
|
|
186
187
|
.number()
|
|
187
188
|
.positive()
|
|
@@ -210,7 +211,11 @@ server.tool("racks_bridge_usdc", "Bridge USDC between chains using the Relay sol
|
|
|
210
211
|
request_id: d.request_id,
|
|
211
212
|
},
|
|
212
213
|
steps: d.steps_executed,
|
|
213
|
-
note:
|
|
214
|
+
note: destination_chain === "tempo"
|
|
215
|
+
? `Funds arrive on Tempo in ~5-30 seconds. Then call racks_mpp_request to pay for AI services.`
|
|
216
|
+
: destination_chain === "arbitrum"
|
|
217
|
+
? `Funds arrive on Arbitrum in ~5-30 seconds. Then call racks_deposit_to_hypercore to fund trading.`
|
|
218
|
+
: `Funds arrive on ${destination_chain} in ~5-30 seconds.`,
|
|
214
219
|
status_url: d.status_endpoint,
|
|
215
220
|
}, null, 2),
|
|
216
221
|
},
|
|
@@ -580,7 +585,7 @@ server.tool("racks_mpp_request", "Make a paid HTTP request on behalf of this age
|
|
|
580
585
|
"Use this to call any MPP-enabled API (LLM inference, image generation, web search, data feeds, etc.). " +
|
|
581
586
|
"Returns the API response data plus the on-chain Tempo payment receipt. " +
|
|
582
587
|
"Requires USDC.e at the agent's EVM wallet address on the Tempo chain. " +
|
|
583
|
-
"Bridge USDC to Tempo first using racks_bridge_usdc if the agent's Tempo balance is low. " +
|
|
588
|
+
"Bridge USDC to Tempo first using racks_bridge_usdc(destination_chain='tempo') if the agent's Tempo balance is low. " +
|
|
584
589
|
"For POST endpoints (like OpenAI chat completions), set method to 'POST' and pass the request body.", {
|
|
585
590
|
url: z
|
|
586
591
|
.string()
|
|
@@ -601,8 +606,9 @@ server.tool("racks_mpp_request", "Make a paid HTTP request on behalf of this age
|
|
|
601
606
|
max_amount: z
|
|
602
607
|
.string()
|
|
603
608
|
.optional()
|
|
604
|
-
.describe("Maximum USDC
|
|
605
|
-
"
|
|
609
|
+
.describe("Maximum USDC to deposit into the payment channel (e.g. '0.50' for 50 cents, '1' for $1). " +
|
|
610
|
+
"Controls how much the agent is willing to spend. For session-based APIs (OpenAI, LLMs) " +
|
|
611
|
+
"this caps the auto-deposit into the payment channel. Defaults to $1 if not set."),
|
|
606
612
|
}, async ({ url, method, body, headers, max_amount }) => {
|
|
607
613
|
const payload = { url };
|
|
608
614
|
if (method)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rackspay/wallet-mcp",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "RACKS Wallet MCP — crypto trading, betting, and MPP payments for AI agents. Trade perps on Hyperliquid, bet on Polymarket, pay APIs via Tempo/MPP, and check on-chain balances via Claude Desktop or any MCP client.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|