mcp-server

v1.4.0
@payvia-sdk/mcp-server Checked 4 days ago Published 1 month ago

PayVia MCP Server - Enable AI agents to manage PayVia payment infrastructure (PayPal + Tranzila)

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

payvia_auth

Authenticate with PayVia via secure browser-based OAuth. Opens your default browser for login and authorization. Tokens are stored persistently for future sessions. Required before using dashboard operations.

payvia_auth_status

Check if currently authenticated with PayVia and show account info.

payvia_logout

Log out of PayVia by clearing stored authentication tokens.

payvia_register

Open the PayVia registration page in your browser. After registering, use payvia_auth to authenticate.

payvia_get_current_user

Get information about the currently authenticated user. Requires prior authentication via payvia_auth.

payvia_list_projects

List all projects for the authenticated user. Returns project IDs, names, and creation dates.

payvia_create_project

Create a new PayVia project. Returns the project ID and API key. The API key is shown only once - save it securely!

ParameterTypeDescription
name *stringProject name (e.g., 'My Chrome Extension')
descriptionstringOptional project description

payvia_get_project

Get detailed information about a specific project including PayPal configuration status.

ParameterTypeDescription
projectId *stringThe project UUID

payvia_update_project

Update project name or description.

ParameterTypeDescription
projectId *stringThe project UUID
descriptionstringNew project description
namestringNew project name

payvia_delete_project

Delete a project and all associated data. This action is irreversible!

ParameterTypeDescription
projectId *stringThe project UUID to delete

payvia_get_project_stats

Get statistics for a project including subscriber count, revenue, and recent activity.

ParameterTypeDescription
projectId *stringThe project UUID

payvia_get_api_key

Get the API key prefix for a project. Note: Full key is only shown on creation.

ParameterTypeDescription
projectId *stringThe project UUID

payvia_regenerate_api_key

Regenerate the API key for a project. The old key will stop working immediately. Returns the new full API key - save it securely!

ParameterTypeDescription
projectId *stringThe project UUID

payvia_get_paypal_config

Get PayPal configuration status for a project.

ParameterTypeDescription
projectId *stringThe project UUID

payvia_configure_paypal

Configure PayPal credentials for a project. This creates a PayPal webhook automatically. Get credentials from https://developer.paypal.com

ParameterTypeDescription
clientId *stringPayPal Client ID from developer dashboard
clientSecret *stringPayPal Client Secret from developer dashboard
projectId *stringThe project UUID

payvia_configure_tranzila

Configure Tranzila (Israeli payment gateway) credentials for a project. Supports separate test and live terminal names.

ParameterTypeDescription
projectId *stringThe project UUID
checkoutModestringCheckout UI mode (default: Iframe)
liveApiKeystringTranzila live API v2 key (optional)
livePasswordstringTranzila live terminal password
liveTerminalNamestringTranzila live terminal name
testApiKeystringTranzila test API v2 key (optional)
testPasswordstringTranzila test terminal password
testTerminalNamestringTranzila test/sandbox terminal name
useSandboxbooleanWhether to use test terminal (default: true)

payvia_list_plans

List all subscription plans for a project. Returns plan details including prices and billing intervals.

ParameterTypeDescription
projectId *stringThe project UUID

payvia_create_plan

Create a new subscription plan. Interval can be 'Once' (one-time), 'Monthly', or 'Yearly'. Optionally assign to a tier. Payment provider is chosen at checkout time, not per plan.

ParameterTypeDescription
currency *stringISO 4217 currency code (e.g., 'USD', 'EUR', 'ILS')
interval *stringBilling interval
name *stringPlan name (e.g., 'Pro Monthly')
price *numberPrice amount (e.g., 9.99)
projectId *stringThe project UUID
descriptionstringPlan description shown to customers
showOnPricingPagebooleanWhether to show on public pricing page (default: true)
tierIdstringOptional tier UUID to assign this plan to

payvia_get_plan

Get detailed information about a specific plan.

ParameterTypeDescription
planId *stringThe plan UUID
projectId *stringThe project UUID

payvia_update_plan

Update an existing plan. Note: Price changes may not affect existing subscriptions.

ParameterTypeDescription
planId *stringThe plan UUID
projectId *stringThe project UUID
descriptionstringNew plan description
namestringNew plan name
pricenumberNew price
showOnPricingPagebooleanWhether to show on pricing page

payvia_delete_plan

Delete a plan. Cannot delete plans with active subscriptions.

ParameterTypeDescription
planId *stringThe plan UUID
projectId *stringThe project UUID

payvia_sync_plan_to_paypal

Sync a plan to PayPal. Creates PayPal Product and Plan. Required before accepting payments for this plan.

ParameterTypeDescription
planId *stringThe plan UUID
projectId *stringThe project UUID

payvia_list_tiers

List all tiers for a project. Tiers are feature-based levels (Free, Pro, Super) that group plans.

ParameterTypeDescription
projectId *stringThe project UUID

payvia_create_tier

Create a new tier. Tiers define feature sets. Level determines ordering (0=Free, 1=Pro, 2=Super).

ParameterTypeDescription
level *numberNumeric level for ordering (0=Free, 1=Pro, 2=Super)
name *stringTier name (e.g., 'Pro')
projectId *stringThe project UUID
descriptionstringTier description
featuresarrayList of feature identifiers (e.g., ['api_access', 'priority_support'])
isFreebooleanWhether this is a free tier (no payment needed)

payvia_update_tier

Update an existing tier's name, description, features, or level.

ParameterTypeDescription
projectId *stringThe project UUID
tierId *stringThe tier UUID
descriptionstringNew tier description
featuresarrayNew feature list
isActivebooleanWhether the tier is active
isFreebooleanWhether this is a free tier
levelnumberNew level
namestringNew tier name

payvia_delete_tier

Delete a tier. If the tier has plans, it will be deactivated instead of deleted.

ParameterTypeDescription
projectId *stringThe project UUID
tierId *stringThe tier UUID

payvia_assign_plan_to_tier

Assign a plan to a tier. Plans are pricing options within a tier.

ParameterTypeDescription
planId *stringThe plan UUID to assign
projectId *stringThe project UUID
tierId *stringThe tier UUID

payvia_remove_plan_from_tier

Remove a plan from its tier (makes it a standalone plan).

ParameterTypeDescription
planId *stringThe plan UUID to remove
projectId *stringThe project UUID
tierId *stringThe tier UUID

payvia_list_subscribers

List a project's subscribers one page at a time, filtered and sorted server-side. Returns customer emails, plan, tier, status, expiry and total paid per subscription, plus totalCount (matching rows) and unfilteredCount (all rows). Use the filters instead of paging through everything.

ParameterTypeDescription
projectId *stringThe project UUID
createdFromstringCreated on or after this date, e.g. '2026-10-01'
createdTostringCreated on or before this date (inclusive)
expiresFromstringExpiry (trial end, else paid period end) on or after this date, e.g. '2026-11-01'
expiresTostringExpiry on or before this date (inclusive)
pagenumberPage number (default: 1)
pageSizenumberResults per page (default: 50, max: 200)
paidMaxnumberMaximum total paid (completed payments)
paidMinnumberMinimum total paid (completed payments)
planIdstringFilter by plan UUID
searchstringFilter by email or customer ID (partial, case-insensitive)
sortBystringSort field (default: createdAt)
sortDirstringSort direction (default: desc)
statusstringFilter by subscription status
tierIdstringFilter by tier UUID (includes subscriptions inheriting the tier from their plan)
trialDaysMaxnumberOnly trials with at most this many days remaining (expired trials count as 0)

payvia_add_subscriber

Manually add a subscriber (e.g., for beta testers or migrations). Creates customer with active subscription.

ParameterTypeDescription
email *stringSubscriber email address
planId *stringPlan UUID to subscribe to
projectId *stringThe project UUID
statusstringInitial subscription status (default: Active)

payvia_update_subscriber

Update a subscriber's status (e.g., suspend, cancel, reactivate).

ParameterTypeDescription
projectId *stringThe project UUID
status *stringNew subscription status
subscriptionId *stringThe subscription UUID

payvia_delete_subscriber

Delete a subscriber and their subscription data. This action is irreversible!

ParameterTypeDescription
projectId *stringThe project UUID
subscriptionId *stringThe subscription UUID

payvia_search_subscriber

Search for a specific subscriber by email. Returns all subscriptions, payments, and status details for the matching customer(s). Useful for investigating individual subscriber issues.

ParameterTypeDescription
email *stringEmail to search for (partial match supported)
projectId *stringThe project UUID

payvia_get_audit_logs

Get extension audit logs for a project. Shows license checks, trial starts, feature gates, upgrade clicks, and more. Supports filtering by date range, email, customer ID, action type, and result. Returns paginated logs with statistics.

ParameterTypeDescription
projectId *stringThe project UUID
actionstringFilter by action type
customerIdstringFilter by customer ID (partial match)
emailstringFilter by customer email (partial match)
fromstringStart date filter (inclusive), ISO format e.g. '2026-03-01'
pagenumberPage number (default: 1)
pageSizenumberResults per page (default: 50, max recommended: 100)
resultstringFilter by result
tostringEnd date filter (inclusive), ISO format e.g. '2026-03-21'

payvia_admin_query

Execute a read-only SQL query against the PayVia database. Admin access required. Only SELECT queries allowed. Returns up to 1000 rows. Useful for investigating data issues.

ParameterTypeDescription
sql *stringSQL SELECT query to execute (e.g., "SELECT * FROM subscriptions WHERE status = 'Canceled' LIMIT 10")

payvia_validate_license

Check if a user has an active subscription. Use this to verify premium access. Requires API key.

ParameterTypeDescription
apiKey *stringProject API key (X-API-Key header)
customerIdstringOr customer ID (external identifier)
emailstringCustomer email to validate

payvia_get_subscription_status

Get detailed subscription status for a customer. Returns plan, status, and billing period.

ParameterTypeDescription
apiKey *stringProject API key
customerId *stringCustomer ID to check

payvia_set_api_url

Set the PayVia API URL. Use for local development or self-hosted instances.

ParameterTypeDescription
url *stringAPI URL (e.g., 'http://localhost:5000' or 'https://api.payvia.site')