NextGen Token

v1.7.4
io.github.Har50/ngtchain Checked 4 hours ago Published 10 days ago

Each call spends real NGT or USDC from a wallet you fund, within caps and a session budget.

Values you need

VariableWhat it is
NGT_AGENT_PRIVATE_KEYrequired secret Wallet key that signs NGT payments. Use a dedicated wallet.
NGT_MAX_PRICEoptional Most one call may pay, in NGT. Default 0.01.
NGT_SESSION_BUDGEToptional Most pay_and_fetch may spend per server session, in NGT. Default 0.1.
NGT_USDC_MAX_PRICEoptional Most one call may pay, in USDC on Base. Default 0, which keeps USDC off.
NGT_USDC_SESSION_BUDGEToptional Most pay_and_fetch may spend per server session, in USDC, separate from the NGT budget. Default 0, which keeps USDC off.
NGT_PREFERRED_CURRENCYoptional Token to pay when a seller takes both NGT and USDC: NGT or USDC. Default NGT.
NGT_MAX_FUNDINGoptional Most one fund_agent_wallet request may ask the user's browser wallet to send, in NGT. Default 10.
NGT_HOST_HEADERSoptional secret Headers sent to one host only, as JSON, e.g. {"api.example.com":{"x-api-key":"..."}}. The model never sees them.
NGT_HOMEoptional Folder for the local activity log and the pause flag. Default ~/.ngtchain.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add ngtchain -e 'NGT_AGENT_PRIVATE_KEY=<NGT_AGENT_PRIVATE_KEY>' -- npx -y --package=@ngtchain/mcp@1.7.4 ngt-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "ngtchain": {
      "args": [
        "-y",
        "--package=@ngtchain/mcp@1.7.4",
        "ngt-mcp"
      ],
      "command": "npx",
      "env": {
        "NGT_AGENT_PRIVATE_KEY": "<NGT_AGENT_PRIVATE_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ngtchain": {
      "args": [
        "-y",
        "--package=@ngtchain/mcp@1.7.4",
        "ngt-mcp"
      ],
      "command": "npx",
      "env": {
        "NGT_AGENT_PRIVATE_KEY": "<NGT_AGENT_PRIVATE_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "NGT_AGENT_PRIVATE_KEY",
      "id": "ngt-agent-private-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "ngtchain": {
      "args": [
        "-y",
        "--package=@ngtchain/mcp@1.7.4",
        "ngt-mcp"
      ],
      "command": "npx",
      "env": {
        "NGT_AGENT_PRIVATE_KEY": "${input:ngt-agent-private-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ngtchain]
command = "npx"
args = ["-y", "--package=@ngtchain/mcp@1.7.4", "ngt-mcp"]
env = { "NGT_AGENT_PRIVATE_KEY" = "<NGT_AGENT_PRIVATE_KEY>" }

For AI agents

  1. Ask the user for: NGT_AGENT_PRIVATE_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: fetch_ngt_stream, pay_and_fetch, ngt_wallet_status, fund_agent_wallet.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json