From 02bd45498c2516e1f9a8f4cb1dd49e64cdc64f85 Mon Sep 17 00:00:00 2001 From: Sharan Multani <1847452+smultani@users.noreply.github.com> Date: Wed, 8 Oct 2025 09:44:12 -0400 Subject: [PATCH 1/2] docs for gemini docs for gemini --- pages/docs/features/mcp.mdx | 58 ++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/pages/docs/features/mcp.mdx b/pages/docs/features/mcp.mdx index 3c8a4f0f00..5f5891282f 100644 --- a/pages/docs/features/mcp.mdx +++ b/pages/docs/features/mcp.mdx @@ -81,7 +81,7 @@ After the organization admin enables MCP: ## Implementation Guide -### Prerequisites (for Claude Free & Cursor) +### Prerequisites (for Claude Free, Cursor & Gemini CLI) **Install Node.js (if needed):** ```bash brew install node @@ -171,6 +171,62 @@ npx -y mcp-remote https://mcp.mixpanel.com/sse --allow-http --- +### Option 4: Google Gemini CLI + +**Additional Requirements:** +- [Gemini CLI](https://github.com/google/gemini-cli) installed +- Command line access + +**Setup Steps:** +1. Install the Gemini CLI by following [Gemini CLI installation instructions](https://github.com/google/gemini-cli#installation). +2. Authenticate to Google Gemini using your Google account: + ```bash + gemini + ``` +3. Configure Mixpanel MCP as a remote server and authorize: + ```bash + npx -y mcp-remote https://mcp.mixpanel.com/sse --allow-http + ``` + Running this command will provide a link in your terminal to authorize your access with Mixpanel. Follow the authorization steps in your browser. After logging in via OAuth, you should see a confirmation message. + +4. **Verify Configuration (or Create It Manually):** + After authorization, your `settings.json` file for the Gemini CLI should be updated automatically. You can find this file at `~/.gemini/settings.json`. To check, run: + ```bash + ls -la ~/.gemini + cat ~/.gemini/settings.json + ``` + The contents should be similar to the following: + ```json + { + "theme": "Default", + "selectedAuthType": "oauth-personal", + "mcpServers": { + "mixpanel-remote": { + "command": "npx", + "args": [ + "-y", + "mcp-remote", + "https://mcp.mixpanel.com/sse", + "--allow-http" + ] + } + }, + "preferredEditor": "vim" + } + ``` + This configuration ensures that the Gemini CLI knows how to connect to the Mixpanel remote server. + If `settings.json` is not available, create it manually using the same contents as above. + + +5. Complete Mixpanel authorization via the provided link (if not already done). +6. Run the Gemini CLI + Once configured, you can use the Gemini CLI with the specified model by running this command: + ```bash + gemini + ``` + +--- + ## Use Case Examples **Channel Performance Analysis** From cf9947a9504f62d9c9095eb46d0c522ad3c2f43e Mon Sep 17 00:00:00 2001 From: Sharan Multani <1847452+smultani@users.noreply.github.com> Date: Fri, 17 Oct 2025 06:48:43 -0400 Subject: [PATCH 2/2] Fixing URL Fixing URL --- pages/docs/features/mcp.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/docs/features/mcp.mdx b/pages/docs/features/mcp.mdx index 5f5891282f..2dd7e1bf3a 100644 --- a/pages/docs/features/mcp.mdx +++ b/pages/docs/features/mcp.mdx @@ -178,7 +178,7 @@ npx -y mcp-remote https://mcp.mixpanel.com/sse --allow-http - Command line access **Setup Steps:** -1. Install the Gemini CLI by following [Gemini CLI installation instructions](https://github.com/google/gemini-cli#installation). +1. Install the Gemini CLI by following [Gemini CLI installation instructions](https://github.com/google-gemini/gemini-cli?tab=readme-ov-file#-installation). 2. Authenticate to Google Gemini using your Google account: ```bash gemini