: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
fix(inbox): hide MCP servers links when the mcp-servers flag is off (#68194)
Christiaan Hendriksen9c1f00941ce9
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 495431084870..c9849c3d26fa 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -5627,7 +5627,7 @@ snapshots:scenes-app-heatmap--iframe-example--dark:hash: v1.k794b7964.739b8f5ac461aff690d35b4622c683f5758d1a2f16d203cb315aaa449a954cb7.QT8KobMmRxytbOoCQFHYofq2yAHXDezRBTnyfgk91Tsscenes-app-heatmap--iframe-example--light:- hash: v1.k794b7964.1f8c1978a875ca2e7467d8f8fb5109f6a2d706d75535edb8a478be4365fcd613.RxyMDJcjQNBieIUkMwxqriiNth6u5_-VsGKAgyFWnoQ+ hash: v1.k794b7964.0097f81a4f3b10e015afc1e7ef33ce7fa9dd075eae6abf2bb91fe52efe819bf1.JBf76R0LFMGSHQlTAG8GKh3zkX4v5yawAtV3tZvMCYEscenes-app-heatmap--new--dark:hash: v1.k794b7964.cfd075c10189496c867372e36391cf5985948fe5a8137c434545f5825b15ac7e.IUvQTi7vHNPSGeWj-q6upJsHMLU3UpumxHwGBndOhYEscenes-app-heatmap--new--light:@@ -5757,9 +5757,9 @@ snapshots:scenes-app-inbox-pullrequestdiffview--truncated--light:hash: v1.k794b7964.c8211a05cd4404a003460d2c4abe79fb078edd5c7801422dbb3a5c55cc50f6a1.R85Q2EEe3EteBgaslGBlB4Vp7AdPgMstb0whb50OXycscenes-app-inbox-scene--empty--dark:- hash: v1.k794b7964.e04bdcbb575a980b96b6a867887812c540dee0f3e7cbaedcc518e56446c4569d.4qhmlXOjxjxbBOxC6_wPnGOnoyea0I9wvEIvNqSlxdc+ hash: v1.k794b7964.59cfa41575869858a73b2a7ce71fd5a95d5185d418ac0b755ff2e45c6fdf20b5.nNFglXwlzwm71vGR0-QAnNDIYdInXgSzT_k2pie3NT8scenes-app-inbox-scene--empty--light:- hash: v1.k794b7964.b605ab6f2e557c692a05e9312a7394adb26f6fcdf981f77f991de89fb0ffca6c.gskUCxdPX4W5AaL-Qr9TBiq4Ll0zle4EPV71DzW3-40+ hash: v1.k794b7964.9ac628482107f92f19d4440301e8dad66f38a9df250d5321f6544733a697e2b6.XhpQBR1sBJS3CaCwS02LNxOUFfI6NqlI6BG3vvWWIp8scenes-app-inbox-scene--inbox--dark:hash: v1.k794b7964.7ade0c95519de555691da00b03aaa9aeea1ba0c32762354222d23676099ea0da.OmzLebXW_1EJ-lRFDeh7flQ6cl3OqskJfVarjDu4FQcscenes-app-inbox-scene--inbox--light:diff --git a/frontend/src/scenes/inbox/components/config/AgentsTab.tsx b/frontend/src/scenes/inbox/components/config/AgentsTab.tsxindex a7cdacb32f0d..a3c6ebea8527 100644--- a/frontend/src/scenes/inbox/components/config/AgentsTab.tsx+++ b/frontend/src/scenes/inbox/components/config/AgentsTab.tsx@@ -139,12 +139,14 @@ export function AgentsTab(): JSX.Element {</Subsection>)}- <Subsection- title="MCP servers"- description="External tools agents can read from. PostHog data is always available; this is everything else."- >- <McpServersSection />- </Subsection>+ {featureFlags[FEATURE_FLAGS.MCP_SERVERS] && (+ <Subsection+ title="MCP servers"+ description="External tools agents can read from. PostHog data is always available; this is everything else."+ >+ <McpServersSection />+ </Subsection>+ )}</div></div>)diff --git a/frontend/src/scenes/inbox/components/shell/AgentSetupColumn.tsx b/frontend/src/scenes/inbox/components/shell/AgentSetupColumn.tsxindex f62061c75c0d..caec01b19fe1 100644--- a/frontend/src/scenes/inbox/components/shell/AgentSetupColumn.tsx+++ b/frontend/src/scenes/inbox/components/shell/AgentSetupColumn.tsx@@ -5,9 +5,11 @@ import { LemonModal, LemonSkeleton, LemonTag, Link } from '@posthog/lemon-ui'import { mcpStoreLogic } from '@posthog/products-mcp-store/frontend/mcpStoreLogic'import { ServerIcon } from '@posthog/products-mcp-store/frontend/scene/icons'+import { FEATURE_FLAGS } from 'lib/constants'import { integrationsLogic } from 'lib/integrations/integrationsLogic'import { slackChannelDisplayName } from 'lib/integrations/slackChannel'import { IconSlack } from 'lib/lemon-ui/icons'+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { cn } from 'lib/utils/css-classes'import { urls } from 'scenes/urls'@@ -324,6 +326,7 @@ function SetupModal(): JSX.Element {export function AgentSetupColumn({ layout }: { layout: 'rail' | 'stacked' }): JSX.Element {useMountedLogic(integrationsLogic)useMountedLogic(signalSourcesLogic)+ const { featureFlags } = useValues(featureFlagLogic)return (<div@@ -339,7 +342,7 @@ export function AgentSetupColumn({ layout }: { layout: 'rail' | 'stacked' }): JS<SetupSection title="Connections"><CodeAccessWidget /><NotificationsWidget />- <McpServersWidget />+ {featureFlags[FEATURE_FLAGS.MCP_SERVERS] && <McpServersWidget />}</SetupSection><SetupSection title="Usage"><InboxUsageWidget />