: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(replay-vision): align MCP tool scopes with the API (#111841)
Julian Bez2910692c2d17
diff --git a/products/replay_vision/mcp/tools.yaml b/products/replay_vision/mcp/tools.yamlindex 5b9bff9c5154..af7a2fcfe7e9 100644--- a/products/replay_vision/mcp/tools.yaml+++ b/products/replay_vision/mcp/tools.yaml@@ -432,6 +432,7 @@ tools:enabled: truescopes:- replay_scanner:read+ - session_recording:read- cohort:writeannotations:readOnly: false@@ -718,6 +719,7 @@ tools:enabled: truescopes:- replay_scanner:read+ - session_recording:readannotations:readOnly: truedestructive: false@@ -733,6 +735,7 @@ tools:enabled: truescopes:- replay_scanner:read+ - session_recording:readannotations:readOnly: truedestructive: falsediff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 202de9f7c3a5..2c2695095f7c 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -13193,7 +13193,7 @@"feature": "replay_vision","summary": "Save a scanner's affected users as a cohort","title": "Save a scanner's affected users as a cohort",- "required_scopes": ["replay_scanner:read", "cohort:write"],+ "required_scopes": ["replay_scanner:read", "session_recording:read", "cohort:write"],"annotations": {"destructiveHint": false,"idempotentHint": false,@@ -13408,7 +13408,7 @@"feature": "replay_vision","summary": "Get a scanner's impact counts","title": "Get a scanner's impact counts",- "required_scopes": ["replay_scanner:read"],+ "required_scopes": ["replay_scanner:read", "session_recording:read"],"annotations": {"destructiveHint": false,"idempotentHint": true,@@ -13422,7 +13422,7 @@"feature": "replay_vision","summary": "Get a scanner's impact counts (deprecated)","title": "Get a scanner's impact counts (deprecated)",- "required_scopes": ["replay_scanner:read"],+ "required_scopes": ["replay_scanner:read", "session_recording:read"],"annotations": {"destructiveHint": false,"idempotentHint": true,diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 0b6bb1a917e2..11203fd7de4c 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -13871,7 +13871,7 @@"feature": "replay_vision","summary": "Save a scanner's affected users as a cohort","title": "Save a scanner's affected users as a cohort",- "required_scopes": ["replay_scanner:read", "cohort:write"],+ "required_scopes": ["replay_scanner:read", "session_recording:read", "cohort:write"],"annotations": {"destructiveHint": false,"idempotentHint": false,@@ -14086,7 +14086,7 @@"feature": "replay_vision","summary": "Get a scanner's impact counts","title": "Get a scanner's impact counts",- "required_scopes": ["replay_scanner:read"],+ "required_scopes": ["replay_scanner:read", "session_recording:read"],"annotations": {"destructiveHint": false,"idempotentHint": true,@@ -14100,7 +14100,7 @@"feature": "replay_vision","summary": "Get a scanner's impact counts (deprecated)","title": "Get a scanner's impact counts (deprecated)",- "required_scopes": ["replay_scanner:read"],+ "required_scopes": ["replay_scanner:read", "session_recording:read"],"annotations": {"destructiveHint": false,"idempotentHint": true,