> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Share of calls by harness Canonical URL: https://posthog.com/docs/mcp-analytics/harness-share ## On this page - [How PostHog identifies the harness](#how-posthog-identifies-the-harness) - [Name your own harnesses](#name-your-own-harnesses) - [Harness labels in SQL](#harness-labels-in-sql) The **Share of calls by harness** card on the MCP analytics dashboard compares tool call volume across harnesses. A harness is the client that made the call, such as Claude Code, Cursor, or ChatGPT. Horizontal bars rank harnesses by call count. Each bar shows its percentage of all tool calls in the selected date range and filters, and its call count. Hover over a bar to see the full harness name, calls, share, sessions, and error rate. The card counts `$mcp_tool_call` events. Each tool call counts once, toward one harness. The card does not count sessions or users. - The six harnesses with the most calls get their own bars. - **Other harnesses** combines every other harness and calls from clients that PostHog does not recognize. Its gray bar stays in the percentage denominator, so the bars add up to 100%. - The line above the bars shows the total call count and the share of calls in **Other harnesses**. - Select **Show all harnesses** to see every harness in a table. Colors stay consistent when rankings change. Claude harnesses use terracotta shades, OpenAI harnesses use green shades, and VS Code uses blue. Monochrome brands such as Cursor and Grok use a neutral color that adapts to light and dark themes. Remaining named harnesses use brand colors or stable palette colors. ## How PostHog identifies the harness PostHog assigns each call a harness from the client identity captured with it: the vendor header, the User-Agent, and the client name. [How the harness label is resolved](https://posthog.com/docs/mcp-analytics/events.md#how-the-harness-label-is-resolved) lists the order PostHog checks them in, and what to check if most calls land in **Other harnesses**. ## Name your own harnesses To name an in-house harness, go to **Settings > Environment > MCP analytics > Custom harnesses**. Add a name and the text to look for in the client name or User-Agent product that the harness reports. Matching ignores case and finds the text anywhere in the name. Your custom names are checked before the built-in ones. When the text of two custom harnesses matches, the longer text wins, so `acme-agent` takes priority over `acme`. Each project can have up to 20. The custom name shows wherever harness names show, including the harness share card, the activity views, and `properties.$virt_mcp_harness` in SQL. Harness names are cached, so a change can take a few minutes to appear. A SQL query or insight that already has cached results keeps the old name until those results refresh. You can also give a custom harness an icon. Paste a PNG, GIF or WebP image with a transparent background as a data URI, up to 16 KB and 256 by 256 pixels. The icon shows in one color, like the built-in harness logos, so it stays visible in light and dark themes. An image without a transparent background can't be saved, because it would show as a solid square. ## Harness labels in SQL `properties.$virt_mcp_harness` returns the resolved harness label as a string on MCP events, and `NULL` on other events. You can filter and group by it in HogQL: ```sql SELECT properties.$virt_mcp_harness AS harness, count() AS calls FROM events WHERE event = '$mcp_tool_call' GROUP BY harness ORDER BY calls DESC ``` The activity feed and recent calls table explicitly request logos for their Client and Model columns with `withIcon(label, mark)`. SQL results also add a harness logo automatically when you select `properties.$virt_mcp_harness` directly, including with an `AS` alias. The value stays a string for grouping and filtering. Nested queries do not yet carry the display hint.