Skip to content
VS Code

HPP x402 MCP Bridge for VS Code

io.github.hpp-io/x402-mcp-bridge

MCP bridge for autonomous x402 payments in HPP USDC.e — discover and pay for services per call.

client:VS Code transport:stdio runtime:npm

Install HPP x402 MCP Bridge in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "delegate-private-key",
      "description": "DELEGATE_PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hpp-network",
      "description": "HPP_NETWORK",
      "password": true
    },
    {
      "type": "promptString",
      "id": "resource-server-url",
      "description": "RESOURCE_SERVER_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "safe-address",
      "description": "SAFE_ADDRESS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "allowance-module-address",
      "description": "ALLOWANCE_MODULE_ADDRESS",
      "password": true
    }
  ],
  "servers": {
    "x402-mcp-bridge": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hpp-io/x402-mcp-bridge"
      ],
      "env": {
        "DELEGATE_PRIVATE_KEY": "${input:delegate-private-key}",
        "HPP_NETWORK": "${input:hpp-network}",
        "RESOURCE_SERVER_URL": "${input:resource-server-url}",
        "SAFE_ADDRESS": "${input:safe-address}",
        "ALLOWANCE_MODULE_ADDRESS": "${input:allowance-module-address}"
      }
    }
  }
}

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

HPP x402 MCP Bridge in other clients