x402 Universal Payer for VS Code
io.github.nirholas/x402-bridge
Pay any x402 endpoint on the open web: auto-paying bridge with Bazaar discovery and spend caps.
client:VS Code
transport:stdio
runtime:npm
Install x402 Universal Payer in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "mcp-bridge-evm-private-key",
"description": "MCP_BRIDGE_EVM_PRIVATE_KEY",
"password": true
},
{
"type": "promptString",
"id": "mcp-bridge-svm-private-key",
"description": "MCP_BRIDGE_SVM_PRIVATE_KEY",
"password": true
},
{
"type": "promptString",
"id": "mcp-bridge-max-price-per-call-atomic",
"description": "MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC",
"password": true
},
{
"type": "promptString",
"id": "mcp-bridge-max-total-atomic",
"description": "MCP_BRIDGE_MAX_TOTAL_ATOMIC",
"password": true
},
{
"type": "promptString",
"id": "mcp-bridge-allowed-payto",
"description": "MCP_BRIDGE_ALLOWED_PAYTO",
"password": true
},
{
"type": "promptString",
"id": "mcp-bridge-allowed-hosts",
"description": "MCP_BRIDGE_ALLOWED_HOSTS",
"password": true
},
{
"type": "promptString",
"id": "mcp-bridge-allow-http",
"description": "MCP_BRIDGE_ALLOW_HTTP",
"password": true
},
{
"type": "promptString",
"id": "mcp-bridge-discover-limit",
"description": "MCP_BRIDGE_DISCOVER_LIMIT",
"password": true
},
{
"type": "promptString",
"id": "mcp-bridge-bazaar-url",
"description": "MCP_BRIDGE_BAZAAR_URL",
"password": true
},
{
"type": "promptString",
"id": "mcp-bridge-batch-deposit-multiplier",
"description": "MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER",
"password": true
},
{
"type": "promptString",
"id": "mcp-bridge-max-deposit-atomic",
"description": "MCP_BRIDGE_MAX_DEPOSIT_ATOMIC",
"password": true
},
{
"type": "promptString",
"id": "x402-mcp-bridge-channels-dir",
"description": "X402_MCP_BRIDGE_CHANNELS_DIR",
"password": true
},
{
"type": "promptString",
"id": "rpc-url-8453",
"description": "RPC_URL_8453",
"password": true
}
],
"servers": {
"x402-bridge": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@three-ws/mcp-bridge"
],
"env": {
"MCP_BRIDGE_EVM_PRIVATE_KEY": "${input:mcp-bridge-evm-private-key}",
"MCP_BRIDGE_SVM_PRIVATE_KEY": "${input:mcp-bridge-svm-private-key}",
"MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC": "${input:mcp-bridge-max-price-per-call-atomic}",
"MCP_BRIDGE_MAX_TOTAL_ATOMIC": "${input:mcp-bridge-max-total-atomic}",
"MCP_BRIDGE_ALLOWED_PAYTO": "${input:mcp-bridge-allowed-payto}",
"MCP_BRIDGE_ALLOWED_HOSTS": "${input:mcp-bridge-allowed-hosts}",
"MCP_BRIDGE_ALLOW_HTTP": "${input:mcp-bridge-allow-http}",
"MCP_BRIDGE_DISCOVER_LIMIT": "${input:mcp-bridge-discover-limit}",
"MCP_BRIDGE_BAZAAR_URL": "${input:mcp-bridge-bazaar-url}",
"MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER": "${input:mcp-bridge-batch-deposit-multiplier}",
"MCP_BRIDGE_MAX_DEPOSIT_ATOMIC": "${input:mcp-bridge-max-deposit-atomic}",
"X402_MCP_BRIDGE_CHANNELS_DIR": "${input:x402-mcp-bridge-channels-dir}",
"RPC_URL_8453": "${input:rpc-url-8453}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs