본문으로 건너뛰기
Skillpedia
커넥터 (MCP)41k · #6891

exploring-mcp-sessions

하는 일

이 스킬은 한 AI 에이전트가 한 번의 실행에서 한 도구 호출의 순서를 보여 주고, 어디서 잘못되었는지 보여 줍니다. MCP 서버를 운영하며 특정 세션을 이해하려는 사람을 위한 것입니다.

사용하는 경우

  • ✓특정 MCP 세션에서 무슨 일이 있었는지 보고 싶을 때.
  • ✓오류가 있었던 세션을 찾아야 할 때.
  • ✓누가 MCP 서버에 연결하고 있는지 알고 싶을 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/products/mcp_analytics/skills/exploring-mcp-sessions/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/mcp_analytics/skills/exploring-mcp-sessions/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 MCP 세션의 도구 호출을 보여 주고, 에이전트가 무엇을 하려고 했는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

세션을 나열하고, 세션의 도구 호출을 시간순으로 읽으며, 목표의 요약을 쓸 수 있습니다. 가장 어려운 질문만 맞춤 쿼리가 필요합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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_from is an absolute ISO timestamp; pass the session_start you got from posthog:mcp-analytics-sessions-list.
  • posthog:mcp-analytics-sessions-generate-intent — same date_from query 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_by takes column names, not response field names. Sort call volume as tool_call_count (not tool_calls). duration_seconds sorts 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_count is always 0. 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

자주 묻는 질문

MCP 세션이란 무엇인가요?

같은 세션 ID를 공유하는 모든 도구 호출이 시간순으로 모인, 에이전트 실행 하나입니다.

목표 요약은 누가 쓰나요?

세션 목표의 AI 요약이 생성되며, 첫 요청 후에 저장됩니다.

오류가 있는 세션을 찾을 수 있나요?

네. 오류가 있는 세션을 나열할 수 있으며, 그 경우에는 맞춤 SQL 쿼리를 씁니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
41k
순위
#6891
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬