mcp-google-api 0.22.0 → 0.23.0

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.
@@ -73,3 +73,25 @@ mcp-google-api doctor # local self-check: Node >= 24, package, key,
73
73
  mcp-google-api doctor --live # billable probes against Geocoding, Places (New), and Routes
74
74
  mcp-google-api show # CLI configuration and installation status tables
75
75
  ```
76
+
77
+ ### MCP connection closed after a rename or upgrade
78
+
79
+ The registered entry launches `npx -y mcp-google-api start --stdio`. When the
80
+ MCP client spawns this command from a directory that hosts a same-name local
81
+ project (for example a repository checkout), `npm exec` prefers that local
82
+ project's own `dist/cli.js` over the installed package. A stale `dist/` build
83
+ from before a distribution rename then launches old code that silently exits
84
+ without answering the MCP handshake, and the client reports
85
+ `MCP connection closed`.
86
+
87
+ Remediation (run inside that checkout, then reconnect the MCP client):
88
+
89
+ ```bash
90
+ npm run verify # typecheck + unit tests + fresh dist/ build
91
+ # or, to ignore the local checkout and use the published package only:
92
+ npm install -g mcp-google-api@latest
93
+ ```
94
+
95
+ Since 0.22.0 the CLI prints a JSON diagnostic on stderr naming this exact
96
+ condition and the remediation commands instead of exiting silently, so a
97
+ stale-artifact launch is visible in MCP client logs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-google-api",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "Google API MCP server — 18 Google Maps tools for AI agents: geocoding, Places API (New) search with server-side filters, directions, distance matrix and more, via stdio or Streamable HTTP",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -9,9 +9,10 @@
9
9
  "./package.json": "./package.json"
10
10
  },
11
11
  "bin": {
12
- "mcp-google-api": "dist/cli.js"
12
+ "mcp-google-api": "bin/mcp-google-api.mjs"
13
13
  },
14
14
  "files": [
15
+ "bin",
15
16
  "dist",
16
17
  "src/resources/skills",
17
18
  "README.md",
@@ -25,9 +26,10 @@
25
26
  "typecheck": "tsc --noEmit",
26
27
  "test": "tsx --test tests/*.unit.test.ts",
27
28
  "test:e2e": "tsx tests/smoke.test.ts",
28
- "check:publish-version": "node scripts/check-publish-version.mjs",
29
+ "check:publish-version": "node tools/check-publish-version.mjs",
29
30
  "verify": "npm run typecheck && npm test && npm run build",
30
- "prepublishOnly": "npm run check:publish-version && npm run build"
31
+ "prepublishOnly": "npm run check:publish-version && npm run build",
32
+ "prepare": "npm run build"
31
33
  },
32
34
  "engines": {
33
35
  "node": ">=24"