exploring-mcp-sessions
Fungsinya
Skill ini menampilkan urutan pemanggilan alat yang dilakukan satu agent AI dalam satu kali eksekusi, dan di mana ia melakukan kesalahan. Ditujukan untuk orang yang menjalankan server MCP dan ingin memahami sesi tertentu.
Kapan dipakai
- βSaat Anda ingin melihat apa yang terjadi dalam satu sesi MCP tertentu.
- βSaat Anda perlu menemukan sesi mana yang mengalami error.
- βSaat Anda ingin tahu siapa yang terhubung ke server MCP Anda.
Link skill
https://github.com/PostHog/posthog/blob/master/products/mcp_analytics/skills/exploring-mcp-sessions/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTampilkan pemanggilan alat dari sesi MCP ini dan beri tahu saya apa yang coba dilakukan agent.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill mendaftar sesi, membaca pemanggilan alat sebuah sesi berdasarkan urutan waktu, dan dapat menulis ringkasan singkat tentang tujuannya. Hanya pertanyaan yang paling sulit yang memerlukan kueri khusus.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Exploring MCP sessions
An MCP session is one agent run: the set of $mcp_tool_call events sharing a
$session_id, ordered by timestamp.
Listing sessions, reading a session's tool calls, and summarising its goal each
have a typed tool β reach for those first. Drop to HogQL only for the three
things the typed tools genuinely can't do (see
When to drop to SQL). The full $mcp_* property schema
and query recipes live in the shared reference:
models-mcp.md.
Tools
| Tool | Purpose |
|---|---|
posthog:mcp-analytics-sessions-list |
List sessions β one row per session, newest first |
posthog:mcp-analytics-sessions-tool-calls |
One session's tool calls, chronological |
posthog:mcp-analytics-sessions-generate-intent |
LLM summary of a session's goal (cached after first call) |
posthog:execute-sql |
Errored sessions, effective tool names, cross-session cuts |
The three mcp-analytics-* tools run the same code as the sessions UI, so results
match the screen. If they aren't in your tool list, fall back to posthog:execute-sql.
The date-window trap β read this first
The two detail tools default to a 7-day lookback. A session you found in a
list that reaches further back will come back empty unless you pass its
session_start as date_from:
posthog:mcp-analytics-sessions-tool-callsβdate_fromis an absolute ISO timestamp; pass thesession_startyou got fromposthog:mcp-analytics-sessions-list.posthog:mcp-analytics-sessions-generate-intentβ samedate_fromquery param, same reason.
Empty tool calls for a session that visibly exists is almost always this, not a
data problem. Carry session_start forward from the list row.
Workflow: list recent sessions
posthog:mcp-analytics-sessions-list
{ "date_from": "-7d", "order_by": "-session_start", "limit": 100 }
Each row: session_id, tool_calls, session_start, session_end,
tools_used, mcp_client_name, distinct_id (+ resolved person_email /
person_name), and intent (empty until generated). Response is
{ results, has_next } β page with limit / offset.
Three sharp edges:
order_bytakes column names, not response field names. Sort call volume astool_call_count(nottool_calls).duration_secondssorts fine even though it isn't returned. An unrecognised key silently falls back to newest-first β so verify the order you got is the order you asked for. Valid:session_id,session_start,session_end,duration_seconds,tool_call_count,mcp_client_name,distinct_id; prefix-to descend.- There is no error filter and no error count on a session row. "Which sessions had errors?" is a SQL question β see below.
distinct_id_countis always0. The field is in the response but the backend never populates it, so don't read it as "one distinct id per session" β it says nothing. To count distinct ids in a session, use SQL.
search does a case-insensitive substring match across session_id,
distinct_id, mcp_client_name, and tools_used.
Workflow: read one session's tool calls
posthog:mcp-analytics-sessions-tool-calls
{ "id": "<session_id>", "date_from": "<session_start>", "limit": 500 }
Chronological tool_name, intent, timestamp, duration_ms, is_error,
error_message β read top to bottom to reconstruct the run. limit defaults to
500 (also the max), which is the whole page for almost every session; has_next
tells you if more remain.
Caveat: tool_name here is the raw $mcp_tool_name. Unlike the tool-quality
and tool-detail tools, this endpoint does not resolve the inner tool of a
single-exec wrapper call, so wrapper calls show the wrapper. When the inner tool
is what matters (comparing against a tool-quality ranking, tracing a specific
tool through a run), use the SQL recipe below instead. The same applies to
tools_used on the session list.
Workflow: summarise the agent's goal
posthog:mcp-analytics-sessions-generate-intent
{ "id": "<session_id>", "date_from": "<session_start>" }
Summarises the ses
Pertanyaan umum
Apa itu sesi MCP?
Itu adalah satu eksekusi agent, yang terdiri dari semua pemanggilan alat yang memiliki ID sesi yang sama, berurutan menurut waktu.
Siapa yang menulis ringkasan tujuan?
Ringkasan AI tentang tujuan sesi dibuat, dan disimpan setelah permintaan pertama.
Bisakah menemukan sesi yang mengalami error?
Bisa. Skill dapat mendaftar sesi yang mengalami error, dengan menggunakan kueri SQL khusus untuk kasus itu.
Detail
Deskripsi asli dari pembuat
Investigate individual PostHog MCP sessions β the sequence of tool calls a single agent made in one run, what it was trying to do, and where it went wrong. Use when the user asks "what did this MCP session do?", "show me the tool calls for session X", "what was the agent's goal?", "which sessions had errors?", "who is connecting to my MCP?", or pastes an MCP analytics sessions URL.
repo: PostHog/posthog
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6891
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-container-builds
41kMembantu agent Anda membangun image Docker di builder jarak jauh Depot, termasuk image multi-platform, pengiriman ke registry, dan perbaikan kegagalan build.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
Skill serupa
mcporter
394kMembantu agent Anda mendaftar, memanggil, dan memeriksa server MCP beserta alatnya lewat HTTP atau stdio, serta mengatur pengaturan login mereka.
fastmcp
260kMembantu Anda membangun, menguji, dan menerapkan server MCP Python yang memberi asisten AI akses ke API, basis data, atau file Anda sebagai alat.
mcp-oauth-remote-gateway
260kMemandu Anda masuk dengan OAuth untuk server MCP jarak jauh saat Hermes berjalan di server, di mana proses masuk browser biasa tidak dapat menjangkaunya.