Yolfi Payments MCP
v0.2.0Let 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.
| Parameter | Type | Description |
|---|---|---|
agent | string | Stable lowercase slug for the MCP host, for example codex, claude-code, cursor, or local-agent. |
agentId | string | Compatibility 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.
| Parameter | Type | Description |
|---|---|---|
agent | string | Stable lowercase slug used for yolfi_agent_setup_start. |
agentId | string | Compatibility 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.
| Parameter | Type | Description |
|---|---|---|
agentName * | string | Name of the coding agent or MCP host, for example Codex, Claude Code, Cursor, or OpenClaw. |
email * | string | New Yolfi account email explicitly confirmed by the user. Existing Yolfi account emails are rejected and must use OAuth or browser setup. |
projectName * | string | User-approved product or project name for the Yolfi workspace. |
idempotencyKey | string | Optional retry key. Reuse the same value when calling this tool after email confirmation; a UUID is generated and persisted when omitted. |
integrationIntent | string | User-approved reason for the integration. Defaults to accept_payments when omitted. |
language | string | Optional preferred language code for agent-facing responses. |
metadata | object | Optional safe non-secret metadata. Do not include API keys, wallet private keys, tokens, or personal secrets. |
projectUrl | string | Optional public or local URL of the target product, if known. |
ref | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
email | string | Merchant support or account email approved by the user. |
name | string | Merchant 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.
| Parameter | Type | Description |
|---|---|---|
settlementAccounts * | array | Settlement 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.
| Parameter | Type | Description |
|---|---|---|
url * | string | HTTPS webhook URL in the target app, for example https://example.com/api/yolfi/webhook. |
adapter | string | Webhook adapter output format. Defaults to NONE if omitted. |
metadataFilters | object | Optional flat key/value metadata filters. A delivery must match every configured string value. |
name | string | Endpoint 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Webhook endpoint id. |
adapter | string | Webhook adapter output format. |
enabled | boolean | Whether this endpoint receives new deliveries. |
metadataFilters | object | Optional flat key/value metadata filters. A delivery must match every configured string value. |
name | string | Endpoint display name. |
url | string | HTTPS 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.
| Parameter | Type | Description |
|---|---|---|
confirm * | Must be true only after explicit user confirmation. | |
id * | string | Webhook endpoint id. |
yolfi_webhooks_delete Delete Yolfi Webhook Endpoint
Delete an unused webhook endpoint or disable it when existing delivery history must be retained.
| Parameter | Type | Description |
|---|---|---|
confirm * | Must be true only after explicit user confirmation. | |
id * | string | Webhook endpoint id. |
yolfi_paylinks_create Create Yolfi Paylink
Create a Yolfi payment link only after the user approves product name, amount, currency, and one-time or recurring payment type.
| Parameter | Type | Description |
|---|---|---|
name * | string | User-approved product, plan, donation, or access name shown on checkout. |
price * | string | User-approved decimal price, represented as a string to avoid numeric rounding. |
collectAddress | boolean | Whether checkout should collect the customer address. |
collectDateOfBirth | boolean | Whether checkout should collect the customer date of birth. |
collectEmail | boolean | Whether checkout should collect customer email. |
collectName | boolean | Whether checkout should collect the customer name. |
collectPhoneNumber | boolean | Whether checkout should collect the customer phone number. |
currency | string | Account currency code. Supported values are USD, EUR, and CNY. |
description | string | Optional user-approved customer-facing description. |
imageUrl | string | Optional public product image URL shown on checkout. |
metadata | object | Safe non-secret metadata such as source, productSlug, planId, or environment. |
recurringInterval | string | Recurring billing interval when type is RECURRING. |
type | string | Payment link type: ONE_TIME or RECURRING. |
yolfi_paylinks_list List Yolfi Paylinks
List existing Yolfi paylinks before creating new ones so agents can avoid duplicates after retries or timeouts.
| Parameter | Type | Description |
|---|---|---|
page | number | Page number. Defaults to 1. |
rows | number | Rows per page. Defaults to 10. |
yolfi_paylinks_get Get Yolfi Paylink
Get private paylink details by ID for verification, checkout wiring, or duplicate detection.
| Parameter | Type | Description |
|---|---|---|
id * | string | Yolfi paylink ID returned by yolfi_paylinks_create or yolfi_paylinks_list. |
yolfi_paylinks_disable Disable Yolfi Paylink
Disable a paylink. This is destructive and must only run after explicit user confirmation.
| Parameter | Type | Description |
|---|---|---|
confirm * | Must be true only after explicit user confirmation. | |
id * | string | Yolfi paylink ID to disable. |
yolfi_payments_create Create Yolfi Public Payment
Create a public payment invoice from an existing paylink for checkout integration, testing, or customer flow setup.
| Parameter | Type | Description |
|---|---|---|
customerEmail * | string | Customer email required for checkout and payment receipts. |
network * | string | Blockchain network identifier supported by the Yolfi organization, for example ARB. |
paylinkId * | string | Yolfi paylink ID used to create the customer payment. |
symbol * | string | Payment token symbol supported on the selected network, for example USDC. |
clientReferenceId | string | Optional merchant reference for the customer or order; returned as customer.clientReferenceId in webhook payloads. |
customerAddress | string | Optional customer address. |
customerDateOfBirth | string | Optional customer date of birth. |
customerName | string | Optional customer name. |
customerPhone | string | Optional customer phone number. |
language | string | Optional checkout language code supported by Yolfi. |
metadata | object | Safe non-secret metadata for the target app payment flow. |
subscriptionId | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Yolfi 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.
| Parameter | Type | Description |
|---|---|---|
payload * | string | Raw webhook request body string, before JSON parsing. |
signature * | string | X-Yolfi-Signature header value. |
endpointId | string | Webhook endpoint id whose signing secret was stored locally during create or rotate. YOLFI_WEBHOOK_SECRET takes precedence when set. |