Skip to content

: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.

feat(mcp-analytics): add a model column to the tool-call feed (#105514)

Lucas Fariad33925116596
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 3d12ab0b8447..0615fb31023d 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -10101,25 +10101,25 @@ snapshots:
scenes-app-max-ai-replay-vision-scan-widget--with-skipped--light:
hash: v1.k794b7964.c543228b0f31abb2aae3b274819abdee4ba6a89fb3324fc6aaa2b18aefee5815.S9etTEY8oT2JhOgLO5hdc6VqvbvYhD-nU4P1WKh24yg
scenes-app-mcp-analytics--activity--dark:
- hash: v1.k794b7964.b37608cc060bbf4a503ebfd0bb87d5160b926b50526eac8a2468a934b5d8a3bf.DeZJNA_NnBvpfBGlMJMIQGPtCBv-7Nw7UcXhISEGiI8
+ hash: v1.k794b7964.053ce58d65ad7c1afed42253ee8145de6e4d7dcedae011774df038dc4bc99463.mtjBtxh7-xuLO9Da1fWP6b4iJkOR_rVQ8ZEBLXMsl_Q
scenes-app-mcp-analytics--activity--light:
- hash: v1.k794b7964.b5b79d2bd502d8bc4c96fa698d4ff42687da96f6ad1db3b751a4ffdbeed7c7a9.1NKRmJQ6fzE1AWKFq632SoapJensy4UrDKiL20KiuxQ
+ hash: v1.k794b7964.aa6f1e0fc90466a186712d7e02a717ecdc7fbdb9ac8217c6e7d7965dd4c39744.eQrokHfce0EIKg6C6H33jFxPjovtPFGvRTOePKxFqa8
scenes-app-mcp-analytics--dashboard--medium--dark:
- hash: v1.k794b7964.4012c740b0deef7f5d9bee37aa55af37a799c71cfd5586bca7fb920fe4d09071.p4WeL3GF1jQ-_uD_OQoDyX-i-IBF87IHqZyG3rffRb0
+ hash: v1.k794b7964.2ef1f525242659b2834e0b6c1ebc7813fe9215f5dc8f1c5168a8083329922047.3_w9VHYw_4dJuCI7bb92f7yXzlMokllKG5rd5NHHBuE
scenes-app-mcp-analytics--dashboard--medium--light:
- hash: v1.k794b7964.faf5836b7f56c27ac5c09b182c64608bdd737d0d7749619638c75d5045fdfe23.v7NaCb4pkqINS8f4lod31ELlLEnpZLAAo6KdwkepmA8
+ hash: v1.k794b7964.381f0917ef4ba955a83710dcb2320d13f96780de8b7a5c745b194c1216e541cd.HArqyves9sMaCJQ0lzHZFkWiBFIIsFlrEWFq6CC3uFQ
scenes-app-mcp-analytics--dashboard--wide--dark:
- hash: v1.k794b7964.ed5619bb305a70012afd12dcaa2a87a30752a35b2931cb24e670558c3cf75c2b._aaytv4LHfWCQ5HtyDWSc2E6UZPKvaLLXcl5vRSUrPM
+ hash: v1.k794b7964.b5453bc6a3fdeddb29caa9444d36889f721b5eb208ecc92745ce248310881147.XZ8iZzHCMw0QOXQlK5gcLdUGwAJ66l9uKQzFcHOkbco
scenes-app-mcp-analytics--dashboard--wide--light:
- hash: v1.k794b7964.02827a94381ec568fd4c02343e5b1d3e2c33a3c4a284f18e73327b11eb242d34.q1a03mIvcmqZDrKF6WJ21rjfBEA16xoh4aHGhYvyTjA
+ hash: v1.k794b7964.71306f5f516e8afadf50181f2181e50c9883b5aae53d247fbb03e3bf803c4c86.16C5ajh9Fsnr259tCPZBpPSTQUDQlI1tlI-9URo6-1s
scenes-app-mcp-analytics--dashboard-narrow--dark:
- hash: v1.k794b7964.b0c18c7c48e6e5e91ba14e5d40edf1ee460f25e61172b0765919e6357534fb14.W10pNqhRrIYTGvy7sgnQo1Pcu_f-z_o-UfE3W9sZgQo
+ hash: v1.k794b7964.17b7e7cf74eb7ec1bd1bea739619996e159434f9dfa81630f7b33c43ef188c39.dhon4cNqo5oUtVuAFeNMG-j1N4B5_NeGZFBQnFKqLLQ
scenes-app-mcp-analytics--dashboard-narrow--light:
- hash: v1.k794b7964.a2292e32d64d4577690e3dd9870b3a09db72ac92e9a59a6618a894ff32cd98d3.1ZKWf2yhLizLSn5nzUvgVxNcTbYp9gMlmznHB0cnzQs
+ hash: v1.k794b7964.30f5ea819c73eb87a98eed7aae79b6474bdca9b55df215170d33fa99987b86a8.gdcMWct53OtYXNlUuaPOqMDf366gxIogCWCqWjPqvQY
scenes-app-mcp-analytics--dashboard-with-menu-bar--dark:
- hash: v1.k794b7964.701efa62a33cf461b8a895f3439734e069fefe22218409d7fe830358442a5c32.4cK-IvrHQruumka3Rnb_trr7S7-7pQoY2kNezZC1YQQ
+ hash: v1.k794b7964.163a86a3433b4ab5d7ce6ed1ddf1bac516dc1e9dab85b1ac4e00b02d378def62.2XWbhANHdbphP5MiRxSvppMkY3mR4wCNFDqiiaBFNok
scenes-app-mcp-analytics--dashboard-with-menu-bar--light:
- hash: v1.k794b7964.c3b4f2022c66f7ecd24bdc461d2da468d52756b50588fd1950788a986108153e.MHDtkomYAPJMQw9OwmnM-VOLeIHxH7VAEXqqFJWIfD0
+ hash: v1.k794b7964.504bb9987f2024004963bc0cd5334d4bf27d66b9c3f83888a2f0a3ad346f6a14.nFivnLxy8-oaufTpJ0inSVGVPCCPexw34vDD6XnMass
scenes-app-mcp-analytics--intent-clustering--dark:
hash: v1.k794b7964.9549b853f80d754b9d6ccf17ab144d24218143200c90df7af687e184e7de5329.Er1_HM8avmrqmulj2hCLnkp98-HeuRvF5ed3j-_jS2A
scenes-app-mcp-analytics--intent-clustering--light:
diff --git a/products/mcp_analytics/frontend/MCPAnalyticsDashboard.stories.tsx b/products/mcp_analytics/frontend/MCPAnalyticsDashboard.stories.tsx
index 31144a556069..5cbf55d6e5e2 100644
--- a/products/mcp_analytics/frontend/MCPAnalyticsDashboard.stories.tsx
+++ b/products/mcp_analytics/frontend/MCPAnalyticsDashboard.stories.tsx
@@ -447,6 +447,8 @@ const CLUSTER_SNAPSHOT = {
],
}
+const ACTIVITY_MODELS = ['claude-opus-5-5', 'gpt-5.6-sol', 'claude-sonnet-5']
+
// [tool, intent, durationMs, client, errorMessage]
const ACTIVITY_CALLS: [string, string | null, number | null, string, string | null][] = [
[
@@ -590,6 +592,7 @@ function activityEventsResponse(select: string[]): Record<string, any> {
}
const results = ACTIVITY_CALLS.map(([tool, intent, durationMs, clientName, errorMessage], index) => {
+ const model = ACTIVITY_MODELS[index % ACTIVITY_MODELS.length]
const timestamp = dayjs('2026-06-07T12:00:00Z')
.subtract(index * 37, 'second')
.toISOString()
@@ -603,6 +606,7 @@ function activityEventsResponse(select: string[]): Record<string, any> {
$mcp_error_message: errorMessage,
$mcp_intent: intent,
$mcp_is_error: errorMessage !== null,
+ $mcp_llm_model: model,
$mcp_parameters: { input: `Example input for ${tool}` },
$mcp_response: errorMessage ? { error: errorMessage } : { ok: true },
$mcp_server_name: 'example-server',
@@ -634,6 +638,9 @@ function activityEventsResponse(select: string[]): Record<string, any> {
if (column.endsWith('-- Client')) {
return clientName
}
+ if (column.endsWith('-- Model')) {
+ return model
+ }
return null
})
})
diff --git a/products/mcp_analytics/frontend/components/toolCallFeedQuery.test.ts b/products/mcp_analytics/frontend/components/toolCallFeedQuery.test.ts
index b429cc434f17..ad0efb745887 100644
--- a/products/mcp_analytics/frontend/components/toolCallFeedQuery.test.ts
+++ b/products/mcp_analytics/frontend/components/toolCallFeedQuery.test.ts
@@ -29,6 +29,7 @@ describe('tool call feed queries', () => {
expect(MCP_ACTIVITY_MAX_ROWS).toBeGreaterThan(MCP_ACTIVITY_PAGE_SIZE)
expect(MCP_ACTIVITY_COLUMNS).toContain('*')
expect(MCP_ACTIVITY_COLUMNS.find((column) => column.endsWith('-- Tool'))).toContain('$mcp_exec_tool_call_name')
+ expect(MCP_ACTIVITY_COLUMNS.find((column) => column.endsWith('-- Model'))).toContain('$mcp_llm_model')
})
it('narrows the feed to failed calls without dropping other filters or stacking itself', () => {
diff --git a/products/mcp_analytics/frontend/components/toolCallFeedQuery.ts b/products/mcp_analytics/frontend/components/toolCallFeedQuery.ts
index 8fa84aa5f721..fef15be0c5e0 100644
--- a/products/mcp_analytics/frontend/components/toolCallFeedQuery.ts
+++ b/products/mcp_analytics/frontend/components/toolCallFeedQuery.ts
@@ -18,6 +18,7 @@ export const MCP_ACTIVITY_COLUMNS = [
MCP_ACTIVITY_ERROR_COLUMN,
'properties.$mcp_duration_ms -- Duration (ms)',
'properties.$mcp_client_name -- Client',
+ 'properties.$mcp_llm_model -- Model',
MCP_ACTIVITY_SESSION_COLUMN,
'timestamp',
]