MCP directory

three.ws Agent Payments

by github.com/nirholas · v0.1.5 · updated Oct 10, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

npm

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

Environment variables

  • THREE_WS_SESSIONsecret

    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_TOKENsecret

    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_BASE

    Base URL of the three.ws API. Override only when self-hosting or targeting a preview deployment.

  • THREE_WS_TIMEOUT_MS

    Per-request HTTP timeout in milliseconds. x402 payments involve on-chain settlement so this should be generous (default: 30000).

More from github.com/nirholas

More MCP servers