Skip to content
VS Code

weakspot for VS Code

dev.weakspot/weakspot

Audit Solidity and Rust smart contracts from your editor. Pays per audit in USDC over x402.

client:VS Code transport:stdio runtime:npm

Install weakspot in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "weakspot-private-key",
      "description": "WEAKSPOT_PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "weakspot-max-usd",
      "description": "WEAKSPOT_MAX_USD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "weakspot-url",
      "description": "WEAKSPOT_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "weakspot-rpc-url",
      "description": "WEAKSPOT_RPC_URL",
      "password": true
    }
  ],
  "servers": {
    "weakspot": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "weakspot-mcp"
      ],
      "env": {
        "WEAKSPOT_PRIVATE_KEY": "${input:weakspot-private-key}",
        "WEAKSPOT_MAX_USD": "${input:weakspot-max-usd}",
        "WEAKSPOT_URL": "${input:weakspot-url}",
        "WEAKSPOT_RPC_URL": "${input:weakspot-rpc-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

weakspot in other clients