mcp

v0.3.3
com.solinkify/mcp Checked 2 days ago Published 4 months ago

Pay for x402 paywalls, datasets, and store checkouts on Solana, behind hard spending caps.

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

wallet_status

Show the agent wallet: address, SOL for fees, stablecoin balances, Solinkify pre-paid balance, and today's remaining spending budget under the caps. Takes no arguments and never moves money. Call it first when a payment fails, to tell an empty wallet apart from a cap that has been reached.

spend_authority_status

Show the on-chain SpendAuthority (ADR-008) that lets this agent pay merchants from an owner's wallet: per-payment cap, daily ceiling, what is spent/left today, and whether it has been revoked. All of it is enforced by the Solana program, not by this server. Read-only. Defaults to the SOLINKIFY_OWNER_WALLET the server is configured with.

ParameterTypeDescription
ownerstringBase58 wallet address of the funds owner to inspect. Omit to use the configured SOLINKIFY_OWNER_WALLET.

gate_find_endpoints

Browse the public Solinkify registry of x402-priced endpoints: paid APIs and content an agent can buy per request. Returns url, price per request, currency, network and access modes for each one, plus whether it fits the configured spending caps. Use it to find a paid data source without being handed the URL, then call gate_get_price or gate_fetch on the url. Read-only and free. Every entry was verified by machine: it answers a real HTTP 402 with a valid x402 manifest that pays the wallet which listed it.

ParameterTypeDescription
limitintegerMaximum number of endpoints to return, 1 to 100. Defaults to 20.
max_price_usdnumberDrop endpoints priced above this many USD per request. Omit to see every price.
querystringFree-text filter matched against title, description and tags. Omit to list everything. Plain keywords work best; there is no query syntax.

gate_get_price

Preview a Solinkify Gate paywall (HTTP 402 / x402) without paying: price, currency, and available access modes (pay-per-request, prepaid, subscription). Call this before gate_fetch to learn the price. Costs nothing and never moves money.

ParameterTypeDescription
url *stringAbsolute https:// URL of the gated page or API endpoint to inspect, e.g. https://example.com/api/report. If the URL is not paywalled the tool says so instead of returning a price.

gate_fetch

Fetch a Gate-protected URL, automatically paying the x402 paywall from the agent wallet (prepaid balance preferred, escrow payment otherwise). Returns the page content plus what was paid. Refuses and explains if the price exceeds the per-payment or daily cap. Ungated URLs are fetched normally and cost nothing.

ParameterTypeDescription
url *stringAbsolute https:// URL to retrieve. If it answers HTTP 402 the paywall is paid automatically, so check the price with gate_get_price first when the cost matters.

gate_check_delivery

Check what each side says was delivered for a payment: the hash the gate filed for what it served, and the hash the agent filed for what it received. Use it to confirm a purchase arrived intact, or to show a discrepancy. Read-only and free. Note it records WHICH bytes were delivered, not whether their contents were correct.

ParameterTypeDescription
payment_id *stringThe payment id returned by gate_fetch. Only payments settled through an escrow have one; prepaid and subscription access do not.

gate_prepaid_balance

Show the agent's Solinkify pre-paid balance for a stablecoin (deposited once, then debited per request without signing a transaction each time). Read-only.

ParameterTypeDescription
tokenstringStablecoin whose pre-paid balance to read. Balances are tracked per token, so USDC and USDT are separate pots. Defaults to USDC.

gate_prepaid_deposit

Deposit stablecoin into the Solinkify pre-paid balance so future gate_fetch calls debit it without a per-request transaction. Moves money: the full deposit counts against the daily spending cap at once, and the balance can be withdrawn later.

ParameterTypeDescription
amount_usd *numberAmount to deposit, in whole currency units (1.5 means $1.50, not 1500000 base units). Must be positive and within the remaining daily cap.
tokenstringStablecoin to deposit. Must match the token the target endpoints price in, since balances do not convert between tokens. Defaults to USDC.

gate_subscribe

Buy (or renew) a creator's subscription plan for a Gate endpoint: one payment, then unlimited access until expiry. Moves money. The plan price is read on-chain and checked against the spending caps before paying. Fails if the endpoint has no subscription plan.

ParameterTypeDescription
creator_wallet *stringThe creator's Solana wallet address in base58 (the endpoint owner, not the agent's own wallet). Shown in the 402 manifest returned by gate_get_price.
endpoint_id *stringIdentifier the creator gave the endpoint, e.g. "premium-api". Also comes from the 402 manifest; it is not a URL.

datahub_buy

Buy a DataHub dataset (x402 settlement on Solana, 99% goes to the seller) and return the download link. Pays in USDC by default; set token to USDT to settle in USDT instead. Spending caps apply.

ParameterTypeDescription
book_id *stringThe dataset id returned by datahub_search (a uuid), not its title. Buying the same dataset twice pays twice; use datahub_download to re-fetch something already owned.
tokenstringStablecoin to pay with. The agent wallet must hold this token and a little SOL for fees. Defaults to USDC.

datahub_review

Rate a DataHub dataset you have purchased (1-5 stars, optional comment). Verified-purchase only: the marketplace rejects wallets without a receipt for the dataset. No payment involved.

ParameterTypeDescription
book_id *stringId of a dataset this wallet has already bought. Reviewing without a purchase receipt is rejected.
rating *integerStar rating from 1 (worst) to 5 (best), whole numbers only.
commentstringOptional review text, up to 2000 characters. Published publicly next to the rating.

datahub_subscribe

Subscribe to a recurring DataHub dataset (time-based access, on-chain payment with the plan's USDC price). While active, every update of the dataset can be fetched with datahub_download — no per-download payment. Renewing extends from the current expiry. Spending caps apply.

ParameterTypeDescription
book_id *stringId of a dataset that offers a subscription plan. datahub_search reports one under "subscription"; datasets without a plan must be bought with datahub_buy instead.

datahub_download

Fetch a fresh download link for a DataHub dataset the agent already owns, either from a past purchase receipt or an active subscription. Proves ownership with a signed wallet message. Costs nothing, so prefer it over buying the same dataset again.

ParameterTypeDescription
book_id *stringId of a dataset this wallet already owns through datahub_buy or datahub_subscribe. Fails if there is no receipt and no active subscription.

pay_get_session

Inspect a Solinkify Pay checkout session (from a merchant store such as WooCommerce, OpenCart or PrestaShop) before paying: amount, merchant, order id, and status. Read-only, so call it first to confirm what pay_checkout would spend.

ParameterTypeDescription
session *stringEither the session id (a uuid) or the full checkout URL such as https://solinkify.com/checkout/<id>. Both forms are accepted; the id is extracted from the URL.

pay_checkout

Pay a pending Solinkify Pay checkout session. Settles on Solana, the merchant receives 99% instantly, and the order is marked paid. Spends from the agent wallet — or, when SOLINKIFY_OWNER_WALLET is configured, from the owner wallet under its on-chain SpendAuthority caps (ADR-008); check spend_authority_status first in that mode. Moves money and is not reversible, so confirm the amount with pay_get_session first. Sessions that are already paid or expired are refused.

ParameterTypeDescription
session *stringSession id (uuid) or full checkout URL of a session whose status is still "pending". The amount and token are fixed by the merchant and cannot be overridden here.