UNPKG

arbitrum-mcp-tools

Version:

A comprehensive collection of Model Context Protocol (MCP) tools for interacting with the Arbitrum blockchain. Enables AI assistants like Claude, Cursor, Windsurf, VS Code, Gemini CLI, and OpenAI Codex to perform blockchain operations including account an

90 lines (83 loc) 3.25 kB
#!/usr/bin/env node var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; import chalk from "chalk"; import { installCommand } from "./commands/install.js"; import { uninstallCommand } from "./commands/uninstall.js"; import { listCommand } from "./commands/list.js"; import { serveCommand } from "./commands/serve.js"; const VERSION = "2.0.0"; function main() { return __awaiter(this, void 0, void 0, function* () { const args = process.argv.slice(2); const command = args[0]; switch (command) { case "install": yield installCommand(); break; case "uninstall": yield uninstallCommand(); break; case "list": yield listCommand(); break; case "serve": yield serveCommand(); break; case "--version": case "-v": console.log(`arbitrum-mcp-tools v${VERSION}`); break; case "--help": case "-h": case undefined: printHelp(); break; default: console.log(chalk.red(`Unknown command: ${command}`)); console.log(""); printHelp(); process.exit(1); } }); } function printHelp() { console.log(` ${chalk.cyan.bold("Arbitrum MCP Tools")} - Universal MCP Server Installer ${chalk.yellow("Usage:")} npx arbitrum-mcp-tools ${chalk.green("<command>")} ${chalk.yellow("Commands:")} ${chalk.green("install")} Interactive installation wizard ${chalk.green("uninstall")} Interactive uninstall wizard ${chalk.green("list")} Show supported platforms and installation status ${chalk.green("serve")} Start the MCP server (used by MCP clients) ${chalk.yellow("Options:")} ${chalk.green("--version, -v")} Show version number ${chalk.green("--help, -h")} Show this help message ${chalk.yellow("Examples:")} npx arbitrum-mcp-tools install # Start interactive installation npx arbitrum-mcp-tools uninstall # Start interactive uninstall npx arbitrum-mcp-tools list # Show platform status ${chalk.yellow("Supported Platforms:")} • Claude Desktop / Claude Code • Cursor • Windsurf • VS Code • Gemini CLI • Antigravity • OpenAI Codex ${chalk.gray("For more information, visit:")} ${chalk.blue("https://github.com/utkucy/arbitrum-mcp-tools")} `); } main().catch((error) => { console.error(chalk.red("Error:"), error.message); process.exit(1); });