KosmoKrator

payments

Chargify MCP Integration for OpenAI Agents SDK

Connect Chargify to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 7 read 0 write API key auth

Connect Chargify 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.

Chargify MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

{
  "mcpServers": {
    "kosmokrator-chargify": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=chargify",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=chargify --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Chargify instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Chargify Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the Chargify integration catalog.

MCP toolSource functionTypeDescription
integration__chargify__chargify_list_subscriptions chargify.chargify_list_subscriptions Read List subscriptions from Chargify. Supports filtering by state (active, past_due, canceled, expired, trial, etc.) and pagination.
integration__chargify__chargify_get_subscription chargify.chargify_get_subscription Read Get detailed information for a single Chargify subscription by ID.
integration__chargify__chargify_list_customers chargify.chargify_list_customers Read List customers from Chargify. Supports pagination with page and per_page parameters.
integration__chargify__chargify_get_customer chargify.chargify_get_customer Read Get detailed information for a single Chargify customer by ID.
integration__chargify__chargify_list_products chargify.chargify_list_products Read List products available in Chargify. Supports pagination with page and per_page parameters.
integration__chargify__chargify_list_invoices chargify.chargify_list_invoices Read List invoices from Chargify. Supports filtering by status (open, paid, pending, voided) and pagination.
integration__chargify__chargify_get_current_user chargify.chargify_get_current_user Read Get the currently authenticated Chargify user. Useful for verifying API credentials.

Related Chargify Pages