x402 Trinity for VS Code
io.github.devmster/x402-trinity
Give an agent a wallet. Pays for x402 resources within hard limits. Base + USDC, gasless.
client:VS Code
transport:stdio
runtime:npm
Install x402 Trinity in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "x402-private-key",
"description": "X402_PRIVATE_KEY",
"password": true
},
{
"type": "promptString",
"id": "x402-max-per-request",
"description": "X402_MAX_PER_REQUEST",
"password": true
},
{
"type": "promptString",
"id": "x402-total-budget",
"description": "X402_TOTAL_BUDGET",
"password": true
},
{
"type": "promptString",
"id": "x402-budget-file",
"description": "X402_BUDGET_FILE",
"password": true
},
{
"type": "promptString",
"id": "x402-allow-hosts",
"description": "X402_ALLOW_HOSTS",
"password": true
},
{
"type": "promptString",
"id": "x402-networks",
"description": "X402_NETWORKS",
"password": true
}
],
"servers": {
"x402-trinity": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"x402-trinity"
],
"env": {
"X402_PRIVATE_KEY": "${input:x402-private-key}",
"X402_MAX_PER_REQUEST": "${input:x402-max-per-request}",
"X402_TOTAL_BUDGET": "${input:x402-total-budget}",
"X402_BUDGET_FILE": "${input:x402-budget-file}",
"X402_ALLOW_HOSTS": "${input:x402-allow-hosts}",
"X402_NETWORKS": "${input:x402-networks}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs