io.github.nirholas/agentcore-payments-mcp icon
io.github.nirholas

agentcore-payments-mcp

three.ws Agent Payments

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

stdioofficialservice

Package Details

Transportstdio
Runtimenpx

Environment Variables

THREE_WS_SESSION(str)
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_TOKEN(str)
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_BASE(str)
Default:https://three.ws

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

THREE_WS_TIMEOUT_MS(num)
Default:30000

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