Skip to content
VS Code

Path402 — Tokenised Web Content for AI Agents for VS Code

io.github.b0ase/path402

AI agents discover, acquire, and re-serve tokenised web content via the $402 protocol

client:VS Code transport:stdio runtime:npm

Install Path402 — Tokenised Web Content for AI Agents in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "path402-api-url",
      "description": "PATH402_API_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "path402-default-budget",
      "description": "PATH402_DEFAULT_BUDGET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "path402-wallet-wif",
      "description": "PATH402_WALLET_WIF",
      "password": true
    }
  ],
  "servers": {
    "path402": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "path402"
      ],
      "env": {
        "PATH402_API_URL": "${input:path402-api-url}",
        "PATH402_DEFAULT_BUDGET": "${input:path402-default-budget}",
        "PATH402_WALLET_WIF": "${input:path402-wallet-wif}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Path402 — Tokenised Web Content for AI Agents in other clients