provider mcp_analytics POST
/api/environments/{environment_id}/mcp_analytics/sessions/{id}/generate_intent/ @utdk/posthog
/api/environments/{environment_id}/mcp_analytics/sessions/{id}/generate_intent/ environments_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
- environment_id path required
- Deprecated. Use /api/projects/{project_id}/ instead.
- string
- id path required
- A UUID string identifying this mcp analytics submission.
- 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.environmentsMcpAnalyticsSessionsGenerateIntent()