:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
// AUTO-GENERATED by generate-ui-apps.ts — do not edit
export const ACTION_RESOURCE_URI = 'ui://posthog/action.html'
export const ACTION_LIST_RESOURCE_URI = 'ui://posthog/action-list.html'
export const COHORT_RESOURCE_URI = 'ui://posthog/cohort.html'
export const COHORT_LIST_RESOURCE_URI = 'ui://posthog/cohort-list.html'
export const DEBUG_RESOURCE_URI = 'ui://posthog/debug.html'
export const EMAIL_TEMPLATE_RESOURCE_URI = 'ui://posthog/email-template.html'
export const ERROR_DETAILS_RESOURCE_URI = 'ui://posthog/error-details.html'
export const ERROR_ISSUE_RESOURCE_URI = 'ui://posthog/error-issue.html'
export const ERROR_ISSUE_LIST_RESOURCE_URI = 'ui://posthog/error-issue-list.html'
export const EXPERIMENT_RESOURCE_URI = 'ui://posthog/experiment.html'
export const EXPERIMENT_LIST_RESOURCE_URI = 'ui://posthog/experiment-list.html'
export const EXPERIMENT_RESULTS_RESOURCE_URI = 'ui://posthog/experiment-results.html'
export const EXPLAIN_CHART_RESOURCE_URI = 'ui://posthog/explain-chart.html'
export const FEATURE_FLAG_RESOURCE_URI = 'ui://posthog/feature-flag.html'
export const FEATURE_FLAG_LIST_RESOURCE_URI = 'ui://posthog/feature-flag-list.html'
export const FEATURE_FLAG_TESTING_RESOURCE_URI = 'ui://posthog/feature-flag-testing.html'
export const INLINE_SCAN_RESOURCE_URI = 'ui://posthog/inline-scan.html'
export const INSIGHT_ACTORS_RESOURCE_URI = 'ui://posthog/insight-actors.html'
export const LLM_COSTS_RESOURCE_URI = 'ui://posthog/llm-costs.html'
export const QUERY_RESULTS_RESOURCE_URI = 'ui://posthog/query-results.html'
export const RENDER_UI_RESOURCE_URI = 'ui://posthog/render-ui.html'
export const SESSION_RECORDING_RESOURCE_URI = 'ui://posthog/session-recording.html'
export const SURVEY_RESOURCE_URI = 'ui://posthog/survey.html'
export const SURVEY_GLOBAL_STATS_RESOURCE_URI = 'ui://posthog/survey-global-stats.html'
export const SURVEY_LIST_RESOURCE_URI = 'ui://posthog/survey-list.html'
export const SURVEY_STATS_RESOURCE_URI = 'ui://posthog/survey-stats.html'
export const TRACE_SPAN_RESOURCE_URI = 'ui://posthog/trace-span.html'
export const TRACE_SPAN_LIST_RESOURCE_URI = 'ui://posthog/trace-span-list.html'
export const VISION_OBSERVATION_LIST_RESOURCE_URI = 'ui://posthog/vision-observation-list.html'
export const VISUAL_REVIEW_SNAPSHOTS_RESOURCE_URI = 'ui://posthog/visual-review-snapshots.html'
export const WORKFLOW_RESOURCE_URI = 'ui://posthog/workflow.html'
export const WORKFLOW_DATA_SUGGESTIONS_RESOURCE_URI = 'ui://posthog/workflow-data-suggestions.html'
export const WORKFLOW_LIST_RESOURCE_URI = 'ui://posthog/workflow-list.html'
export const WORKFLOW_SENDING_RULES_RESOURCE_URI = 'ui://posthog/workflow-sending-rules.html'
export const WORKFLOW_SETUP_STATUS_RESOURCE_URI = 'ui://posthog/workflow-setup-status.html'
export type UiAppKey =
| 'action'
| 'action-list'
| 'cohort'
| 'cohort-list'
| 'debug'
| 'email-template'
| 'error-details'
| 'error-issue'
| 'error-issue-list'
| 'experiment'
| 'experiment-list'
| 'experiment-results'
| 'explain-chart'
| 'feature-flag'
| 'feature-flag-list'
| 'feature-flag-testing'
| 'inline-scan'
| 'insight-actors'
| 'llm-costs'
| 'query-results'
| 'render-ui'
| 'session-recording'
| 'survey'
| 'survey-global-stats'
| 'survey-list'
| 'survey-stats'
| 'trace-span'
| 'trace-span-list'
| 'vision-observation-list'
| 'visual-review-snapshots'
| 'workflow'
| 'workflow-data-suggestions'
| 'workflow-list'
| 'workflow-sending-rules'
| 'workflow-setup-status'
export const URI_MAP: Record<UiAppKey, string> = {
action: ACTION_RESOURCE_URI,
'action-list': ACTION_LIST_RESOURCE_URI,
cohort: COHORT_RESOURCE_URI,
'cohort-list': COHORT_LIST_RESOURCE_URI,
debug: DEBUG_RESOURCE_URI,
'email-template': EMAIL_TEMPLATE_RESOURCE_URI,
'error-details': ERROR_DETAILS_RESOURCE_URI,
'error-issue': ERROR_ISSUE_RESOURCE_URI,
'error-issue-list': ERROR_ISSUE_LIST_RESOURCE_URI,
experiment: EXPERIMENT_RESOURCE_URI,
'experiment-list': EXPERIMENT_LIST_RESOURCE_URI,
'experiment-results': EXPERIMENT_RESULTS_RESOURCE_URI,
'explain-chart': EXPLAIN_CHART_RESOURCE_URI,
'feature-flag': FEATURE_FLAG_RESOURCE_URI,
'feature-flag-list': FEATURE_FLAG_LIST_RESOURCE_URI,
'feature-flag-testing': FEATURE_FLAG_TESTING_RESOURCE_URI,
'inline-scan': INLINE_SCAN_RESOURCE_URI,
'insight-actors': INSIGHT_ACTORS_RESOURCE_URI,
'llm-costs': LLM_COSTS_RESOURCE_URI,
'query-results': QUERY_RESULTS_RESOURCE_URI,
'render-ui': RENDER_UI_RESOURCE_URI,
'session-recording': SESSION_RECORDING_RESOURCE_URI,
survey: SURVEY_RESOURCE_URI,
'survey-global-stats': SURVEY_GLOBAL_STATS_RESOURCE_URI,
'survey-list': SURVEY_LIST_RESOURCE_URI,
'survey-stats': SURVEY_STATS_RESOURCE_URI,
'trace-span': TRACE_SPAN_RESOURCE_URI,
'trace-span-list': TRACE_SPAN_LIST_RESOURCE_URI,
'vision-observation-list': VISION_OBSERVATION_LIST_RESOURCE_URI,
'visual-review-snapshots': VISUAL_REVIEW_SNAPSHOTS_RESOURCE_URI,
workflow: WORKFLOW_RESOURCE_URI,
'workflow-data-suggestions': WORKFLOW_DATA_SUGGESTIONS_RESOURCE_URI,
'workflow-list': WORKFLOW_LIST_RESOURCE_URI,
'workflow-sending-rules': WORKFLOW_SENDING_RULES_RESOURCE_URI,
'workflow-setup-status': WORKFLOW_SETUP_STATUS_RESOURCE_URI,
}
/**
* App keys with a reusable view that the `render-ui` umbrella tool can render.
* Custom apps are included only when they explicitly configure `render_ui`.
*/
export const DISPATCHABLE_APP_KEYS: UiAppKey[] = [
'action',
'action-list',
'cohort',
'cohort-list',
'email-template',
'error-details',
'error-issue',
'error-issue-list',
'experiment',
'experiment-list',
'experiment-results',
'explain-chart',
'feature-flag',
'feature-flag-list',
'feature-flag-testing',
'inline-scan',
'insight-actors',
'llm-costs',
'query-results',
'session-recording',
'survey',
'survey-global-stats',
'survey-list',
'survey-stats',
'trace-span',
'trace-span-list',
'vision-observation-list',
'workflow',
'workflow-list',
'workflow-sending-rules',
'workflow-setup-status',
]
export const UI_APPS: Array<{
name: string
uri: string
description: string
appDir: string
resourceDomains?: string[]
}> = [
{
name: 'PostHog Action',
uri: ACTION_RESOURCE_URI,
description: 'Action detail view',
appDir: 'generated/action',
},
{
name: 'PostHog Action List',
uri: ACTION_LIST_RESOURCE_URI,
description: 'Action List view',
appDir: 'generated/action-list',
},
{
name: 'PostHog Cohort',
uri: COHORT_RESOURCE_URI,
description: 'Cohort detail view',
appDir: 'generated/cohort',
},
{
name: 'PostHog Cohort List',
uri: COHORT_LIST_RESOURCE_URI,
description: 'Cohort List view',
appDir: 'generated/cohort-list',
},
{
name: 'MCP Apps Debug',
uri: DEBUG_RESOURCE_URI,
description: 'Debug app for testing MCP Apps SDK integration',
appDir: 'debug',
},
{
name: 'PostHog Email Template',
uri: EMAIL_TEMPLATE_RESOURCE_URI,
description: 'Email Template detail view',
appDir: 'generated/email-template',
},
{
name: 'PostHog Error Details',
uri: ERROR_DETAILS_RESOURCE_URI,
description: 'Error Details detail view',
appDir: 'generated/error-details',
},
{
name: 'PostHog Error Issue',
uri: ERROR_ISSUE_RESOURCE_URI,
description: 'Error Issue detail view',
appDir: 'generated/error-issue',
},
{
name: 'PostHog Error Issue List',
uri: ERROR_ISSUE_LIST_RESOURCE_URI,
description: 'Error Issue List view',
appDir: 'generated/error-issue-list',
},
{
name: 'PostHog Experiment',
uri: EXPERIMENT_RESOURCE_URI,
description: 'Experiment detail view',
appDir: 'generated/experiment',
},
{
name: 'PostHog Experiment List',
uri: EXPERIMENT_LIST_RESOURCE_URI,
description: 'Experiment List view',
appDir: 'generated/experiment-list',
},
{
name: 'PostHog Experiment Results',
uri: EXPERIMENT_RESULTS_RESOURCE_URI,
description: 'Experiment Results detail view',
appDir: 'generated/experiment-results',
},
{
name: 'PostHog Chart Explanation',
uri: EXPLAIN_CHART_RESOURCE_URI,
description: 'A trends chart with the moments that stand out highlighted, explained one chapter at a time.',
appDir: 'explain-chart',
},
{
name: 'PostHog Feature Flag',
uri: FEATURE_FLAG_RESOURCE_URI,
description: 'Feature Flag detail view',
appDir: 'generated/feature-flag',
},
{
name: 'PostHog Feature Flag List',
uri: FEATURE_FLAG_LIST_RESOURCE_URI,
description: 'Feature Flag List view',
appDir: 'generated/feature-flag-list',
},
{
name: 'PostHog Feature Flag Testing',
uri: FEATURE_FLAG_TESTING_RESOURCE_URI,
description: 'Feature Flag Testing detail view',
appDir: 'generated/feature-flag-testing',
},
{
name: 'PostHog Inline Scan',
uri: INLINE_SCAN_RESOURCE_URI,
description: 'Inline Scan detail view',
appDir: 'generated/inline-scan',
},
{
name: 'PostHog Insight Actors',
uri: INSIGHT_ACTORS_RESOURCE_URI,
description: 'Insight Actors detail view',
appDir: 'generated/insight-actors',
},
{
name: 'PostHog Llm Costs',
uri: LLM_COSTS_RESOURCE_URI,
description: 'Llm Costs detail view',
appDir: 'generated/llm-costs',
},
{
name: 'Query Results',
uri: QUERY_RESULTS_RESOURCE_URI,
description: 'Interactive visualization for PostHog query results',
appDir: 'query-results',
},
{
name: 'PostHog Render UI',
uri: RENDER_UI_RESOURCE_URI,
description: 'Renders the visualization for a PostHog MCP tool result',
appDir: 'render-ui',
},
{
name: 'PostHog Session Recording',
uri: SESSION_RECORDING_RESOURCE_URI,
description: 'Session Recording detail view',
appDir: 'generated/session-recording',
},
{
name: 'PostHog Survey',
uri: SURVEY_RESOURCE_URI,
description: 'Survey detail view',
appDir: 'generated/survey',
},
{
name: 'PostHog Survey Global Stats',
uri: SURVEY_GLOBAL_STATS_RESOURCE_URI,
description: 'Survey Global Stats detail view',
appDir: 'generated/survey-global-stats',
},
{
name: 'PostHog Survey List',
uri: SURVEY_LIST_RESOURCE_URI,
description: 'Survey List view',
appDir: 'generated/survey-list',
},
{
name: 'PostHog Survey Stats',
uri: SURVEY_STATS_RESOURCE_URI,
description: 'Survey Stats detail view',
appDir: 'generated/survey-stats',
},
{
name: 'PostHog Trace Span',
uri: TRACE_SPAN_RESOURCE_URI,
description: 'Trace Span detail view',
appDir: 'generated/trace-span',
},
{
name: 'PostHog Trace Span List',
uri: TRACE_SPAN_LIST_RESOURCE_URI,
description: 'Trace Span List view',
appDir: 'generated/trace-span-list',
},
{
name: 'PostHog Vision Observation List',
uri: VISION_OBSERVATION_LIST_RESOURCE_URI,
description: 'Vision Observation List view',
appDir: 'generated/vision-observation-list',
},
{
name: 'PostHog Visual Review Snapshots',
uri: VISUAL_REVIEW_SNAPSHOTS_RESOURCE_URI,
description: 'Visual review run snapshots — diff viewer with approve/tolerate actions',
appDir: 'visual-review-snapshots',
resourceDomains: [
'https://s3.us-east-1.amazonaws.com/posthog-cloud-prod-us-east-1-app-assets/visual_review/',
'http://localhost:19000/posthog/visual_review/',
],
},
{
name: 'PostHog Workflow',
uri: WORKFLOW_RESOURCE_URI,
description: 'Workflow detail view',
appDir: 'generated/workflow',
},
{
name: 'PostHog Workflow Suggestions',
uri: WORKFLOW_DATA_SUGGESTIONS_RESOURCE_URI,
description: 'Suggested workflows built from the events a project sends, each with a Create workflow action.',
appDir: 'workflow-data-suggestions',
},
{
name: 'PostHog Workflow List',
uri: WORKFLOW_LIST_RESOURCE_URI,
description: 'Workflow List view',
appDir: 'generated/workflow-list',
},
{
name: 'PostHog Sending Rules',
uri: WORKFLOW_SENDING_RULES_RESOURCE_URI,
description:
'Sending rules for the project, with a button to apply the recommended frequency cap and a switch for engagement events.',
appDir: 'workflow-sending-rules',
},
{
name: 'PostHog Messaging Setup',
uri: WORKFLOW_SETUP_STATUS_RESOURCE_URI,
description: 'The messaging setup checklist, with a link to finish each open step.',
appDir: 'generated/workflow-setup-status',
},
]