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.

fix(error-tracking): only show MCP hint during onboarding (#60294)

Rafael Audibertc2001df11648
diff --git a/products/error_tracking/frontend/components/SetupPrompt/SetupPrompt.tsx b/products/error_tracking/frontend/components/SetupPrompt/SetupPrompt.tsx
index 6c07af344775..d4c649c54d49 100644
--- a/products/error_tracking/frontend/components/SetupPrompt/SetupPrompt.tsx
+++ b/products/error_tracking/frontend/components/SetupPrompt/SetupPrompt.tsx
@@ -85,6 +85,7 @@ const IngestionStatusCheck = ({ className }: { className?: string }): JSX.Elemen
isEmpty={true}
productKey={ProductKey.ERROR_TRACKING}
className={className}
+ mcpSurfaceKey="error_tracking.assign"
customHog={WarningHog}
actionElementOverride={
<div className="flex flex-col items-start gap-4">
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/issues/IssuesList.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/issues/IssuesList.tsx
index da2b5a195f97..2f10d66a301c 100644
--- a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/issues/IssuesList.tsx
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/issues/IssuesList.tsx
@@ -3,7 +3,6 @@ import { useMemo } from 'react'
import { Tooltip } from '@posthog/lemon-ui'
-import { MCPUseCaseCard } from 'lib/components/MCPHint/MCPUseCaseCard'
import { humanFriendlyLargeNumber } from 'lib/utils'
import { cn } from 'lib/utils/css-classes'
@@ -164,23 +163,10 @@ export function IssuesList(): JSX.Element {
<div data-attr="error-tracking-issue-row">
<Query query={query} context={context} />
</div>
- <IssuesListMCPHint />
</BindLogic>
)
}
-const IssuesListMCPHint = (): JSX.Element | null => {
- const { results, responseLoading } = useValues(issuesDataNodeLogic)
- if (responseLoading || results.length > 0) {
- return null
- }
- return (
- <div className="mt-4 flex justify-center">
- <MCPUseCaseCard surfaceKey="error_tracking.assign" className="max-w-140" />
- </div>
- )
-}
-
export const ListOptions = (): JSX.Element => {
const { selectedIssueIds } = useValues(bulkSelectLogic)
const { results } = useValues(issuesDataNodeLogic)