Skip to content
VS Code

NextGen Token for VS Code

io.github.har50/ngtchain

Pay per call in NGT on Base: call any NGT x402 paywalled API with a capped budget. Signed locally.

client:VS Code transport:stdio runtime:npm

Install NextGen Token in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ngt-agent-private-key",
      "description": "NGT_AGENT_PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ngt-max-price",
      "description": "NGT_MAX_PRICE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ngt-session-budget",
      "description": "NGT_SESSION_BUDGET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ngt-usdc-max-price",
      "description": "NGT_USDC_MAX_PRICE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ngt-usdc-session-budget",
      "description": "NGT_USDC_SESSION_BUDGET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ngt-preferred-currency",
      "description": "NGT_PREFERRED_CURRENCY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ngt-max-funding",
      "description": "NGT_MAX_FUNDING",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ngt-host-headers",
      "description": "NGT_HOST_HEADERS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ngt-home",
      "description": "NGT_HOME",
      "password": true
    }
  ],
  "servers": {
    "ngtchain": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ngtchain/mcp"
      ],
      "env": {
        "NGT_AGENT_PRIVATE_KEY": "${input:ngt-agent-private-key}",
        "NGT_MAX_PRICE": "${input:ngt-max-price}",
        "NGT_SESSION_BUDGET": "${input:ngt-session-budget}",
        "NGT_USDC_MAX_PRICE": "${input:ngt-usdc-max-price}",
        "NGT_USDC_SESSION_BUDGET": "${input:ngt-usdc-session-budget}",
        "NGT_PREFERRED_CURRENCY": "${input:ngt-preferred-currency}",
        "NGT_MAX_FUNDING": "${input:ngt-max-funding}",
        "NGT_HOST_HEADERS": "${input:ngt-host-headers}",
        "NGT_HOME": "${input:ngt-home}"
      }
    }
  }
}

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

NextGen Token in other clients