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(data-warehouse): align MCP tool scopes with the API (#111840)

Julian Beze9c0861c66a1
diff --git a/products/data_warehouse/mcp/tools.yaml b/products/data_warehouse/mcp/tools.yaml
index 177d74309b02..09232dd5bbf2 100644
--- a/products/data_warehouse/mcp/tools.yaml
+++ b/products/data_warehouse/mcp/tools.yaml
@@ -453,7 +453,7 @@ tools:
operation: warehouse_column_annotations_create
enabled: true
scopes:
- - external_data_source:write
+ - warehouse_table:write
annotations:
readOnly: false
destructive: false
@@ -473,7 +473,7 @@ tools:
operation: warehouse_column_annotations_list
enabled: true
scopes:
- - external_data_source:read
+ - warehouse_table:read
annotations:
readOnly: true
destructive: false
@@ -489,7 +489,7 @@ tools:
operation: warehouse_column_annotations_partial_update
enabled: true
scopes:
- - external_data_source:write
+ - warehouse_table:write
annotations:
readOnly: false
destructive: false
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index 879e9951b431..202de9f7c3a5 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -13998,7 +13998,7 @@
"feature": "data_warehouse",
"summary": "Add a warehouse column description",
"title": "Add a warehouse column description",
- "required_scopes": ["external_data_source:write"],
+ "required_scopes": ["warehouse_table:write"],
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -14012,7 +14012,7 @@
"feature": "data_warehouse",
"summary": "List warehouse column descriptions",
"title": "List warehouse column descriptions",
- "required_scopes": ["external_data_source:read"],
+ "required_scopes": ["warehouse_table:read"],
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -14026,7 +14026,7 @@
"feature": "data_warehouse",
"summary": "Edit a warehouse column description",
"title": "Edit a warehouse column description",
- "required_scopes": ["external_data_source:write"],
+ "required_scopes": ["warehouse_table:write"],
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index 28e5df3134e9..0b6bb1a917e2 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -14676,7 +14676,7 @@
"feature": "data_warehouse",
"summary": "Add a warehouse column description",
"title": "Add a warehouse column description",
- "required_scopes": ["external_data_source:write"],
+ "required_scopes": ["warehouse_table:write"],
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -14690,7 +14690,7 @@
"feature": "data_warehouse",
"summary": "List warehouse column descriptions",
"title": "List warehouse column descriptions",
- "required_scopes": ["external_data_source:read"],
+ "required_scopes": ["warehouse_table:read"],
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -14704,7 +14704,7 @@
"feature": "data_warehouse",
"summary": "Edit a warehouse column description",
"title": "Edit a warehouse column description",
- "required_scopes": ["external_data_source:write"],
+ "required_scopes": ["warehouse_table:write"],
"annotations": {
"destructiveHint": false,
"idempotentHint": true,