Yolfi Payments MCP

v0.2.0
io.github.yolfinance/yolfi-agent Checked 2 days ago Published 4 months ago

Let AI agents add Yolfi crypto checkout, paylinks, webhooks, and status checks.

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

yolfi_agent_setup_start Start Yolfi Agent Setup

Start the preferred browser-based Yolfi authorization flow. Returns a login URL and stores only a short-lived check-in token in the protected local Yolfi config.

ParameterTypeDescription
agentstringStable lowercase slug for the MCP host, for example codex, claude-code, cursor, or local-agent.
agentIdstringCompatibility alias for agent. Use agent for new integrations.

yolfi_agent_checkin Check In Yolfi Agent Setup

Check whether browser authorization finished. On success, securely stores the returned yolfi_agent_* credential for later local SDK, CLI, and MCP calls.

ParameterTypeDescription
agentstringStable lowercase slug used for yolfi_agent_setup_start.
agentIdstringCompatibility alias for agent. Use agent for new integrations.

yolfi_agent_register Create Yolfi Account For User

Start signup for a new Yolfi user from a user-confirmed email. The first call sends a confirmation link and stores protected check-in state; call the same tool again after confirmation to store the one-time credential without exposing it.

ParameterTypeDescription
agentName *stringName of the coding agent or MCP host, for example Codex, Claude Code, Cursor, or OpenClaw.
email *stringNew Yolfi account email explicitly confirmed by the user. Existing Yolfi account emails are rejected and must use OAuth or browser setup.
projectName *stringUser-approved product or project name for the Yolfi workspace.
idempotencyKeystringOptional retry key. Reuse the same value when calling this tool after email confirmation; a UUID is generated and persisted when omitted.
integrationIntentstringUser-approved reason for the integration. Defaults to accept_payments when omitted.
languagestringOptional preferred language code for agent-facing responses.
metadataobjectOptional safe non-secret metadata. Do not include API keys, wallet private keys, tokens, or personal secrets.
projectUrlstringOptional public or local URL of the target product, if known.
refstringOptional source tag such as mcp, glama, npm, docs, codex, claude-code, or cursor.

yolfi_auth_status Check Yolfi Auth Status

Verify the active OAuth, local agent, or API-key credential and return the current Yolfi organization context before mutating payment settings.

yolfi_organization_get Get Yolfi Organization

Read the current Yolfi organization settings, including webhook and settlement configuration visible to this API key.

yolfi_organization_update Update Yolfi Organization

Update organization profile fields through the existing Yolfi organization endpoint. Do not invent merchant identity, support email, or settlement settings.

ParameterTypeDescription
emailstringMerchant support or account email approved by the user.
namestringMerchant or project display name approved by the user.

yolfi_settlement_configure Configure Yolfi Settlement Wallets

Configure settlement wallets after the user provides wallet addresses, networks, and enabled tokens. Never invent wallet addresses.

ParameterTypeDescription
settlementAccounts *arraySettlement account objects accepted by the Yolfi organization endpoint. Example fields: id, address, tokens.

yolfi_webhooks_configure Configure Yolfi Webhooks

Configure webhook delivery for the target app. The host must not invent backend URLs and must ensure the app verifies X-Yolfi-Signature.

ParameterTypeDescription
url *stringHTTPS webhook URL in the target app, for example https://example.com/api/yolfi/webhook.
adapterstringWebhook adapter output format. Defaults to NONE if omitted.
metadataFiltersobjectOptional flat key/value metadata filters. A delivery must match every configured string value.
namestringEndpoint display name, for example Merchant analytics.

yolfi_webhooks_list List Yolfi Webhook Endpoints

List all independent webhook endpoints configured for the current organization.

yolfi_webhooks_update Update Yolfi Webhook Endpoint

Update the name, URL, adapter, or enabled state of one independent Yolfi webhook endpoint.

ParameterTypeDescription
id *stringWebhook endpoint id.
adapterstringWebhook adapter output format.
enabledbooleanWhether this endpoint receives new deliveries.
metadataFiltersobjectOptional flat key/value metadata filters. A delivery must match every configured string value.
namestringEndpoint display name.
urlstringHTTPS webhook URL.

yolfi_webhooks_rotate_secret Rotate Yolfi Webhook Signing Secret

Rotate an endpoint-specific webhook signing secret and store it in the protected local Yolfi config without returning the plaintext secret.

ParameterTypeDescription
confirm *Must be true only after explicit user confirmation.
id *stringWebhook endpoint id.

yolfi_webhooks_delete Delete Yolfi Webhook Endpoint

Delete an unused webhook endpoint or disable it when existing delivery history must be retained.

ParameterTypeDescription
confirm *Must be true only after explicit user confirmation.
id *stringWebhook endpoint id.

yolfi_payments_create Create Yolfi Public Payment

Create a public payment invoice from an existing paylink for checkout integration, testing, or customer flow setup.

ParameterTypeDescription
customerEmail *stringCustomer email required for checkout and payment receipts.
network *stringBlockchain network identifier supported by the Yolfi organization, for example ARB.
paylinkId *stringYolfi paylink ID used to create the customer payment.
symbol *stringPayment token symbol supported on the selected network, for example USDC.
clientReferenceIdstringOptional merchant reference for the customer or order; returned as customer.clientReferenceId in webhook payloads.
customerAddressstringOptional customer address.
customerDateOfBirthstringOptional customer date of birth.
customerNamestringOptional customer name.
customerPhonestringOptional customer phone number.
languagestringOptional checkout language code supported by Yolfi.
metadataobjectSafe non-secret metadata for the target app payment flow.
subscriptionIdstringOptional existing subscription ID to associate the payment with.

yolfi_payments_status Get Yolfi Payment Status

Get public payment status by ID. Do not treat a frontend redirect as proof of payment.

ParameterTypeDescription
id *stringYolfi payment ID returned by yolfi_payments_create.

yolfi_webhooks_verify Verify Yolfi Webhook Signature

Verify an X-Yolfi-Signature HMAC over the raw JSON webhook payload before trusting payment events.

ParameterTypeDescription
payload *stringRaw webhook request body string, before JSON parsing.
signature *stringX-Yolfi-Signature header value.
endpointIdstringWebhook endpoint id whose signing secret was stored locally during create or rotate. YOLFI_WEBHOOK_SECRET takes precedence when set.