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): give MCP analytics its own icon (#70374)

Georgis Andonis11d2b3fb7c8a
diff --git a/frontend/src/layout/panel-layout/ProjectTree/defaultTree.tsx b/frontend/src/layout/panel-layout/ProjectTree/defaultTree.tsx
index 9473d77f4ff2..c47cb47faf97 100644
--- a/frontend/src/layout/panel-layout/ProjectTree/defaultTree.tsx
+++ b/frontend/src/layout/panel-layout/ProjectTree/defaultTree.tsx
@@ -33,6 +33,7 @@ import {
IconAIGateway,
IconLlmAnalytics,
IconLlmPromptManagement,
+ IconMCP,
IconMegaphone,
IconMessage,
IconNotebook,
@@ -349,6 +350,10 @@ const iconTypes: Record<FileSystemIconType, { icon: JSX.Element; iconColor?: Fil
icon: <IconPlaylist />,
iconColor: ['var(--color-product-llm-analytics-light)'],
},
+ mcp_analytics: {
+ icon: <IconMCP />,
+ iconColor: ['var(--color-product-llm-analytics-light)'],
+ },
visual_review: {
icon: <IconApp />,
},
diff --git a/frontend/src/lib/lemon-ui/icons/categories.ts b/frontend/src/lib/lemon-ui/icons/categories.ts
index 6bd4420c700b..2903d6b89f76 100644
--- a/frontend/src/lib/lemon-ui/icons/categories.ts
+++ b/frontend/src/lib/lemon-ui/icons/categories.ts
@@ -331,6 +331,12 @@ export const TEAMS_AND_COMPANIES = {
'Product OS': ['IconNotebook', 'IconHogQL', 'IconDashboard', 'IconSupport'],
Logos: ['IconLogomark', 'IconGithub', 'IconGitLab', 'IconLinear', 'IconRedux'],
ErrorTracking: ['IconIssue'],
- AIObservability: ['IconLlmAnalytics', 'IconLlmPromptEvaluation', 'IconLlmPromptManagement', 'IconScatter'],
+ AIObservability: [
+ 'IconLlmAnalytics',
+ 'IconLlmPromptEvaluation',
+ 'IconLlmPromptManagement',
+ 'IconMCP',
+ 'IconScatter',
+ ],
PostHogAI: ['IconBrain'],
} as const
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index f83d44d71bc7..00d7f66bd5bf 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -667,13 +667,13 @@ export const productConfiguration: Record<string, any> = {
name: 'MCP analytics',
layout: 'app-container',
description: 'Capture user intent and behaviour patterns to understand what AI users need from your tools.',
- iconType: 'llm_analytics',
+ iconType: 'mcp_analytics',
},
MCPAnalyticsToolDetail: {
projectBased: true,
name: 'MCP tool',
layout: 'app-container',
- iconType: 'llm_analytics',
+ iconType: 'mcp_analytics',
},
Metrics: {
name: 'Metrics',
@@ -1919,7 +1919,7 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [
category: ProductItemCategory.AI_ENGINEERING,
visualOrder: 2,
type: 'mcp_analytics',
- iconType: 'llm_analytics' as FileSystemIconType,
+ iconType: 'mcp_analytics' as FileSystemIconType,
iconColor: ['var(--color-product-llm-analytics-light)'] as FileSystemIconColor,
href: urls.mcpAnalyticsDashboard(),
flag: FEATURE_FLAGS.MCP_ANALYTICS,
diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json
index 41e877818ff6..5c754f6d7165 100644
--- a/frontend/src/queries/schema.json
+++ b/frontend/src/queries/schema.json
@@ -23545,6 +23545,7 @@
"llm_playground",
"llm_prompts",
"llm_clusters",
+ "mcp_analytics",
"exports"
],
"type": "string"
diff --git a/frontend/src/queries/schema/schema-general.ts b/frontend/src/queries/schema/schema-general.ts
index 934fc9cb6c57..ee21152a5aaf 100644
--- a/frontend/src/queries/schema/schema-general.ts
+++ b/frontend/src/queries/schema/schema-general.ts
@@ -4056,6 +4056,7 @@ export type FileSystemIconType =
| 'llm_playground'
| 'llm_prompts'
| 'llm_clusters'
+ | 'mcp_analytics'
| 'exports'
export interface FileSystemImport extends Omit<FileSystemEntry, 'id'> {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ff55359f98c1..309f0c2375b6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -22,8 +22,8 @@ catalogs:
specifier: 0.6.0
version: 0.6.0
'@posthog/icons':
- specifier: ^0.37.4
- version: 0.37.4
+ specifier: ^0.38.0
+ version: 0.38.0
'@posthog/react':
specifier: ^1.9.0
version: 1.9.0
@@ -622,7 +622,7 @@ importers:
version: link:../common/hogvm/typescript
'@posthog/icons':
specifier: 'catalog:'
'@posthog/products-access-control':
specifier: workspace:*
version: link:../products/access_control
@@ -2250,7 +2250,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
@@ -2620,7 +2620,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
@@ -2660,7 +2660,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
@@ -2742,7 +2742,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@posthog/lemon-ui':
specifier: '*'
@@ -2802,7 +2802,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@posthog/lemon-ui':
specifier: '*'
@@ -2834,7 +2834,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -2865,7 +2865,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@posthog/lemon-ui':
specifier: '*'
@@ -2976,7 +2976,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
@@ -3027,7 +3027,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -3087,7 +3087,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -3129,7 +3129,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@posthog/lemon-ui':
specifier: '*'
@@ -3167,7 +3167,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
@@ -3200,7 +3200,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -3237,7 +3237,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
@@ -3277,7 +3277,7 @@ importers:
version: 3.2.1([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
@@ -3358,7 +3358,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -3391,7 +3391,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -3430,7 +3430,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -3457,7 +3457,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -3484,7 +3484,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
@@ -3514,7 +3514,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@posthog/lemon-ui':
specifier: '*'
@@ -3553,7 +3553,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
@@ -3586,7 +3586,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@posthog/lemon-ui':
specifier: '*'
@@ -3640,7 +3640,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@posthog/products-error-tracking':
specifier: workspace:*
version: link:../error_tracking
@@ -3728,7 +3728,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@posthog/lemon-ui':
specifier: '*'
@@ -3760,7 +3760,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@posthog/quill-charts':
specifier: workspace:*
version: link:../../packages/quill/packages/charts
@@ -3797,7 +3797,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -3826,7 +3826,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@posthog/products-error-tracking':
specifier: workspace:*
version: link:../error_tracking
@@ -3866,7 +3866,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -3899,7 +3899,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -3928,7 +3928,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@posthog/quill-primitives':
specifier: workspace:*
version: link:../../packages/quill/packages/primitives
@@ -4004,7 +4004,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@posthog/quill-charts':
specifier: workspace:*
version: link:../../packages/quill/packages/charts
@@ -4048,7 +4048,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -4078,7 +4078,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@posthog/lemon-ui':
specifier: '*'
@@ -4130,7 +4130,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@posthog/quill-charts':
specifier: workspace:*
version: link:../../packages/quill/packages/charts
@@ -4175,7 +4175,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -4198,7 +4198,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -4242,7 +4242,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
@@ -4294,7 +4294,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -4325,7 +4325,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
@@ -4367,7 +4367,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@testing-library/react':
specifier: '*'
@@ -4413,7 +4413,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
@@ -4452,7 +4452,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@posthog/react':
specifier: '*'
@@ -4490,7 +4490,7 @@ importers:
dependencies:
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -4539,7 +4539,7 @@ importers:
version: 0.6.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -10068,8 +10068,8 @@ packages:
'@posthog/[email protected]':
resolution: {integrity: sha512-r282QitLBwxaT5YHGi6iAq1lCE5SMkg0Oq/qzvqNio4jh/P4lK70UpyTRMDZ6VFbqJWDg8Ly7T6TBUHxhmmiVg==}
- '@posthog/[email protected]':
- resolution: {integrity: sha512-Xl3jtjTG4dacTgKqLmKbryzjQw6JBLoFKozNusHfNKNMjFdZl1yUBXr/uO057dJgWvdPugAdnHwPJDdBgHToGw==}
+ '@posthog/[email protected]':
+ resolution: {integrity: sha512-Y458v7A9ipKvHCo77rAc2/ELUDvfNjFpn9AwV8aVYUl5/wvLH9CwEfq1IxgQDj33OaML4IE2w5LQ0TbKbo63XA==}
peerDependencies:
react: 18.3.1
react-dom: 18.3.1
@@ -30000,7 +30000,7 @@ snapshots:
'@posthog/[email protected]': {}
dependencies:
react: 18.3.1
react-dom: 18.3.1([email protected])
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 4fff30f1c0b0..10bae4241f24 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -43,7 +43,7 @@ catalog:
kea-waitfor: ^0.2.1
kea-window-values: ^3.0.1
# PostHog packages
- '@posthog/icons': ^0.37.4
+ '@posthog/icons': ^0.38.0
'@posthog/brand': 0.6.0
'@posthog/react': ^1.9.0
posthog-js: ^1.399.2
diff --git a/posthog/schema_enums.py b/posthog/schema_enums.py
index 305dd5be76d5..63b66a0d17e8 100644
--- a/posthog/schema_enums.py
+++ b/posthog/schema_enums.py
@@ -2032,6 +2032,7 @@ class FileSystemIconType(StrEnum):
LLM_PLAYGROUND = "llm_playground"
LLM_PROMPTS = "llm_prompts"
LLM_CLUSTERS = "llm_clusters"
+ MCP_ANALYTICS = "mcp_analytics"
EXPORTS = "exports"
diff --git a/products/mcp_analytics/frontend/MCPAnalyticsScene.tsx b/products/mcp_analytics/frontend/MCPAnalyticsScene.tsx
index c80396ccd934..b76ab2918bb4 100644
--- a/products/mcp_analytics/frontend/MCPAnalyticsScene.tsx
+++ b/products/mcp_analytics/frontend/MCPAnalyticsScene.tsx
@@ -95,7 +95,7 @@ function MCPAnalyticsSceneContent(): JSX.Element {
<SceneTitleSection
name="MCP analytics"
description={onboardingState === 'onboarded' ? TAB_DESCRIPTIONS[activeTab] : null}
- resourceType={{ type: 'llm_analytics' }}
+ resourceType={{ type: 'mcp_analytics' }}
actions={
<>
{onboardingState === 'onboarded' && (
diff --git a/products/mcp_analytics/frontend/MCPAnalyticsToolDetail.tsx b/products/mcp_analytics/frontend/MCPAnalyticsToolDetail.tsx
index 9a88c0868072..1931f218d901 100644
--- a/products/mcp_analytics/frontend/MCPAnalyticsToolDetail.tsx
+++ b/products/mcp_analytics/frontend/MCPAnalyticsToolDetail.tsx
@@ -482,7 +482,7 @@ function MCPAnalyticsToolDetailContent({ toolName }: { toolName: string }): JSX.
<SceneTitleSection
name={toolName}
description={null}
- resourceType={{ type: 'llm_analytics' }}
+ resourceType={{ type: 'mcp_analytics' }}
forceBackTo={{
name: 'Tool quality',
path: urls.mcpAnalyticsToolQuality(),
diff --git a/products/mcp_analytics/manifest.tsx b/products/mcp_analytics/manifest.tsx
index a937afb63391..fb16ba8e580d 100644
--- a/products/mcp_analytics/manifest.tsx
+++ b/products/mcp_analytics/manifest.tsx
@@ -23,14 +23,14 @@ export const manifest: ProductManifest = {
name: 'MCP analytics',
layout: 'app-container',
description: 'Capture user intent and behaviour patterns to understand what AI users need from your tools.',
- iconType: 'llm_analytics',
+ iconType: 'mcp_analytics',
},
MCPAnalyticsToolDetail: {
import: () => import('./frontend/MCPAnalyticsToolDetail'),
projectBased: true,
name: 'MCP tool',
layout: 'app-container',
- iconType: 'llm_analytics',
+ iconType: 'mcp_analytics',
},
},
routes: {
@@ -66,7 +66,7 @@ export const manifest: ProductManifest = {
category: ProductItemCategory.AI_ENGINEERING,
visualOrder: 2,
type: 'mcp_analytics',
- iconType: 'llm_analytics' as FileSystemIconType,
+ iconType: 'mcp_analytics' as FileSystemIconType,
iconColor: ['var(--color-product-llm-analytics-light)'] as FileSystemIconColor,
href: urls.mcpAnalyticsDashboard(),
flag: FEATURE_FLAGS.MCP_ANALYTICS,