22 Commits

Author SHA1 Message Date
Matt Brooker 4122119322 Merge pull request #4 from PostHog/matt/deprecate-in-favor-of-ai-plugin
chore: deprecate in favor of PostHog/ai-plugin
2026-03-05 09:48:18 -05:00
Matt Brooker 2064056d22 chore: deprecate in favor of PostHog/ai-plugin
This repo has been superseded by https://github.com/PostHog/ai-plugin
which supports Claude Code, Cursor, and other AI coding tools.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 09:47:41 -05:00
Matt Brooker e565d8a53e chore: remove unnecessary technical note from README
Users don't need to know why the query parameter doesn't work.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 15:03:33 -05:00
Matt Brooker e776aac5a4 Merge pull request #1 from PostHog/matt/fix-eu-cloud-oauth
fix: support EU Cloud via POSTHOG_MCP_URL environment variable
2026-01-30 14:54:27 -05:00
Matt Brooker acf2de8fd4 refactor: use environment variable for regional configuration
Instead of manual file editing, EU and self-hosted users can now set
the POSTHOG_MCP_URL environment variable. This follows the pattern
used by other MCP servers like Postman and GitHub.

- Use template variable in .mcp.json: ${POSTHOG_MCP_URL:-default}
- Update README with env var instructions for EU Cloud
- Unify self-hosted config to use same env var
- Remove unnecessary .mcp-eu.json file

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 13:46:15 -05:00
Matt Brooker 322b2c7210 fix: use EU subdomain instead of query parameter for EU Cloud
The `?region=eu` query parameter does not work due to a known Claude Code
OAuth issue where it ignores the authorization_servers field from OAuth
metadata. EU users must use the mcp-eu.posthog.com subdomain instead.

Changes:
- Add .mcp-eu.json config file for EU Cloud users
- Update README with correct EU setup instructions
- Link to the Claude Code issue for context

Fixes the issue reported by Kristo in the docs thread.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 12:08:45 -05:00
Matt Brooker 0eac06faf6 fix: correct EU Cloud docs and update slash command list
- EU Cloud: clarify that region=eu param is recommended (auto-detect
  works but param is faster/more reliable)
- Remove "Coming soon" section - all commands are now available
- Add missing commands to list (logs, llm-analytics, docs, actions,
  search, workspace)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 15:43:03 -05:00
Matt Brooker f0ac089c4e fix: correct MCP tool names to hyphenated format
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 14:00:05 -05:00
Matt Brooker d85f40e5d1 feat: add actions, search, and workspace commands
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:59:46 -05:00
Matt Brooker b82e2fe780 feat: add posthog-instrumentation skill
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:59:43 -05:00
Matt Brooker 70e7ad5c2e chore: add missing metadata to plugin.json
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:59:40 -05:00
Matt Brooker 248fe30bc1 feat: add error-analyzer agent
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:59:36 -05:00
Matt Brooker 370c15fdb1 docs: update README with all slash commands
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:44:43 -05:00
Matt Brooker 5f31ec3556 feat: add logs, llm-analytics, and docs commands
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:44:31 -05:00
Matt Brooker 7119cf1fb0 feat: add slash commands for experiments, dashboards, surveys, and queries
Add four new slash commands to the PostHog Claude plugin:
- /experiments - A/B testing experiment management
- /dashboards - Dashboard management and insights
- /surveys - Survey creation and response tracking
- /query - HogQL queries and natural language analytics

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:40:51 -05:00
Matt Brooker 63ae192c11 fix: remove invalid documentation field from plugin.json
The 'documentation' field is not recognized by Claude Code plugin validation.
Also restored .mcp.json and fixed command frontmatter to match official examples.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:36:34 -05:00
Matt Brooker af6e12bc43 fix: move mcpServers config into plugin.json
Following Sentry's pattern, MCP servers should be defined
in plugin.json, not a separate .mcp.json file.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:32:45 -05:00
Matt Brooker 082d378b9f fix: add name field to command frontmatter
Commands need both name and description in frontmatter
to be recognized properly.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:31:35 -05:00
Matt Brooker 0ce39eed4f fix: use correct command structure (subdirectory/SKILL.md)
Commands must be in subdirectories with SKILL.md files:
- commands/flags/SKILL.md
- commands/insights/SKILL.md
- commands/errors/SKILL.md

Invoked as /posthog:flags, /posthog:insights, /posthog:errors

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:29:24 -05:00
Matt Brooker 54450bf8f0 feat: switch to OAuth authentication
- Use http transport with OAuth instead of API key
- Claude Code handles the OAuth flow interactively via /mcp
- Simpler setup for users

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:25:55 -05:00
Matt Brooker 7d9327a9e8 fix: correct command file structure
Commands should be direct .md files with YAML frontmatter,
not subdirectories with COMMAND.md files.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:16:00 -05:00
Matt Brooker 0cdbe03654 feat: initial PostHog plugin for Claude
Adds PostHog as a Claude Code plugin with:
- MCP server configuration pointing to mcp.posthog.com
- Slash commands for flags, insights, and errors
- Documentation and setup instructions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:06:55 -05:00