provider mcp_analytics POST
/api/projects/{project_id}/mcp_analytics/sessions/{id}/generate_intent/ @utdk/posthog
/api/projects/{project_id}/mcp_analytics/sessions/{id}/generate_intent/ mcp_analytics_sessions_generate_intent
Generate (or return the cached) LLM summary of the agent's goal for a session, derived from its recorded $mcp_intents. The first call summarises and persists the result; subsequent calls return the stored summary.
- date_from query
- Absolute ISO timestamp lower bound for the intent scan — pass the session's start so older sessions resolve. Defaults to a 7-day lookback when omitted.
- string
- id path required
- A UUID string identifying this mcp analytics submission.
- string
- project_id path required
- Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- string
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.mcpAnalyticsSessionsGenerateIntent()