From e347bb268747b7366b2084e28c8c7fb2090f0c3d Mon Sep 17 00:00:00 2001 From: Matt Brooker Date: Fri, 3 Apr 2026 16:53:33 -0400 Subject: [PATCH] docs: add PostHog AI plugin to MCP docs Co-Authored-By: Claude Opus 4.6 (1M context) --- .../docs/model-context-protocol/claude-code.mdx | 14 +++++++++++++- contents/docs/model-context-protocol/codex.mdx | 10 +++++++++- contents/docs/model-context-protocol/index.mdx | 1 + 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/contents/docs/model-context-protocol/claude-code.mdx b/contents/docs/model-context-protocol/claude-code.mdx index 6f2d285bd3a5..dae2939a945a 100644 --- a/contents/docs/model-context-protocol/claude-code.mdx +++ b/contents/docs/model-context-protocol/claude-code.mdx @@ -23,7 +23,19 @@ The [PostHog Wizard](https://github.com/PostHog/wizard) can install the MCP serv npx @posthog/wizard mcp add ``` -## Manual setup +## Claude Code plugin + +You can also install PostHog as a [Claude Code plugin](https://github.com/PostHog/ai-plugin), which provides the same MCP tools along with built-in slash commands for quick access: + +```bash +claude plugin install posthog +``` + +After installing, run `/mcp` in Claude Code and follow the browser prompts to log in to PostHog. + +The plugin includes slash commands like `/posthog:flags`, `/posthog:insights`, `/posthog:errors`, `/posthog:experiments`, and more. + +## Manual MCP setup Run the following command in your shell. The next time you run [Claude Code](https://www.anthropic.com/claude-code), it will have access to the PostHog MCP. diff --git a/contents/docs/model-context-protocol/codex.mdx b/contents/docs/model-context-protocol/codex.mdx index 4e7763ec76db..d867cbea0f62 100644 --- a/contents/docs/model-context-protocol/codex.mdx +++ b/contents/docs/model-context-protocol/codex.mdx @@ -23,7 +23,15 @@ The [PostHog Wizard](https://github.com/PostHog/wizard) can install the MCP serv npx @posthog/wizard mcp add ``` -## Manual setup +## Codex plugin + +You can also install PostHog as a [Codex plugin](https://github.com/PostHog/ai-plugin): + +```bash +codex plugin install posthog +``` + +## Manual MCP setup Run the following command in your shell. [Codex](https://openai.com/index/introducing-codex/) supports native OAuth, so you'll be prompted to log in to PostHog when you first use the MCP. diff --git a/contents/docs/model-context-protocol/index.mdx b/contents/docs/model-context-protocol/index.mdx index e073b57014a8..c967ce0e2949 100644 --- a/contents/docs/model-context-protocol/index.mdx +++ b/contents/docs/model-context-protocol/index.mdx @@ -29,6 +29,7 @@ We're working on adding more supported tools to the wizard. If you're using anot ## Next steps +- [PostHog AI plugin](https://github.com/PostHog/ai-plugin): Install PostHog as a plugin for Claude Code, Codex, Cursor, and Gemini CLI - [Lovable integration](/docs/integrations/lovable): Set up PostHog in your Lovable project - [Replit integration](/docs/integrations/replit): Set up PostHog with Replit Agent - [v0 integration](/docs/integrations/v0): Set up PostHog with v0 and the Vercel Flags SDK