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
46 lines (45 loc) • 2.7 kB
JavaScript
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 { platforms, getPlatformIds } from "../clients/registry.js";
import { isPlatformDetected, isPlatformInstalled } from "../clients/base.js";
import { printHeader } from "../utils/ui.js";
export function listCommand() {
return __awaiter(this, void 0, void 0, function* () {
printHeader("Arbitrum MCP Tools - Supported Platforms");
console.log("");
console.log(chalk.gray("Platform │ Detected │ Global │ Local"));
console.log(chalk.gray("─────────────────────────────────────────────────────────────"));
const platformIds = getPlatformIds();
for (const platformId of platformIds) {
const platform = platforms[platformId];
const detected = isPlatformDetected(platformId);
const globalInstalled = isPlatformInstalled(platformId, platform, "global");
const localInstalled = isPlatformInstalled(platformId, platform, "local");
const name = platform.name.padEnd(28);
const detectedStr = detected
? chalk.green("✓")
: chalk.gray("-");
const globalStr = globalInstalled
? chalk.green("✓ installed")
: chalk.gray("-");
const localStr = localInstalled
? chalk.green("✓ installed")
: chalk.gray("-");
console.log(`${name} │ ${detectedStr.padEnd(18)} │ ${globalStr.padEnd(20)} │ ${localStr}`);
}
console.log("");
console.log(chalk.gray("Legend:"));
console.log(chalk.gray(" Detected: Platform app/folder found on system"));
console.log(chalk.gray(" Global: Installed in user's home directory (all projects)"));
console.log(chalk.gray(" Local: Installed in current directory (this project only)"));
console.log("");
});
}