: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(mcp-analytics): render tool description as markdown (#61596)
Harley Alexandera1cc5dcebff3
diff --git a/products/mcp_analytics/frontend/MCPAnalyticsToolDetail.tsx b/products/mcp_analytics/frontend/MCPAnalyticsToolDetail.tsxindex cce1076d3008..8470aaf77295 100644--- a/products/mcp_analytics/frontend/MCPAnalyticsToolDetail.tsx+++ b/products/mcp_analytics/frontend/MCPAnalyticsToolDetail.tsx@@ -5,6 +5,7 @@ import { LemonButton, LemonDivider, LemonSkeleton, Tooltip } from '@posthog/lemoimport { TZLabel } from 'lib/components/TZLabel'import { IconArrowDown, IconArrowUp } from 'lib/lemon-ui/icons'+import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'import { humanFriendlyDuration, humanFriendlyNumber } from 'lib/utils'import { PersonDisplay } from 'scenes/persons/PersonDisplay'import { urls } from 'scenes/urls'@@ -214,7 +215,9 @@ function DescriptionBlock({return (<div className="flex flex-col gap-1 max-w-3xl"><span className="text-[11px] uppercase tracking-wider text-secondary">Description</span>- <p className="text-sm leading-snug m-0">{latest.description}</p>+ <LemonMarkdown className="text-sm leading-snug" lowKeyHeadings>+ {latest.description}+ </LemonMarkdown>{older.length > 0 ? (<Tooltiptitle={@@ -224,7 +227,7 @@ function DescriptionBlock({<div className="text-secondary mb-0.5">last seen <TZLabel time={d.last_seen} /></div>- <div>{d.description}</div>+ <LemonMarkdown lowKeyHeadings>{d.description}</LemonMarkdown></div>))}</div>