: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(warehouse-sources): align MCP tool scopes with the API (#111842)
Julian Beze1b2b54cfd45
diff --git a/products/warehouse_sources/mcp/tools.yaml b/products/warehouse_sources/mcp/tools.yamlindex cea862a0417c..a8f5b2d5e898 100644--- a/products/warehouse_sources/mcp/tools.yaml+++ b/products/warehouse_sources/mcp/tools.yaml@@ -163,7 +163,7 @@ tools:operation: external_data_schemas_destinations_retrieveenabled: truescopes:- - external_data_source:read+ - external_data_source:writeannotations:readOnly: truedestructive: false@@ -438,7 +438,7 @@ tools:operation: external_data_sources_destinations_retrieveenabled: truescopes:- - external_data_source:read+ - external_data_source:writeannotations:readOnly: truedestructive: falsediff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 2c2695095f7c..b45d1a0a0c70 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -5566,7 +5566,7 @@"feature": "warehouse_sources","summary": "Get a table's destinations","title": "Get a table's destinations",- "required_scopes": ["external_data_source:read"],+ "required_scopes": ["external_data_source:write"],"annotations": {"destructiveHint": false,"idempotentHint": true,@@ -5749,7 +5749,7 @@"feature": "warehouse_sources","summary": "Get a source's destinations","title": "Get a source's destinations",- "required_scopes": ["external_data_source:read"],+ "required_scopes": ["external_data_source:write"],"annotations": {"destructiveHint": false,"idempotentHint": true,diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 11203fd7de4c..376b34ddd87d 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -5665,7 +5665,7 @@"feature": "warehouse_sources","summary": "Get a table's destinations","title": "Get a table's destinations",- "required_scopes": ["external_data_source:read"],+ "required_scopes": ["external_data_source:write"],"annotations": {"destructiveHint": false,"idempotentHint": true,@@ -5862,7 +5862,7 @@"feature": "warehouse_sources","summary": "Get a source's destinations","title": "Get a source's destinations",- "required_scopes": ["external_data_source:read"],+ "required_scopes": ["external_data_source:write"],"annotations": {"destructiveHint": false,"idempotentHint": true,