cryptoiz-mcp 4.15.5 → 4.15.6
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/index.js +7 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprot
|
|
|
9
9
|
import { Connection, Keypair, PublicKey, Transaction, SystemProgram, VersionedTransaction, TransactionMessage } from '@solana/web3.js';
|
|
10
10
|
import bs58 from 'bs58';
|
|
11
11
|
|
|
12
|
-
var VERSION = 'v4.15.
|
|
12
|
+
var VERSION = 'v4.15.6';
|
|
13
13
|
var GATEWAY = 'https://rehqwsypjnjirhuiapqh.supabase.co/functions/v1/mcp-x402-gateway';
|
|
14
14
|
var RECIPIENT = 'DsKmdkYx49Xc1WhqMUAztwhdYPTqieyC98VmnnJdgpXX';
|
|
15
15
|
var USDC_MINT = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
|
|
@@ -245,9 +245,14 @@ async function callTool(toolName, args) {
|
|
|
245
245
|
try {
|
|
246
246
|
var txB64 = await buildV2PaymentPayload(amount, v2FeePayer);
|
|
247
247
|
|
|
248
|
-
// Payload
|
|
248
|
+
// Payload per @x402/svm facilitator: must include 'accepted' field
|
|
249
|
+
// Facilitator verify() checks payload.accepted.scheme and payload.accepted.network
|
|
249
250
|
var v2Payload = {
|
|
250
251
|
x402Version: 2,
|
|
252
|
+
accepted: {
|
|
253
|
+
scheme: paymentRequirements.scheme || 'exact',
|
|
254
|
+
network: paymentRequirements.network || 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp',
|
|
255
|
+
},
|
|
251
256
|
payload: {
|
|
252
257
|
transaction: txB64,
|
|
253
258
|
},
|
package/package.json
CHANGED