: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
feat(signals): add an mcp installation banner to the inbox (#114875)
Chris Volzerfb69e203fa03
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex b83da4fde588..9cee7d888db9 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -11145,29 +11145,29 @@ snapshots:scenes-app-inbox-reportsourcesuggestion--logs--light:hash: v1.k794b7964.d5d1040cc778c947be775229c9b6158b5f836a533ed705da42df816071be1cdb.BhUT6qPcyyC9BegwxP3rKg3OcahAzfe1WffSJEOcd-sscenes-app-inbox-scene--empty--dark:- hash: v1.k794b7964.d1f94cecb2a36f2308212dc28ef1e83d8153b45578c4f390c4596dc308d5eb93.Cxai09kW1P5oCqveaca9r04fxOsysv7d9ggUQDV7hB4+ hash: v1.k794b7964.84ca5122b26e214bb2ea40b015f0bf55afd75cd6abec7e6d6cfe00de3b5ad8ea._GlqfH7tjBLXdxhchkhBD2clKmbEeDZULIdtixR_jFsscenes-app-inbox-scene--empty--light:- hash: v1.k794b7964.5832796d3a31b54adb1e443563c554438ec16af1997eb0b2f691a379ba146e35.0jCKXn2XHX0vvkDvYjbfVmf8CpQ90ItPuRPT25cRt1w+ hash: v1.k794b7964.4cee88bf59c8c1b370ff46b4736e633840efa59c3838ffc2786cb93de6dbd243.W6FHb5RbypUEu_iic0_kjWiIn_nGVrGkrPBnMHmHAVkscenes-app-inbox-scene--empty-control--dark:- hash: v1.k794b7964.04e977d96b4d52ef741ab77062d8752f962981d44b5c218d6c6ee3a49d018792.W1bmigHUOt4DxTyAH6et4R_7BxAXWI7q6It7SGjoF7g+ hash: v1.k794b7964.5e28f5af2e473353cabf39d86622329c32e5915319a81dd01903b51993624c54.494fGxNe7_4yzWNIBi-5tznI-vpk9xe9xFyRvFwy1q4scenes-app-inbox-scene--empty-control--light:- hash: v1.k794b7964.e37ef776409743604f11012a968f1696207b2af7da12126e874cb5f46c651b73.EFqoZnsQSFgGEpIdKcCHV6WYkbhONief7_oKj5Z9Esk+ hash: v1.k794b7964.431f125fea9dc6821a2b6aa2fe4a6048a062f2cea5b1b00bf9514dfd09d73d94.qHtjAAbwC3PJIjqfcS2E448V78OIM4tz30bKu77Omdwscenes-app-inbox-scene--empty-with-many-scouts--dark:- hash: v1.k794b7964.912f58c1595c14260c58e5edfd74fe6429a05960ed05c3a93c38668f715f98b3.pCfUAofhEjo2TKaWOCbUnXghdlQqVcfHujJgROUT54w+ hash: v1.k794b7964.f317ce431f7683d0d3f243cce6a7431ccaace370e74c3d25c93339c00c9bad63.yDLBiHj337vJez3JG8kG__Fg6XNWkVyA8tGu9nPtn-Iscenes-app-inbox-scene--empty-with-many-scouts--light:- hash: v1.k794b7964.606130d48b16c3688cb233bc286359045945967f6d05c9ab098f8aa795b17782.AJRxyRLHMGB9Oe3oASK6hq85ZTOwiRhwTb9GrjBEh_M+ hash: v1.k794b7964.facecddc48f471398f32d48fed8287b91573105ddd2d2ce2adc18eaf649900e7.QVbf6XPS8aj7-Jrj-3T_o1fu7tZNl8ZCJqGw3yRl8Qwscenes-app-inbox-scene--inbox--dark:- hash: v1.k794b7964.e9e3b470cb5159b90fde42e3b3ced5c3cee49ab96439d514dd5200f5b0b20ae4.aity4IuDx_N2J6PFiRSyN60pX7odMRmrjnqZfSl8xKw+ hash: v1.k794b7964.5c0c0dad3ce293f8e53cca3c47230d86f59c3b3b6c23ac011a2fa91d7940693e.Q6QOfQtNc3kU2ZqZ_lMDSlQgQSyhCiTzhUAiae_Uw0gscenes-app-inbox-scene--inbox--light:- hash: v1.k794b7964.0aa0b6e253d7d4413d458cddf5b584b7d59273b8bdff54a8d8ba9867afe7c02d.FRize2uq1ruMNSLOn7i_qH5fynvsoDi2hIAZkvIVJkQ+ hash: v1.k794b7964.9633249568528ba0cf713518954e57136d54cc6fd75a4fef991ac56c4d7eebde.jZQmmA8AYHKW87BbWCdgOyPXcrJ-5koAkz9W0MMcRPcscenes-app-inbox-scene--installing-self-driving--dark:- hash: v1.k794b7964.8ae6815920bb480008e7e911ff1dcab389f7efdccca7c17cfbfab02cbd564b4c.oiyVoRTrtyGJiszfAkRBVt6NtR9_L8aqcMTDnzUy-Vs+ hash: v1.k794b7964.9c63d0aec1e590c399c59a6d974d4c57c2aaba654944bc18065c43212ea67c20.Vcq4DkgtGa7JtssCwGJMnDbhspFmWkFUrEyZpBbhEIIscenes-app-inbox-scene--installing-self-driving--light:- hash: v1.k794b7964.fc1d6c0f35936c2a9a59fe89dbc9fdd8bae321ef4a4cba09af26626522d606eb.Ben1AjqSzgVvRph3ykOT3OusF-gZBfMIiFyONV4k6hA+ hash: v1.k794b7964.8cfc123fae6e14b526a3c202050d2fe9cff47791f417466200c09887b9436143.ytlk3NbkM2J2hBovwE71l84_kmeMQqQAb6WwuSQ9uKUscenes-app-inbox-scene--legacy--dark:- hash: v1.k794b7964.cf7ea7c47bba3a13402d4ffca0936c08040dee5c57ddf01bf8cee89892eb2664.dShBZ3vzzVmp5DadPnsR_vMHw11m5cA6LVA9A2eFOzE+ hash: v1.k794b7964.23af1667483348636b41fce7bc7e78b2650b763130c68866ff8ad127a39b1d89.Wn0VDoLcxKU35X8q8RdPrxeQSLeSARgpeT0YKacaF6sscenes-app-inbox-scene--legacy--light:- hash: v1.k794b7964.f503449990502057e4a2bf6d41dd2c94efad321503856eb11d338084507ed4fb.USiZ5UnWiaNkNJ1ci9aMi6h82TyPLJ1ASTwGfBmidj4+ hash: v1.k794b7964.62846c5376c7928b3684e4ac02626b0f35e7792ac4e346eeba39767d5143e3e1.y4I4APkYpB9QaNfDkGdfXdZPkYDKOK4dSMQiChEqlXYscenes-app-inbox-scene--legacy-report--dark:hash: v1.k794b7964.73179e203433187821ff41208f41221b082f1ca19865fb7b26a751cffffdb633.cNaIyo_D196C9nTyUTVcxfSgwTM5ku-1KroxfCH34_sscenes-app-inbox-scene--legacy-report--light:@@ -11193,13 +11193,13 @@ snapshots:scenes-app-inbox-scene--scouts--light:hash: v1.k794b7964.506124c209e920a26c81a178b4539d613d8deb6de08da550e1985e5d0943995e.T-XcU5Xr94qWbgn6UBcom2rdjykq5I7DpLtAfIWPBuEscenes-app-inbox-scene--self-driving-onboarding--dark:- hash: v1.k794b7964.6b7b2950c3a0df456074962aada4405283deea5158415e032f0b0f8f25e5dbc2.xg-B8FCyxFnbFGtI5vZxy2htjDbFs0Dms_9sTrA7MwY+ hash: v1.k794b7964.e0a23cc49efed91ac01907f5197329613afd261d56817d389d26e42aad8602e2.Wb2-6F1bTbXLv66f02qDi8yAgRSIGhUkXu_wIeCxkFsscenes-app-inbox-scene--self-driving-onboarding--light:- hash: v1.k794b7964.5268ad52b39cdc5bb1d699e6a1a839a552ce397134d6773714e1f5a2d95994b6.hgkYOJDE9ZNZ0mMtcj9cpcDCtmas-opelntO_tyQ9Ig+ hash: v1.k794b7964.87b9241bd7aadc4910ea54b999c3ce8ff1771db2af89a861f53b118a55f4dab8.f9dpoa9HTkP2rgnZ7LIHJrFW5s2WhpMl4fpKVZIO55Yscenes-app-inbox-scene--self-driving-paused--dark:- hash: v1.k794b7964.adab71e0f610d9d7a39e93e47597eed9492fcaeea1f0cb695dc3cb863b735134.ryOBiRrJE5jdogoNJPDTeeiZ4pjLVzevxsjF2PY7YCs+ hash: v1.k794b7964.42dc0343700bfb92c34ac993a87ddff9e8d98811769f32f8776d704af62fafe9.W79Y5DTmdsyLjf7K7-wxsG_ZXok-7CAfnJVl_a5ptdIscenes-app-inbox-scene--self-driving-paused--light:- hash: v1.k794b7964.91a2bf2432e72f7c1475537149b1dca83ddc6fcc13e38dec3658ecc98e234409.j5Pc6iZdIgf8QhsNKC8mb-1SHQJNtP2i3QYoOeUm7bw+ hash: v1.k794b7964.e9d32def129b1d7789f5b5c16831abf579301b87e6875738756200d45f3b83b1.pZItVs7u0wUKy7mwFCt66F-2SLtajHhFKbFlxHvWjYwscenes-app-inbox-scene--self-driving-verdict-pending--dark:hash: v1.k794b7964.6070171adce8ba72d73e5ef46ddc59a6ebd25afbb16d2c4ae0837fa9af66e0fd.crmCZN0uPyF4FXAVize9Qi7juxKUap5RRLyfRbpmo9Qscenes-app-inbox-scene--self-driving-verdict-pending--light:@@ -11865,25 +11865,25 @@ snapshots:scenes-app-inbox-sourcesteeringmodal--rules-set--light:hash: v1.k794b7964.d1279fa1214369e191ab56aeef694231fcd401abf93e1854000fdfdcf97399bc.BKbf7ywpJGW7XqCNbou14Du1jqORsoYt5No4mJCVU3Qscenes-app-inbox-tabs--pull-requests-legacy--dark:- hash: v1.k794b7964.84c464a1792f724b7ac8d345817fcecbe2fe7333d9602d8d4a849f5f657f81d1.nz6nnoIRLkBG8IT9PSiZasjHS_qfMAlusiJjW4YBEl4+ hash: v1.k794b7964.ea2d9121662cbe2949ebd9682fe66166bdee4b629247b3550a279b8e1f634cf5.76yqkry1Cg6E6AE4VaUvMxn8ciIU5mVlMc1RDq2tGJ8scenes-app-inbox-tabs--pull-requests-legacy--light:- hash: v1.k794b7964.35cab57581e7b55e28f2447da251822327e7f0008d57c62c006e2270da758523.saj4tzKOHhdj2EdJV-GSj7xrh0-kL-1yHPUwo3AK700+ hash: v1.k794b7964.43939118a6c7870fc12e612c5b973b2058fdde444f403551f8f6011c82ca4949.EWtT_yr95gc5cVXtIii_dBY1un73ZJSKdJlcgiTWSQEscenes-app-inbox-tabs--reports--dark:- hash: v1.k794b7964.9ab45b891bd7fdedfc01a3f94873763c9331afb29ac6c728906b673ef6031b50.Ey34girBhDgA7zoiZ3U1BgO_N7urHnVgSDNfJvGssQ8+ hash: v1.k794b7964.d4649f4b9f76f791386003c2773782ba83b3981ff3433ba834ff31458d96e7b1.JPLFwjR1k6qO2vqsNO_-R5eh7RELWEXl5-XbKLXk1Vgscenes-app-inbox-tabs--reports--light:- hash: v1.k794b7964.332d84ce12c535e7ba830ed806828ad6a18c45fac98d488ba8baf2251f8c04cf.Yb_hhUUPe2SSq8cewTf4mN8IBRa8oDqmt4mosyTFaqc+ hash: v1.k794b7964.d0621c88f48c2ea6fa2dd7ecdd6f851970d22c781c922f23d1109751d8702e7a.8NdZZ5H3HdHE7JuCnJbJhUA3Zd-cqhpXbf57aqMjBKcscenes-app-inbox-tabs--reports-empty--dark:- hash: v1.k794b7964.a84b301c5e7b2f3b614ae70fd79cb33521d4702790bdfe4a4dcad0816a78152e.y29PsyMQdbg-pSBHIijqi2DdHAXSdJTGVyGKvsnPn1E+ hash: v1.k794b7964.a4766b945dbac1ec8fc6d4dd000b02c42912ca216f9f8e6b16cad697bd8e92a8.w39hYf6soNmmsPVoiutqVtA86Xx00ECeouUh022ElgEscenes-app-inbox-tabs--reports-empty--light:- hash: v1.k794b7964.1194d41f9543372cda988c41560c2f79572ae1e4e029ede557415a44d7ab991e.9ISKBHELesQSttTAc1KUzKuISboUxudlJjjm8cDrjZ4+ hash: v1.k794b7964.08f847fa4664de2be9a4e1942aec7a8c7444588bc02568f23d930abf19fc35a4.JadKDYvIFMx6zo9ddxk_VSix7S9GSXHtDow1E6yXVQgscenes-app-inbox-tabs--reports-legacy--dark:- hash: v1.k794b7964.cec6d8b8fee4d8d32ee180cb79b05c055776e660ce3e59f9691b702e82dab4c1.vE8lPywd_VcZpj3dnMPAPQylAHjOgJvKF8RW58C5oFU+ hash: v1.k794b7964.76e412d94a35a94be9e607e5b6b9b6999e75584d8b1d33860a4c30d6628cc865.G2qAGj6kpxsDYT26ll1LiVQIcgreRnJyKZJJxFzhl3kscenes-app-inbox-tabs--reports-legacy--light:- hash: v1.k794b7964.e85a99c486394b1c568acb85a0426c8c70d1feef977b9de6ddd9733f29135752.__HuRE0T7a9P3Os-phwQdQc2LOE_wbf-36gcBMADbf0+ hash: v1.k794b7964.803282f156dce837dfa6cc6423460eca7ffe9f210f66e63dfd958e528a6cb9c0.8vtgsr_oU-CqNE6HcibYDIvewF5uSZDakY7_J_DQuGwscenes-app-inbox-tabs--reports-state-filtered--dark:- hash: v1.k794b7964.4fd59d866db1c0b72674287fa7abb0fc4da6f3b04953b87428c871cb928089f7.wUIguFPOnbT-iwzUcn5M3PYyB3qCR0l9CKucjtKtPG4+ hash: v1.k794b7964.4b4001656ea14d5e0080d2872de96be57b4b6c54b93a6d9e54b21b567ae80fa6.6ll9EbBF7Ebqk2f87IcA1Rwzc89fnfAjg8SXfwcVc8Escenes-app-inbox-tabs--reports-state-filtered--light:- hash: v1.k794b7964.80050a2a72cdf14971be974d0be03ecf6e86e29a03abe3cbb6327a8b8c37e91a.g5sAY86SD6ZqSCAaFpwQ4ysGII88HDHonaCqcWUozU8+ hash: v1.k794b7964.61a5c31e1a909839d7c16c534b3b7aab2e8c45fcd769e4088c30a704c2b055b2.09yi3fMFqV9A0LsA9RQB6w3Rq8tpzamXNlWEg25qlukscenes-app-inbox-tabs--runs--dark:hash: v1.k794b7964.b0eb8ed605bd36103e79e0a60b214bb3923082a8a3e942619b209e2e63c4c27b.tc-_hXddEA1-okpf16Of3a1wM9gWn-D4ZW1_LLaPKq4scenes-app-inbox-tabs--runs--light:diff --git a/products/signals/frontend/inbox/components/InboxMcpBanner.tsx b/products/signals/frontend/inbox/components/InboxMcpBanner.tsxnew file mode 100644index 000000000000..259ac31bd045--- /dev/null+++ b/products/signals/frontend/inbox/components/InboxMcpBanner.tsx@@ -0,0 +1,26 @@+import { useValues } from 'kea'++import { LemonBanner } from '@posthog/lemon-ui'++import { userLogic } from 'scenes/userLogic'++export function InboxMcpBanner(): JSX.Element | null {+ const { user } = useValues(userLogic)++ return (+ <LemonBanner+ type="info"+ dismissKey={`inbox-mcp-banner-${user?.uuid ?? 'anonymous'}`}+ className="!bg-fill-info-secondary"+ action={{+ children: 'Install PostHog MCP',+ type: 'primary',+ to: 'https://posthog.com/docs/model-context-protocol#get-started-in-30-seconds',+ targetBlank: true,+ 'data-attr': 'inbox-mcp-banner-install',+ }}+ >+ Use the self-driving inbox with your agents through PostHog MCP.+ </LemonBanner>+ )+}diff --git a/products/signals/frontend/inbox/components/InboxReportList.tsx b/products/signals/frontend/inbox/components/InboxReportList.tsxindex 2d27998112ca..3464c19493f1 100644--- a/products/signals/frontend/inbox/components/InboxReportList.tsx+++ b/products/signals/frontend/inbox/components/InboxReportList.tsx@@ -10,6 +10,7 @@ import { legacyTabListLogicProps, reportListLogic } from '../logics/reportListLoimport { INBOX_LEGACY_TAB_SECTION, InboxFlatListTabKey, InboxReportSectionKey, SignalReport } from '../types'import { DismissalFeedback } from '../utils/dismissalReasons'import { CardSkeleton } from './cards/CardSkeleton'+import { InboxMcpBanner } from './InboxMcpBanner'import { InboxBulkSelectionBar } from './shell/InboxBulkSelectionBar'import { InboxSearchFilterBar } from './shell/InboxSearchFilterBar'@@ -231,6 +232,7 @@ function InboxReportListInner({ tabKey, Card, emptyState }: InboxReportListProps<div className="@container mx-auto max-w-4xl flex flex-col gap-4 px-6 py-4"><InboxSearchFilterBar onRefresh={() => refresh()} refreshing={reportsResponseLoading} /><InboxBulkSelectionBar reports={reports} />+ <InboxMcpBanner />{showSkeleton ? (<CardSkeleton count={Math.min(count ?? 4, 6)} variant="cards" dashed={tabKey !== 'pulls'} />diff --git a/products/signals/frontend/inbox/components/onboarding/InboxWelcome.tsx b/products/signals/frontend/inbox/components/onboarding/InboxWelcome.tsxindex 34cba717321a..fe2f41e8794b 100644--- a/products/signals/frontend/inbox/components/onboarding/InboxWelcome.tsx+++ b/products/signals/frontend/inbox/components/onboarding/InboxWelcome.tsx@@ -17,6 +17,7 @@ import { urls } from 'scenes/urls'import { captureInboxWelcomeCommandCopied, captureInboxWelcomeViewed } from '../../inboxAnalytics'import { inboxOnboardingLogic } from '../../logics/inboxOnboardingLogic'+import { InboxMcpBanner } from '../InboxMcpBanner'import { LoopDiagram } from './LoopDiagram'/** The one command that sets up self-driving. The whole onboarding orbits this string. */@@ -150,6 +151,9 @@ export function InboxWelcome(): JSX.Element {return (<div className="InboxWelcome flex min-h-full flex-col justify-center py-10">+ <div className="mx-auto mb-8 w-full max-w-4xl px-6">+ <InboxMcpBanner />+ </div><div className="px-6 pb-12"><div className="mx-auto flex max-w-[720px] flex-col items-center text-center"><div className="mb-7">diff --git a/products/signals/frontend/inbox/components/tabs/ReportsTab.tsx b/products/signals/frontend/inbox/components/tabs/ReportsTab.tsxindex 1be27dea17b3..828e91459958 100644--- a/products/signals/frontend/inbox/components/tabs/ReportsTab.tsx+++ b/products/signals/frontend/inbox/components/tabs/ReportsTab.tsx@@ -29,6 +29,7 @@ import { CardSkeleton } from '../cards/CardSkeleton'import { ReportCard } from '../cards/ReportCard'import { ReportContextMenu } from '../cards/ReportContextMenu'import { InboxWaitingForWork } from '../emptyState/InboxWaitingForWork'+import { InboxMcpBanner } from '../InboxMcpBanner'import { SelfDrivingInstallingHint } from '../SelfDrivingInstallingHint'import { InboxBulkSelectionBar } from '../shell/InboxBulkSelectionBar'import { InboxReportFilters } from '../shell/InboxReportFilters'@@ -368,6 +369,7 @@ export function ReportsTab(): JSX.Element {</div></div><InboxBulkSelectionBar reports={rows.map(({ report }) => report)} />+ <InboxMcpBanner />{inboxIsEmpty ? (<ReportsEmptyState />