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.

chore: retrigger mcp deployment (#58900)

Rafael Audibert2f08d0b272b0
diff --git a/services/mcp/src/mcp.ts b/services/mcp/src/mcp.ts
index cc8dca1c9d89..b9d6402a1b5c 100644
--- a/services/mcp/src/mcp.ts
+++ b/services/mcp/src/mcp.ts
@@ -576,7 +576,7 @@ export class MCP extends McpAgent<Env> {
// Trigger OAuth introspection so the OAuth client name is cached before the useSingleExec decision below
context.stateManager.getApiKey(),
])
- const posthogMcpAnalyticsOn = posthogMcpAnalyticsFlag.enabled
+ const isPosthogMCPAnalyticsEnabled = posthogMcpAnalyticsFlag.enabled
const oauthClientName = (await this.cache.get('clientName')) || undefined
@@ -768,9 +768,9 @@ export class MCP extends McpAgent<Env> {
}
Object.assign(this.requestProperties, {
- mcpAnalyticsProvider: posthogMcpAnalyticsOn ? 'posthog_mcp_analytics' : 'mcpcat',
+ mcpAnalyticsProvider: isPosthogMCPAnalyticsEnabled ? 'posthog_mcp_analytics' : 'mcpcat',
mcpAnalyticsFlagKey: POSTHOG_MCP_ANALYTICS_FLAG,
- mcpAnalyticsFlagEnabled: posthogMcpAnalyticsOn,
+ mcpAnalyticsFlagEnabled: isPosthogMCPAnalyticsEnabled,
...(posthogMcpAnalyticsFlag.errorName
? { mcpAnalyticsFlagErrorName: posthogMcpAnalyticsFlag.errorName }
: {}),
@@ -787,7 +787,7 @@ export class MCP extends McpAgent<Env> {
// it lets the model report a gap in our discrete tool catalog. In
// single-exec mode the wrapper handles every call, so the missing-tool
// signal has nothing to map to and the extra slot is pure noise.
- if (posthogMcpAnalyticsOn) {
+ if (isPosthogMCPAnalyticsEnabled) {
// In single-exec mode every event's `$mcp_tool_name` is `exec`, so the
// SDK's `$mcp_tool_description` would be the dispatcher's static text on
// every call. Resolve the inner tool the agent was actually invoking