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(mcp): add organization-enforce-2fa to destructive tool lists (#72924)

mendral-app[bot]c744835ef75a
diff --git a/products/posthog_ai/frontend/policy/toolPolicy.ts b/products/posthog_ai/frontend/policy/toolPolicy.ts
index e598a687bc54..5b58276cbab7 100644
--- a/products/posthog_ai/frontend/policy/toolPolicy.ts
+++ b/products/posthog_ai/frontend/policy/toolPolicy.ts
@@ -44,6 +44,7 @@ const POSTHOG_DESTRUCTIVE_SUB_TOOLS = new Set([
'inbox-reports-bulk-set-state',
'inbox-reports-set-state',
'llma-prompt-label-set',
+ 'organization-enforce-2fa',
'scout-scratchpad-forget',
'signals-scout-scratchpad-forget',
'skill-archive',
diff --git a/products/tasks/backend/constants.py b/products/tasks/backend/constants.py
index e72120b6026f..ea638228bba1 100644
--- a/products/tasks/backend/constants.py
+++ b/products/tasks/backend/constants.py
@@ -91,6 +91,7 @@ POSTHOG_EXEC_DESTRUCTIVE_SUB_TOOLS: tuple[str, ...] = (
"inbox-reports-bulk-set-state",
"inbox-reports-set-state",
"llma-prompt-label-set",
+ "organization-enforce-2fa",
"scout-scratchpad-forget",
"signals-scout-scratchpad-forget",
"skill-archive",