x402-market for VS Code
io.github.asaishota/mcp-server
Let AI agents pay-per-call for any HTTP API via x402 on Base mainnet. One tool: pay_and_call.
client:VS Code
transport:stdio
runtime:npm
Install x402-market in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "market-api-url",
"description": "MARKET_API_URL",
"password": true
},
{
"type": "promptString",
"id": "mcp-buyer-private-key",
"description": "MCP_BUYER_PRIVATE_KEY",
"password": true
},
{
"type": "promptString",
"id": "base-rpc-url",
"description": "BASE_RPC_URL",
"password": true
},
{
"type": "promptString",
"id": "base-chain-id",
"description": "BASE_CHAIN_ID",
"password": true
},
{
"type": "promptString",
"id": "mcp-max-price",
"description": "MCP_MAX_PRICE",
"password": true
}
],
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@x402-market/mcp-server"
],
"env": {
"MARKET_API_URL": "${input:market-api-url}",
"MCP_BUYER_PRIVATE_KEY": "${input:mcp-buyer-private-key}",
"BASE_RPC_URL": "${input:base-rpc-url}",
"BASE_CHAIN_ID": "${input:base-chain-id}",
"MCP_MAX_PRICE": "${input:mcp-max-price}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs