finance
Paystack MCP Integration for OpenAI Agents SDK
Connect Paystack to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Paystack 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.
Paystack MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-paystack": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=paystack",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=paystack --write=deny Why Use KosmoKrator Here
Expose only Paystack 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.
Paystack Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Paystack integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__paystack__paystack_list_transactions | paystack.paystack_list_transactions | Read | List transactions on your Paystack integration. Supports filtering by status, customer, and date range with pagination. |
integration__paystack__paystack_get_transaction | paystack.paystack_get_transaction | Read | Get details of a specific Paystack transaction by its ID or reference. |
integration__paystack__paystack_initialize_transaction | paystack.paystack_initialize_transaction | Write | Initialize a new payment transaction on Paystack. Returns an authorization URL for the customer to complete payment. |
integration__paystack__paystack_list_customers | paystack.paystack_list_customers | Read | List customers on your Paystack integration. Supports pagination. |
integration__paystack__paystack_create_customer | paystack.paystack_create_customer | Write | Create a new customer on your Paystack integration. |
integration__paystack__paystack_list_plans | paystack.paystack_list_plans | Read | List subscription plans on your Paystack integration. Supports filtering by status and pagination. |
integration__paystack__paystack_get_current_user | paystack.paystack_get_current_user | Read | Verify the Paystack API connection and retrieve integration payment session timeout settings. Use this to check if the API key is valid and the service is reachable. |