m2mcent for VS Code
io.github.evozim/m2mcent
x402 payment wrapper for AI Agents and MCP Servers. USDC settlements on Base L2.
client:VS Code
transport:stdio
runtime:npm
Install m2mcent in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "base-rpc-url",
"description": "BASE_RPC_URL",
"password": true
},
{
"type": "promptString",
"id": "relayer-private-key",
"description": "RELAYER_PRIVATE_KEY",
"password": true
},
{
"type": "promptString",
"id": "treasury-address",
"description": "TREASURY_ADDRESS",
"password": true
}
],
"servers": {
"m2mcent": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"m2mcent-sdk"
],
"env": {
"BASE_RPC_URL": "${input:base-rpc-url}",
"RELAYER_PRIVATE_KEY": "${input:relayer-private-key}",
"TREASURY_ADDRESS": "${input:treasury-address}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs