Machine Utility Foundry (Safe x402 Wallet & Trust Oracles)

v1.2.3
io.github.sapphire-japan/machine-utility-foundry Checked 2 days ago Published 7 hours ago

Auto-paying x402 MCP wallet bridge, honeypot & wash-trade oracle, route failover & ICP guardrails.

Values you need

VariableWhat it is
EVM_PRIVATE_KEYoptional secret Optional isolated Base Mainnet USDC micro-wallet private key (0x...) from `npx -y foundry-x402 new-wallet` for automatic EIP-3009 payment.
MAX_PAYMENT_USDoptional Maximum USD allowed on any single paid x402 call. Default: 0.05
SESSION_BUDGET_USDoptional Maximum cumulative USD spend allowed per MCP session. Default: 1.00

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add machine-utility-foundry -- npx -y foundry-x402@0.4.1 mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "machine-utility-foundry": {
      "args": [
        "-y",
        "foundry-x402@0.4.1",
        "mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "machine-utility-foundry": {
      "args": [
        "-y",
        "foundry-x402@0.4.1",
        "mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "machine-utility-foundry": {
      "args": [
        "-y",
        "foundry-x402@0.4.1",
        "mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.machine-utility-foundry]
command = "npx"
args = ["-y", "foundry-x402@0.4.1", "mcp"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http machine-utility-foundry https://machine-utility-foundry.meritoriousmatrix00.workers.dev/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "machine-utility-foundry": {
      "args": [
        "-y",
        "mcp-remote",
        "https://machine-utility-foundry.meritoriousmatrix00.workers.dev/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "machine-utility-foundry": {
      "url": "https://machine-utility-foundry.meritoriousmatrix00.workers.dev/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "machine-utility-foundry": {
      "type": "http",
      "url": "https://machine-utility-foundry.meritoriousmatrix00.workers.dev/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.machine-utility-foundry]
command = "npx"
args = ["-y", "mcp-remote", "https://machine-utility-foundry.meritoriousmatrix00.workers.dev/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: foundry_wallet_status, safe_x402_request.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json