weakspot

v0.1.1
dev.weakspot/weakspot Checked 2 days ago Published 2 months ago

Audit Solidity and Rust smart contracts from your editor.

Values you need

VariableWhat it is
WEAKSPOT_PRIVATE_KEYoptional secret Private key of a funded Base wallet. This server SPENDS REAL USDC from it with no human in the loop — use a fresh wallet funded with only what you are willing to lose, never a personal or deployer key. Only weakspot_audit needs it; the pricing, status and wallet-status tools work without one.
WEAKSPOT_MAX_USDoptional Hard cap in USD on any single audit (default 4, the highest tier). Checked twice: against the tier price, and again against the amount the server actually quotes. An LLM decides when to call the paying tool, so this is the main spend control. Default: 4
WEAKSPOT_URLoptional Base URL of the Weakspot deployment to use. Defaults to https://weakspot.dev; override to point at staging or a self-hosted instance. Default: https://weakspot.dev
WEAKSPOT_RPC_URLoptional Base RPC endpoint, used only to read the wallet's USDC balance in weakspot_wallet_status. Nothing else needs it.

npm (npx) discovery passed

Requires Node.js 18+

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

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: weakspot_estimate_price, weakspot_audit, weakspot_audit_status, weakspot_wallet_status.
  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