402 mcp for VS Code
dev.forgesworn/402-mcp
AI agents discover, pay for, and consume any Lightning-gated API autonomously
client:VS Code
transport:stdio
runtime:npm
Install 402 mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "nwc-uri",
"description": "NWC_URI",
"password": true
},
{
"type": "promptString",
"id": "max-auto-pay-sats",
"description": "MAX_AUTO_PAY_SATS",
"password": true
}
],
"servers": {
"402-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"402-mcp"
],
"env": {
"NWC_URI": "${input:nwc-uri}",
"MAX_AUTO_PAY_SATS": "${input:max-auto-pay-sats}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs