: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
import { useValues } from 'kea'
import { navPanelAdvertisementLogic } from './NavPanelAdvertisementLogic'
import { MCP_AD_LOGIC_PROPS, NavPanelMcpCard } from './NavPanelMcpCard'
/** Asks users whose agent has not connected to connect the PostHog MCP server. */
export function NavPanelMcpAd(): JSX.Element | null {
const { hidden } = useValues(navPanelAdvertisementLogic(MCP_AD_LOGIC_PROPS))
// Checked before the connection lookup mounts, so a dismissed card never fetches connected apps.
return hidden ? null : <NavPanelMcpCard />
}