Skip to content

Commit 924eb1f

Browse files
authored
refactor(packaging)!: rename package to "analytics-mcp" for publishing (#44)
BREAKING_CHANGE: Renamed the package to 'analytics-mcp' since the previous package name 'google-analytics-mcp' is already claimed on PyPi. Users must update their Gemini settings to use the new binary name.
1 parent 559ba1e commit 924eb1f

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Replace `PATH_TO_REPO` in the following snippet with the path where you cloned
6565
the repo:
6666
6767
```
68-
"command": "PATH_TO_REPO/.venv/bin/google-analytics-mcp",
68+
"command": "PATH_TO_REPO/.venv/bin/analytics-mcp",
6969
```
7070
7171
When running the `gemini` command from a terminal, add the `--debug` option so
@@ -90,7 +90,7 @@ branch named `awesome-feature-42` in this repo:
9090
"--no-cache",
9191
"--spec",
9292
"git+https://github.com/googleanalytics/google-analytics-mcp.git@awesome-feature-42",
93-
"google-analytics-mcp"
93+
"analytics-mcp"
9494
],
9595
"env": {
9696
"GOOGLE_APPLICATION_CREDENTIALS": "PATH_TO_CREDENTIALS_JSON",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Credentials saved to file: [PATH_TO_CREDENTIALS_JSON]
127127
"run",
128128
"--spec",
129129
"git+https://github.com/googleanalytics/google-analytics-mcp.git",
130-
"google-analytics-mcp"
130+
"analytics-mcp"
131131
],
132132
"env": {
133133
"GOOGLE_APPLICATION_CREDENTIALS": "PATH_TO_CREDENTIALS_JSON",

analytics_mcp/tools/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _get_package_version_with_fallback():
2929
Falls back to 'unknown' if the version can't be resolved.
3030
"""
3131
try:
32-
return metadata.version("google-analytics-mcp")
32+
return metadata.version("analytics-mcp")
3333
except:
3434
return "unknown"
3535

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[project]
2-
name = "google-analytics-mcp"
2+
name = "analytics-mcp"
33
version = "0.1.0"
44
# Lower bound of 3.10 due to the 'mcp' dependency:
55
# https://github.com/modelcontextprotocol/python-sdk/blob/main/pyproject.toml
66
requires-python = ">=3.10, <3.14"
77
license = "Apache-2.0"
8+
readme = "README.md"
89
dependencies = [
910
"google-analytics-data==0.18.19",
1011
"google-analytics-admin==0.24.1",
@@ -14,6 +15,8 @@ dependencies = [
1415
]
1516

1617
[project.scripts]
18+
analytics-mcp = "analytics_mcp.server:run_server"
19+
# The previous name of the script. Kept for backwards compatibility.
1720
google-analytics-mcp = "analytics_mcp.server:run_server"
1821

1922
[project.optional-dependencies]

0 commit comments

Comments
 (0)