KosmoKrator

data

PayPal MCP, CLI, and Lua Integration for AI Agents

PayPal integration docs for AI agents: MCP gateway setup, PayPal CLI commands, Lua API reference, credentials, and function schemas.

PayPal for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Agent Surfaces

Machine-Readable Metadata

Function Catalog

FunctionTypeParametersDescription
paypal.paypal_get_order Read read 1 Get details of a specific PayPal checkout order by its order ID. Returns full order information including status, payer details, and line items.
paypal.paypal_create_order Write write 4 Create a new PayPal checkout order. Specify the intent, purchase units with amounts, and optional payer details. Returns the created order with approval links.
paypal.paypal_capture_order Write write 2 Capture a previously approved PayPal checkout order by order ID. Use after the payer approves an order created with intent CAPTURE.
paypal.paypal_list_payments Read read 6 List PayPal payments. Returns payment IDs, states, amounts, and transaction details. Use filters to narrow results by count or date range.
paypal.paypal_get_payment Read read 1 Get details of a specific PayPal payment by its payment ID. Returns full payment information including state, amount, payer details, and transactions.
paypal.paypal_list_invoices Read read 4 List PayPal invoices. Returns invoice IDs, numbers, statuses, amounts, and recipient details. Use pagination parameters to navigate through results.
paypal.paypal_get_current_user Read read 1 Get the authenticated PayPal user's profile information. Returns the user's name, email, and other account details.