exploring-mcp-sessions
Skill by PostHog
Investigates individual PostHog MCP sessions, the ordered tool calls one agent made in a single run. It helps trace what the agent was trying to do and where it failed. Intended for people who run or monitor MCP servers on PostHog.
Install exploring-mcp-sessions
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/products/mcp_analytics/skills/exploring-mcp-sessions ~/.claude/skills/exploring-mcp-sessionsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/products/mcp_analytics/skills/exploring-mcp-sessions ~/.gemini/antigravity-cli/skills/exploring-mcp-sessionsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install exploring-mcp-sessions in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill explores single PostHog MCP sessions. A session is the set of $mcp_tool_call events that share a $session_id, ordered by timestamp. It gives the assistant typed tools to list recent sessions, read one session's tool calls in order, and generate an LLM summary of the agent's goal.
The skill also explains when to fall back to HogQL through posthog:execute-sql, for example to find errored sessions, resolve effective tool names, or run cross-session aggregations. It documents date-window and sorting quirks so results match the PostHog sessions UI. It is aimed at developers and operators who want to understand how AI agents use their MCP server.
Written from the project's SKILL.md and checked against it.
What it can do
- posthog:mcp-analytics-sessions-listLists sessions with one row per session, newest first.
- posthog:mcp-analytics-sessions-tool-callsReturns one session's tool calls in chronological order, with errors and durations.
- posthog:mcp-analytics-sessions-generate-intentGenerates an LLM summary of a session's goal and caches it after the first call.
- posthog:execute-sqlRuns HogQL for errored sessions, effective tool names and cross-session queries.
What you need
- A PostHog project that records $mcp_tool_call events
- The posthog:execute-sql tool for SQL queries
Try asking
- What did MCP session abc123 do, step by step?
- Which MCP sessions had errors in the last 7 days?
- What was the agent's goal in this MCP session?
Good to know
- The session detail tools look back 7 days by default unless date_from is passed.
- The session list has no error filter or error count, so error questions need SQL.
- The distinct_id_count field always returns 0.
- Goal summaries need LLM summarisation to be configured, otherwise the tool returns 503.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: products/mcp_analytics/skills/exploring-mcp-sessions/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB
Alternatives to exploring-mcp-sessions
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
exploring-mcp-sessions: common questions
Why does a PostHog MCP session show no tool calls?
The detail tools default to a 7-day lookback. Pass the session_start from the list row as date_from to load older sessions.
How can I find which MCP sessions failed?
The session list cannot filter by errors, so the skill uses a SQL query on $mcp_is_error with HAVING errors > 0.
What is a PostHog MCP session?
An MCP session is one agent run, made up of the $mcp_tool_call events that share the same $session_id.
How do I install exploring-mcp-sessions?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is exploring-mcp-sessions free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is exploring-mcp-sessions safe to use?
It scores 84 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to exploring-mcp-sessions?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
