← Back to Plugins
MCP Server MCP

three.ws Agent Payments

github By github 👁 1 views ▲ 0 votes

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

Homepage Verified source GitHub

Install

npx -y @three-ws/[email protected]

Configuration Example

{
  "remotes": [],
  "packages": [
    {
      "registryType": "npm",
      "identifier": "@three-ws/agentcore-payments-mcp",
      "version": "0.1.4",
      "runtimeHint": "npx",
      "transport": {
        "type": "stdio"
      },
      "environmentVariables": [
        {
          "description": "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.",
          "format": "string",
          "isSecret": true,
          "name": "THREE_WS_SESSION"
        },
        {
          "description": "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.",
          "format": "string",
          "isSecret": true,
          "name": "PAYMENT_SESSION_TOKEN"
        },
        {
          "description": "Base URL of the three.ws API. Override only when self-hosting or targeting a preview deployment.",
          "format": "string",
          "default": "https://three.ws",
          "name": "THREE_WS_BASE"
        },
        {
          "description": "Per-request HTTP timeout in milliseconds. x402 payments involve on-chain settlement so this should be generous (default: 30000).",
          "format": "number",
          "default": "30000",
          "name": "THREE_WS_TIMEOUT_MS"
        }
      ]
    }
  ]
}
mcp model-context-protocol npm

Comments

Sign in to leave a comment

Loading comments...