mcp-ga4 2.0.2 → 2.0.3

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":"365aba8","builtAt":"2026-04-09T18:53:37.914Z"}
1
+ {"sha":"991317b","builtAt":"2026-04-09T19:37:26.093Z"}
package/dist/index.js CHANGED
@@ -20,6 +20,22 @@ try {
20
20
  catch {
21
21
  // dev mode
22
22
  }
23
+ // CLI flags
24
+ const __cliPkg = JSON.parse(readFileSync(join(dirname(new URL(import.meta.url).pathname), "..", "package.json"), "utf-8"));
25
+ if (process.argv.includes("--help") || process.argv.includes("-h")) {
26
+ console.log(`${__cliPkg.name} v${__cliPkg.version}\n`);
27
+ console.log(`Usage: ${__cliPkg.name} [options]\n`);
28
+ console.log("MCP server communicating via stdio. Configure in your .mcp.json.\n");
29
+ console.log("Options:");
30
+ console.log(" --help, -h Show this help message");
31
+ console.log(" --version, -v Show version number");
32
+ console.log(`\nDocumentation: https://github.com/mharnett/mcp-ga4`);
33
+ process.exit(0);
34
+ }
35
+ if (process.argv.includes("--version") || process.argv.includes("-v")) {
36
+ console.log(__cliPkg.version);
37
+ process.exit(0);
38
+ }
23
39
  function loadConfig() {
24
40
  // Single-property mode via env vars
25
41
  const propertyId = process.env.GA4_PROPERTY_ID;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mcp-ga4",
3
3
  "mcpName": "io.github.mharnett/ga4",
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "description": "MCP server for Google Analytics 4 - query GA4 data with natural language via Claude.",
6
6
  "main": "dist/index.js",
7
7
  "bin": {
@@ -33,8 +33,8 @@
33
33
  "node": ">=18.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@google-analytics/data": "^5.2.1",
37
36
  "@google-analytics/admin": "^9.0.1",
37
+ "@google-analytics/data": "^5.2.1",
38
38
  "@modelcontextprotocol/sdk": "^0.5.0",
39
39
  "cockatiel": "^3.2.1",
40
40
  "google-auth-library": "^9.14.0",