@dongsik/ga4-mcp 0.1.1 → 0.1.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.
package/README.md CHANGED
@@ -59,8 +59,15 @@ npx -y @dongsik/ga4-mcp
59
59
  1. Create or select a project in [Google Cloud Console](https://console.cloud.google.com/)
60
60
  2. **APIs & Services → Library** → Enable "Google Analytics Data API"
61
61
  3. **APIs & Services → Library** → Enable "Google Analytics Admin API"
62
- 4. **APIs & Services → Credentials** → Create **OAuth 2.0 Client ID** (type: Desktop app)
63
- 5. Download the JSON file and save as `client_secret.json`
62
+ 4. **APIs & Services → OAuth consent screen** → Set User Type to **External**, add your Google account as a test user
63
+ 5. **APIs & Services Credentials** Create **OAuth 2.0 Client ID** (type: Desktop app)
64
+ 6. Download the JSON file → this is your `client_secret.json`
65
+
66
+ ### Find your GA4 Property ID
67
+
68
+ 1. Go to [Google Analytics](https://analytics.google.com)
69
+ 2. Bottom left **Admin (gear icon)** → **Property Settings**
70
+ 3. Your **Property ID** is the numeric ID shown at the top (e.g. `417304962`)
64
71
 
65
72
  ## Installation
66
73
 
@@ -73,7 +80,7 @@ Add to your `claude_desktop_config.json`:
73
80
  "mcpServers": {
74
81
  "ga": {
75
82
  "command": "npx",
76
- "args": ["-y", "@dongsik/ga4-mcp"],
83
+ "args": ["--package=@dongsik/ga4-mcp", "ga4-mcp"],
77
84
  "env": {
78
85
  "GA_CLIENT_SECRET_PATH": "/path/to/client_secret.json",
79
86
  "GA4_PROPERTY_ID": "123456789"
@@ -88,13 +95,13 @@ Add to your `claude_desktop_config.json`:
88
95
  ### Claude Code (CLI)
89
96
 
90
97
  ```bash
91
- claude mcp add ga4 -- npx -y @dongsik/ga4-mcp
98
+ claude mcp add ga4 -- npx --package=@dongsik/ga4-mcp ga4-mcp
92
99
  ```
93
100
 
94
101
  Set environment variables:
95
102
 
96
103
  ```bash
97
- claude mcp add ga4 -e GA_CLIENT_SECRET_PATH=/path/to/client_secret.json -e GA4_PROPERTY_ID=123456789 -- npx -y @dongsik/ga4-mcp
104
+ claude mcp add ga4 -e GA_CLIENT_SECRET_PATH=/path/to/client_secret.json -e GA4_PROPERTY_ID=123456789 -- npx --package=@dongsik/ga4-mcp ga4-mcp
98
105
  ```
99
106
 
100
107
  ### Environment Variables
package/docs/README.ko.md CHANGED
@@ -59,8 +59,15 @@ npx -y @dongsik/ga4-mcp
59
59
  1. [Google Cloud Console](https://console.cloud.google.com/)에서 프로젝트 생성 또는 선택
60
60
  2. **APIs & Services → Library** → "Google Analytics Data API" 활성화
61
61
  3. **APIs & Services → Library** → "Google Analytics Admin API" 활성화
62
- 4. **APIs & Services → Credentials****OAuth 2.0 Client ID** 생성 (유형: Desktop app)
63
- 5. JSON 다운로드`client_secret.json`으로 저장
62
+ 4. **APIs & Services → OAuth 동의 화면** 사용자 유형 **외부** 선택, 테스트 사용자에 본인 Google 계정 추가
63
+ 5. **APIs & Services Credentials** → **OAuth 2.0 Client ID** 생성 (유형: Desktop app)
64
+ 6. JSON 다운로드 → 이 파일이 `client_secret.json`
65
+
66
+ ### GA4 속성 ID 확인
67
+
68
+ 1. [Google Analytics](https://analytics.google.com) 접속
69
+ 2. 왼쪽 하단 **관리(톱니바퀴)** → **속성 설정**
70
+ 3. 상단에 표시된 숫자가 **속성 ID** (예: `417304962`)
64
71
 
65
72
  ## 설치 및 실행
66
73
 
@@ -73,7 +80,7 @@ npx -y @dongsik/ga4-mcp
73
80
  "mcpServers": {
74
81
  "ga": {
75
82
  "command": "npx",
76
- "args": ["-y", "@dongsik/ga4-mcp"],
83
+ "args": ["--package=@dongsik/ga4-mcp", "ga4-mcp"],
77
84
  "env": {
78
85
  "GA_CLIENT_SECRET_PATH": "/path/to/client_secret.json",
79
86
  "GA4_PROPERTY_ID": "123456789"
@@ -88,13 +95,13 @@ npx -y @dongsik/ga4-mcp
88
95
  ### Claude Code (CLI)
89
96
 
90
97
  ```bash
91
- claude mcp add ga4 -- npx -y @dongsik/ga4-mcp
98
+ claude mcp add ga4 -- npx --package=@dongsik/ga4-mcp ga4-mcp
92
99
  ```
93
100
 
94
101
  환경변수 설정:
95
102
 
96
103
  ```bash
97
- claude mcp add ga4 -e GA_CLIENT_SECRET_PATH=/path/to/client_secret.json -e GA4_PROPERTY_ID=123456789 -- npx -y @dongsik/ga4-mcp
104
+ claude mcp add ga4 -e GA_CLIENT_SECRET_PATH=/path/to/client_secret.json -e GA4_PROPERTY_ID=123456789 -- npx --package=@dongsik/ga4-mcp ga4-mcp
98
105
  ```
99
106
 
100
107
  ### 환경변수
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@dongsik/ga4-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Google Analytics 4 MCP Server",
5
+ "license": "MIT",
5
6
  "type": "module",
6
7
  "bin": {
7
8
  "ga4-mcp": "dist/index.js"
8
9
  },
9
10
  "scripts": {
10
- "build": "tsc",
11
+ "build": "tsc && chmod +x dist/index.js",
11
12
  "start": "node dist/index.js"
12
13
  },
13
14
  "dependencies": {