mixpanel-auth

Manage Mixpanel authentication sessions, accounts, projects, workspaces, and targets via CLI scripts.

5.3k|765|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/openai/plugins --skill mixpanel-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mixpanel-auth
Source: https://github.com/openai/plugins/tree/main/plugins/mixpanel-headless/skills/mixpanel-auth
Command: npx skills add https://github.com/openai/plugins --skill mixpanel-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Managing Mixpanel credentials across multiple accounts, projects, workspaces, and regions is error-prone and risky when secrets are handled manually. This Skill centralizes authentication state checks, OAuth login flows, and context switching through a single JSON-emitting script interface.

Core Features & Use Cases

  • Session and Account Management: Check active session state, list accounts, add service-account or OAuth accounts, and switch between them with structured JSON output.
  • Project, Workspace, and Target Switching: List and pin projects and workspaces, and save named (account, project, workspace) triples as targets for atomic context switching.
  • Secure Credential Handling: Enforces rules that secrets are never requested in conversation or passed as CLI arguments, guiding users to hidden-input prompts or environment variables like MP_OAUTH_TOKEN for CI contexts.
  • Use Case: An engineer setting up Mixpanel access in a CI pipeline can check bridge credentials, configure a bearer-token environment, and verify connectivity with account test without exposing secrets.

Quick Start

Ask the assistant to check your current Mixpanel session state and show which account and project are active.

Frequently Asked Questions about mixpanel-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I log in to Mixpanel from the command line?

Run `mp login` for the one-shot flow that detects the right auth method, derives the account name, and pins a default project. Use `--region eu` or `--region in` for non-US browser logins, or `--service-account` with MP_USERNAME and MP_SECRET set.

How do I switch between Mixpanel projects or accounts?

Run `project list` then `project use <id>` to change projects, or `account list` then `account use <name>` to change accounts. You can also save a named target combining account, project, and workspace and apply it atomically with `target use <name>`.

Can I use Mixpanel authentication in CI or non-interactive environments?

Yes, set MP_OAUTH_TOKEN, MP_PROJECT_ID, and MP_REGION environment variables to authenticate with a bearer token without a browser. The full service-account variable set (MP_USERNAME, MP_SECRET, MP_PROJECT_ID, MP_REGION) takes precedence when both are present.

Is it safe to pass Mixpanel secrets as CLI arguments?

No, secrets must never appear as CLI arguments or in conversation since they are visible in process lists and history. Use `mp account add` which prompts for the secret with hidden input, or provide credentials through environment variables.

How do I verify my Mixpanel credentials are working?

Run the `account test` subcommand, which always returns JSON with a result.ok field. A true value shows the connected user email and accessible project count; a false value includes the failure reason in result.error.