x402 Wallet for VS Code
io.github.nirholas/x402-mcp
Self-custodial x402 wallet for AI agents: pay any service in USDC or $THREE from your own key.
client:VS Code
transport:stdio
runtime:npm
Install x402 Wallet in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "solana-secret-key",
"description": "SOLANA_SECRET_KEY",
"password": true
},
{
"type": "promptString",
"id": "solana-rpc-url",
"description": "SOLANA_RPC_URL",
"password": true
},
{
"type": "promptString",
"id": "max-pay-usd",
"description": "MAX_PAY_USD",
"password": true
},
{
"type": "promptString",
"id": "require-confirm",
"description": "REQUIRE_CONFIRM",
"password": true
},
{
"type": "promptString",
"id": "three-ws-base",
"description": "THREE_WS_BASE",
"password": true
}
],
"servers": {
"x402-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@three-ws/x402-mcp"
],
"env": {
"SOLANA_SECRET_KEY": "${input:solana-secret-key}",
"SOLANA_RPC_URL": "${input:solana-rpc-url}",
"MAX_PAY_USD": "${input:max-pay-usd}",
"REQUIRE_CONFIRM": "${input:require-confirm}",
"THREE_WS_BASE": "${input:three-ws-base}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs