mrmainspring 0.2.1 → 0.2.2
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/dist/cli.js +21 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -206,12 +206,29 @@ async function runInteractiveSetup() {
|
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
208
|
if (wantX402) {
|
|
209
|
-
clack.log.info("
|
|
209
|
+
clack.log.info("x402 setup — 3 steps:");
|
|
210
|
+
clack.log.info("Step 1 — Get your Casper account hash\n\n" +
|
|
211
|
+
" Your account hash identifies your Casper wallet on-chain.\n" +
|
|
212
|
+
" You need a Casper key pair (.pem file). If you already have one:\n\n" +
|
|
213
|
+
" casper-client account-address --public-key <path-to-public-key.pem>\n\n" +
|
|
214
|
+
" Or from a hex public key:\n\n" +
|
|
215
|
+
" casper-client account-address --public-key 02<your-66-char-hex-pubkey>\n\n" +
|
|
216
|
+
" The output looks like:\n" +
|
|
217
|
+
" account-hash-d0a57c6a95e74463de156cac761e17f0923eafc730ce3ce3a0c747c6598b0500\n\n" +
|
|
218
|
+
" Don't have casper-client? Install it:\n" +
|
|
219
|
+
" cargo install casper-client (or download from github.com/casper-ecosystem/casper-client-rs)");
|
|
220
|
+
clack.log.info("Step 2 — Add to your .env file\n\n" +
|
|
210
221
|
" X402_ENABLE_REAL_SETTLEMENT=true\n" +
|
|
211
222
|
" X402_SETTLEMENT_MODE=casper-cli\n" +
|
|
212
|
-
" X402_BUYER_ACCOUNT_HASH=account-hash-<
|
|
213
|
-
" CASPER_ENABLE_REAL_SUBMISSION=true\n
|
|
214
|
-
"
|
|
223
|
+
" X402_BUYER_ACCOUNT_HASH=account-hash-<paste your hash here>\n" +
|
|
224
|
+
" CASPER_ENABLE_REAL_SUBMISSION=true\n" +
|
|
225
|
+
" CASPER_RPC_URL=https://node.testnet.casper.network/rpc\n" +
|
|
226
|
+
" CASPER_ACCOUNT_KEY_PATH=./keys/your-secret-key.pem\n\n" +
|
|
227
|
+
" Your .env is at:\n" +
|
|
228
|
+
` ${result.envFile}`);
|
|
229
|
+
clack.log.info("Step 3 — Fund your account\n\n" +
|
|
230
|
+
" Testnet: use the Casper faucet at https://testnet.cspr.live/tools/faucet\n" +
|
|
231
|
+
" Search your account hash on https://testnet.cspr.live to verify balance.");
|
|
215
232
|
}
|
|
216
233
|
clack.outro("Restart your MCP clients to load the server.");
|
|
217
234
|
}
|
package/package.json
CHANGED