KosmoKrator

analytics

ChartMogul MCP Integration for OpenAI Agents SDK

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

ChartMogul MCP Config for OpenAI Agents SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

Expose only ChartMogul 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.

ChartMogul Tools Visible to OpenAI Agents

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

MCP toolSource functionTypeDescription
integration__chartmogul__chartmogul_list_customers chartmogul.chartmogul_list_customers Read List customers from ChartMogul. Supports filtering by status or email and pagination. Returns customer details including UUID, name, email, company, and status.
integration__chartmogul__chartmogul_get_customer chartmogul.chartmogul_get_customer Read Get details for a single ChartMogul customer by UUID. Returns full customer information including attributes, address, and custom fields.
integration__chartmogul__chartmogul_list_subscriptions chartmogul.chartmogul_list_subscriptions Read List subscriptions from ChartMogul. Supports filtering by customer UUID or status and pagination. Returns subscription details including plan, dates, and state.
integration__chartmogul__chartmogul_list_plans chartmogul.chartmogul_list_plans Read List billing plans from ChartMogul. Returns plan details including name, interval, amount, and currency.
integration__chartmogul__chartmogul_list_invoices chartmogul.chartmogul_list_invoices Read List invoices from ChartMogul. Supports filtering by customer UUID and pagination. Returns invoice details including amount, dates, line items, and status.
integration__chartmogul__chartmogul_get_metrics chartmogul.chartmogul_get_metrics Read Query subscription analytics metrics from ChartMogul. Returns key metrics like MRR, ARR, churn rate, customer count, and more. Specify a date range and interval for timeseries data.
integration__chartmogul__chartmogul_get_current_user chartmogul.chartmogul_get_current_user Read Get the currently authenticated ChartMogul user. Returns user details including name, email, and account information. Useful for verifying API credentials.

Related ChartMogul Pages