three.ws Agent Payments

v0.1.5
io.github.nirholas/agentcore-payments-mcp Checked 2 hours ago Published 1 month ago

Governed x402 payment sessions: pay any endpoint with budget, allowlist & per-tx caps, no key.

Values you need

VariableWhat it is
THREE_WS_SESSIONoptional secret Your three.ws session token (value of the `__Host-sid` cookie from a signed-in browser). Required for account management operations: create_payment_session, list_payment_sessions, check_payment_session, cancel_payment_session.
PAYMENT_SESSION_TOKENoptional secret A payment session bearer token (starts with 'pss_') from create_payment_session. Used by the agent for pay_with_session calls when no inline token is passed. Treat like a spending card — it authorizes payments up to the session's budget.
THREE_WS_BASEoptional Base URL of the three.ws API. Override only when self-hosting or targeting a preview deployment. Default: https://three.ws
THREE_WS_TIMEOUT_MSoptional Per-request HTTP timeout in milliseconds. x402 payments involve on-chain settlement so this should be generous (default: 30000). Default: 30000

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add agentcore-payments-mcp -- npx -y @three-ws/agentcore-payments-mcp@0.1.5
Add to claude_desktop_config.json
{
  "mcpServers": {
    "agentcore-payments-mcp": {
      "args": [
        "-y",
        "@three-ws/agentcore-payments-mcp@0.1.5"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "agentcore-payments-mcp": {
      "args": [
        "-y",
        "@three-ws/agentcore-payments-mcp@0.1.5"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "agentcore-payments-mcp": {
      "args": [
        "-y",
        "@three-ws/agentcore-payments-mcp@0.1.5"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.agentcore-payments-mcp]
command = "npx"
args = ["-y", "@three-ws/agentcore-payments-mcp@0.1.5"]

For AI agents

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: create_payment_session, pay_with_session, check_payment_session, list_payment_sessions, cancel_payment_session.
  4. 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