analytics
Mixpanel Analytics CLI for CI
Use the Mixpanel Analytics CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 7 read 0 write API key auth
Mixpanel Analytics CLI for CI
Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.
Use this shape when a pipeline needs to read or update an external service. The Mixpanel Analytics CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Mixpanel Analytics CLI for CI
kosmokrator integrations:configure mixpanel --set api_key="$MIXPANEL_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call mixpanel.mixpanel_get_cohort '{"id":"example_id"}' --json Discovery Before Execution
Agents and scripts can inspect Mixpanel Analytics docs and schemas before choosing a function.
kosmo integrations:docs mixpanel --json
kosmo integrations:docs mixpanel.mixpanel_get_cohort --json
kosmo integrations:schema mixpanel.mixpanel_get_cohort --json
kosmo integrations:search "Mixpanel Analytics" --json
kosmo integrations:list --json Useful Mixpanel Analytics CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
mixpanel.mixpanel_get_cohort | Read | id | Retrieve detailed information for a Mixpanel cohort by its ID. Returns cohort membership data and behavioral criteria. |
mixpanel.mixpanel_get_current_user | Read | none | Get the currently authenticated Mixpanel user. Returns account details for the API key owner — useful for verifying credentials and checking permissions. |
mixpanel.mixpanel_get_event | Read | name, type, unit, from, to | Retrieve analytics data for a specific Mixpanel event by name. Returns event counts and breakdowns over time. |
mixpanel.mixpanel_get_funnel | Read | id | Retrieve detailed conversion data for a Mixpanel funnel by its ID. Returns step-by-step conversion rates and drop-off analytics. |
mixpanel.mixpanel_list_cohorts | Read | none | List all behavioral cohorts in the Mixpanel project. Returns cohort names, IDs, and sizes. |
mixpanel.mixpanel_list_events | Read | type, unit, from, to, limit | List events from Mixpanel Analytics. Optionally filter by event type, time unit, or date range. Returns the most recent events matching the criteria. |
mixpanel.mixpanel_list_funnels | Read | none | List all funnels configured in the Mixpanel project. Returns funnel names, IDs, and basic configuration. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.