Skip to content

Commit d9cca7c

Browse files
authored
fix(oauth): Add missing MCP server OAuth scopes (#938)
## Problem Twig wasn't requesting all OAuth scopes that the PostHog MCP server supports, causing MCP tools that rely on those scopes to fail. Missing scopes: `action:read`, `action:write`, `error_tracking:write`, `event_definition:write`, `logs:read`, `warehouse_view:read`. ## Changes - Added 6 missing MCP server OAuth scopes to the Twig app's OAuth configuration - Sorted scopes alphabetically for consistency
1 parent 6265433 commit d9cca7c

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

apps/twig/src/constants/oauth.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,29 @@ export const OAUTH_SCOPES = [
1212
"llm_gateway:read",
1313
"integration:read",
1414
"introspection",
15+
// MCP server scopes
16+
"action:read",
17+
"action:write",
1518
"dashboard:read",
19+
"dashboard:write",
1620
"error_tracking:read",
21+
"error_tracking:write",
1722
"event_definition:read",
23+
"event_definition:write",
1824
"experiment:read",
25+
"experiment:write",
1926
"feature_flag:read",
27+
"feature_flag:write",
2028
"insight:read",
29+
"insight:write",
30+
"logs:read",
2131
"organization:read",
2232
"property_definition:read",
2333
"query:read",
2434
"survey:read",
25-
"warehouse_table:read",
26-
"dashboard:write",
27-
"experiment:write",
28-
"feature_flag:write",
29-
"insight:write",
3035
"survey:write",
36+
"warehouse_table:read",
37+
"warehouse_view:read",
3138
];
3239

3340
// Token refresh settings

0 commit comments

Comments
 (0)