: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 { useActions, useValues } from 'kea'
import { ToolCallFeed } from '../components/ToolCallFeed'
import { MCP_ACTIVITY_DATA_COLLECTION_ID } from '../components/toolCallFeedQuery'
import { mcpEarlyDataLogic } from './mcpEarlyDataLogic'
export function ActivityFeed(): JSX.Element {
const { activityQuery } = useValues(mcpEarlyDataLogic)
const { setActivityQuery } = useActions(mcpEarlyDataLogic)
return (
<section className="flex flex-col" data-attr="mcp-analytics-activity-feed">
<h3 className="mb-2 text-sm font-semibold">Live activity</h3>
{/* Capped so the page ends without scrolling past a thousand rows. The cap itself scrolls,
because a max-height leaves this box's height indefinite, and the table inside needs a
definite height before it can size a scroll region of its own. */}
<div className="flex max-h-[36rem] overflow-y-auto">
<ToolCallFeed
query={activityQuery}
setQuery={setActivityQuery}
uniqueKey="mcp-analytics-activity"
dataNodeCollectionId={MCP_ACTIVITY_DATA_COLLECTION_ID}
attachTo={mcpEarlyDataLogic}
/>
</div>
</section>
)
}