UNPKG

agentcash

Version:

Generic MCP server for calling x402-protected APIs with automatic payment handling

38 lines (37 loc) • 1.08 kB
import { promptDeposit } from "./chunk-C7B6LEPE.js"; import "./chunk-DZNSJ2BA.js"; import "./chunk-BIO4Y27B.js"; import "./chunk-ISF2WVEZ.js"; import "./chunk-RAS5DZPQ.js"; import { getWallet } from "./chunk-F3KGAMIA.js"; import "./chunk-HTGTKVXB.js"; import "./chunk-KVSTJRSJ.js"; import "./chunk-U6FRXL3X.js"; import { log } from "./chunk-QZCSZB7E.js"; import "./chunk-YWNBUUBR.js"; import "./chunk-ITCDZXBZ.js"; // src/cli/commands/fund.ts import { intro, log as clackLog, outro } from "@clack/prompts"; import chalk from "chalk"; var fundMcpServer = async (args) => { intro(chalk.bold(`Fund ${chalk.hex("#2563eb")("agentcash MCP")}`)); const walletResult = await getWallet(); if (walletResult.isErr()) { log.error(walletResult.error.message); clackLog.error(walletResult.error.message); outro(chalk.bold.red("Failed to get wallet")); process.exit(1); } await promptDeposit("fund", args, walletResult.value); outro(chalk.bold.green("Your agentcash MCP server is funded!")); }; export { fundMcpServer }; //# sourceMappingURL=fund-FCOUEG7T.js.map