mcp-ga4 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"sha":"38406d3","builtAt":"2026-04-03T23:26:52.380Z"}
1
+ {"sha":"365aba8","builtAt":"2026-04-09T18:53:37.914Z"}
package/dist/index.js CHANGED
@@ -106,6 +106,7 @@ class Ga4Manager {
106
106
  if (this.config.credentials_file) {
107
107
  opts.keyFile = this.config.credentials_file;
108
108
  }
109
+ opts.scopes = ["https://www.googleapis.com/auth/analytics.readonly"];
109
110
  this.dataClient = new BetaAnalyticsDataClient(opts);
110
111
  }
111
112
  return this.dataClient;
@@ -116,6 +117,10 @@ class Ga4Manager {
116
117
  if (this.config.credentials_file) {
117
118
  opts.keyFile = this.config.credentials_file;
118
119
  }
120
+ opts.scopes = [
121
+ "https://www.googleapis.com/auth/analytics.readonly",
122
+ "https://www.googleapis.com/auth/analytics.edit",
123
+ ];
119
124
  this.adminClient = new AnalyticsAdminServiceClient(opts);
120
125
  }
121
126
  return this.adminClient;
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "mcp-ga4",
3
- "version": "2.0.0",
3
+ "mcpName": "io.github.mharnett/ga4",
4
+ "version": "2.0.2",
4
5
  "description": "MCP server for Google Analytics 4 - query GA4 data with natural language via Claude.",
5
6
  "main": "dist/index.js",
7
+ "bin": {
8
+ "mcp-ga4": "dist/index.js"
9
+ },
6
10
  "types": "dist/index.d.ts",
7
11
  "type": "module",
8
12
  "exports": {