satsgate-mcp

v0.15.0
satsgate-mcp Checked 2 days ago Published 13 hours ago

Charge AI agents in Lightning and USDC on the same 402.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

discover

Request a URL with no payment and read a 402. Lightning fields are the price in sats, max_uses, access_seconds, and invoice expiry. An x402 offer adds network, asset, atomic amount, human USDC, payTo, resource, scheme, and expiry. Both are returned when the 402 offers both. Does not pay and does not sign.

ParameterTypeDescription
url *string
methodstring

quote

Same lookup as discover, with a short summary a person can read. Does not pay.

ParameterTypeDescription
url *string
methodstring

pay_and_fetch

Fetch a paywalled URL. mode human returns the Lightning invoice, a text QR, and a PNG when that rail is offered. Then call check_payment. mode nwc pays Lightning with the NWC URI from the environment, inside the sats budget. A token that still has uses or time left is reused and is not paid again. x402 is not signed here. Within the USD cap the result tells an external wallet what to pay. Pass that wallet's PAYMENT-SIGNATURE as payment_signature to retry. The same value can be sent again if the origin failed. Do not pass an L402 header in the sa…

ParameterTypeDescription
url *string
body
methodstring
modestring
payment_signature

remote_list_tools

List the tools of a remote MCP server at url. Free: it never calls a tool and never pays.

ParameterTypeDescription
url *string

remote_call_tool

Call one tool on a remote MCP server at url with arguments. If the tool is priced, mode human returns a Lightning invoice and a QR: pay it, then call remote_call_tool again with the same url and tool. mode nwc pays from the environment wallet inside the caps. payment_signature sends an x402 PAYMENT-SIGNATURE from an external wallet. A stored token is reused for later calls to the same tool.

ParameterTypeDescription
tool *string
url *string
arguments
modestring
payment_signature

check_payment

Poll a human payment and, once it has settled, fetch the URL. One call does one poll. payment_pending means call again after retry_after_seconds. When a restricted key and resource are known, this first calls the core no-preimage status route with consume=false, then retries the URL with the macaroon. Without a key, the URL itself is the poll: the proxy asks core. No preimage is sent.

ParameterTypeDescription
payment_hash *string

credits_balance

Read GET /v1/balance. An sgr_ key can read balance_msat, quota, and the estimate. This tool does not top up, change the payee, rotate a key, or create an account.

challenge_status

Read GET /v1/paywall/status with consume=false. Does not take a use and does not pay. The macaroon is the one stored by discover or pay_and_fetch. It is not a tool argument.

ParameterTypeDescription
payment_hash *string
expected_resource

list_sites

List approved, listed sites from the public directory. The default is GET /v1/sites on SATSGATE_MCP_CORE_URL. Each row has a name, slug, gate URL, and routes (price in sats and, when present, USD). SATSGATE_MCP_REGISTRY, when set, replaces that with a JSON file or another URL.