payments
PayPal MCP Integration for OpenAI Agents SDK
Connect PayPal to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect PayPal to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
PayPal MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-paypal": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=paypal",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=paypal --write=deny Why Use KosmoKrator Here
Expose only PayPal instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
PayPal Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the PayPal integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__paypal__paypal_list_orders | paypal.paypal_list_orders | Read | List PayPal checkout orders. Returns order IDs, statuses, and amounts. Use filters to narrow results by status or date range. |
integration__paypal__paypal_get_order | paypal.paypal_get_order | Read | Get details of a specific PayPal checkout order by its order ID. Returns full order information including status, payer details, and line items. |
integration__paypal__paypal_create_order | paypal.paypal_create_order | Write | Create a new PayPal checkout order. Specify the intent, purchase units with amounts, and optional payer details. Returns the created order with approval links. |
integration__paypal__paypal_list_payments | paypal.paypal_list_payments | Read | List PayPal payments. Returns payment IDs, states, amounts, and transaction details. Use filters to narrow results by count or date range. |
integration__paypal__paypal_get_payment | paypal.paypal_get_payment | Read | Get details of a specific PayPal payment by its payment ID. Returns full payment information including state, amount, payer details, and transactions. |
integration__paypal__paypal_list_invoices | paypal.paypal_list_invoices | Read | List PayPal invoices. Returns invoice IDs, numbers, statuses, amounts, and recipient details. Use pagination parameters to navigate through results. |
integration__paypal__paypal_get_current_user | paypal.paypal_get_current_user | Read | Get the authenticated PayPal user's profile information. Returns the user's name, email, and other account details. |