mcp-google-map 0.5.0 → 0.7.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.
- package/README.md +14 -14
- package/dist/cli.js +723 -494
- package/dist/cli.js.map +1 -1
- package/docs/CONFIGURATION.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mcp-google-map (0.
|
|
1
|
+
# mcp-google-map (0.7.0)
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<img src="https://img.shields.io/badge/node-%3E%3D22-339933?style=flat-square&logo=nodedotjs&logoColor=white" alt="Node.js >= 22">
|
|
@@ -98,11 +98,11 @@ npm install -g mcp-google-map
|
|
|
98
98
|
mcp-google-map setup --write-env # scaffold .env in the current directory (never overwrites)
|
|
99
99
|
$EDITOR .env # set GOOGLE_MAPS_API_KEY
|
|
100
100
|
mcp-google-map doctor # local self-check: Node, package, key, config (no network)
|
|
101
|
-
mcp-google-map --stdio
|
|
102
|
-
mcp-google-map
|
|
101
|
+
mcp-google-map start --stdio # MCP server over stdio
|
|
102
|
+
mcp-google-map start # MCP server over Streamable HTTP at http://127.0.0.1:3000/mcp
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
One-shot alternative without a global install: `npx -y mcp-google-map --stdio`.
|
|
105
|
+
One-shot alternative without a global install: `npx -y mcp-google-map start --stdio`.
|
|
106
106
|
|
|
107
107
|
### From source (this repository) — cross-platform, no bash required
|
|
108
108
|
|
|
@@ -111,8 +111,8 @@ git clone https://github.com/Ogekuri/mcp-google-map.git
|
|
|
111
111
|
cd mcp-google-map
|
|
112
112
|
npm ci # install dependencies from the lockfile
|
|
113
113
|
npm run build # tsup -> dist/ (ESM)
|
|
114
|
-
node dist/cli.js --stdio # MCP server over stdio
|
|
115
|
-
node dist/cli.js --host 127.0.0.1 --port 3000 # Streamable HTTP at /mcp
|
|
114
|
+
node dist/cli.js start --stdio # MCP server over stdio
|
|
115
|
+
node dist/cli.js start --host 127.0.0.1 --port 3000 # Streamable HTTP at /mcp
|
|
116
116
|
```
|
|
117
117
|
|
|
118
118
|
On Linux/macOS the bash helpers in `scripts/` wrap the same commands (`scripts/setup.sh`, `scripts/build.sh`, `scripts/start-mcp.sh`, `scripts/start-http.sh`, `scripts/test.sh`); each helper fails with remediation guidance instead of chaining implicit installs or builds. On Windows use the `npm`/`node` commands above.
|
|
@@ -124,7 +124,7 @@ MCP client registration over stdio works cross-platform with plain `node`:
|
|
|
124
124
|
"mcpServers": {
|
|
125
125
|
"mcp-google-map": {
|
|
126
126
|
"command": "node",
|
|
127
|
-
"args": ["/absolute/path/to/mcp-google-map/dist/cli.js", "--stdio"],
|
|
127
|
+
"args": ["/absolute/path/to/mcp-google-map/dist/cli.js", "start", "--stdio"],
|
|
128
128
|
"env": { "GOOGLE_MAPS_API_KEY": "AIza..." }
|
|
129
129
|
}
|
|
130
130
|
}
|
|
@@ -155,8 +155,8 @@ mcp-google-map snippet --transport http --port 3100 # HTTP URL snip
|
|
|
155
155
|
All commands work through the `mcp-google-map` binary (npm install) or `node dist/cli.js` (from source).
|
|
156
156
|
|
|
157
157
|
```bash
|
|
158
|
-
mcp-google-map --stdio
|
|
159
|
-
mcp-google-map --host 127.0.0.1 --port 3000
|
|
158
|
+
mcp-google-map start --stdio # MCP server over stdio
|
|
159
|
+
mcp-google-map start --host 127.0.0.1 --port 3000 # MCP server over Streamable HTTP at /mcp (loopback default)
|
|
160
160
|
mcp-google-map setup --write-env # onboarding: readiness checks + .env scaffold (no network, no prompts)
|
|
161
161
|
mcp-google-map doctor # local self-check: Node, package, key, config, tool profiles (no network)
|
|
162
162
|
mcp-google-map doctor --live --apikey "AIza..." # also probes Geocoding, Places (New), Routes (billable calls)
|
|
@@ -178,7 +178,7 @@ mcp-google-map snippet --client cursor # print an MCP client re
|
|
|
178
178
|
- `snippet` prints a valid `mcpServers` JSON registration to stdout (guidance notes on stderr) and never writes or edits configuration files; by default it embeds a literal placeholder, and `--env-key NAME` emits a `${NAME}` reference whose expansion is client-specific.
|
|
179
179
|
- `--env-file <path>` loads exactly the given environment file for any command and exits 1 with a JSON error when the file is missing (no implicit `.env` fallback).
|
|
180
180
|
- `enable <cli>` / `disable <cli>` manage the persisted enabled-CLI set at `~/.config/mcp-google-map/config.json`; accepted names (case-insensitive): `pi`, `openclaw`, `codex`, `antigravity`, `claude`; unsupported names exit 2 listing the supported ones.
|
|
181
|
-
- `install` registers for every enabled CLI the stdio server entry `mcp-google-map` (`npx -y mcp-google-map --stdio`, embedding the resolved `GOOGLE_MAPS_API_KEY` when set) and installs every bundled skill; `uninstall` is the reciprocal removal. Per-CLI targets: pi `~/.pi/agent/mcp.json` + `~/.pi/agent/skills`, openclaw `~/.openclaw/openclaw.json` + `~/.openclaw/workspace/skills`, codex `~/.codex/config.toml` (`mcp_servers` table) + `~/.codex/skills`, antigravity `~/.gemini/settings.json` + `~/.gemini/config/skills`, claude `~/.claude.json` + `~/.claude/skills`. Existing unrelated configuration entries are always preserved.
|
|
181
|
+
- `install` registers for every enabled CLI the stdio server entry `mcp-google-map` (`npx -y mcp-google-map start --stdio`, embedding the resolved `GOOGLE_MAPS_API_KEY` when set) and installs every bundled skill; `uninstall` is the reciprocal removal. Per-CLI targets: pi `~/.pi/agent/mcp.json` + `~/.pi/agent/skills`, openclaw `~/.openclaw/openclaw.json` + `~/.openclaw/workspace/skills`, codex `~/.codex/config.toml` (`mcp_servers` table) + `~/.codex/skills`, antigravity `~/.gemini/settings.json` + `~/.gemini/config/skills`, claude `~/.claude.json` + `~/.claude/skills`. Existing unrelated configuration entries are always preserved.
|
|
182
182
|
- `show` prints two human-readable tables: CLI Configuration (CLI, Enabled, MCP Config Path, Skills Config Path for all five CLIs) and Installation Status (Type, Name, CLI, Enabled, Installed with OK/MISSING/STALE per enabled CLI).
|
|
183
183
|
- HTTP mode starts even without an API key and logs a warning; stdio mode and the CLI commands require a key (`--apikey` or `GOOGLE_MAPS_API_KEY`). When no HTTP instance can start (invalid or taken port), the process exits non-zero.
|
|
184
184
|
|
|
@@ -220,14 +220,14 @@ pi reads MCP servers from `~/.pi/agent/mcp.json` (user) or `.pi/mcp.json` (proje
|
|
|
220
220
|
"mcpServers": {
|
|
221
221
|
"maps": {
|
|
222
222
|
"command": "node",
|
|
223
|
-
"args": ["/absolute/path/to/mcp-google-map/dist/cli.js", "--stdio"],
|
|
223
|
+
"args": ["/absolute/path/to/mcp-google-map/dist/cli.js", "start", "--stdio"],
|
|
224
224
|
"env": { "GOOGLE_MAPS_API_KEY": "${GOOGLE_MAPS_API_KEY}" }
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
```
|
|
229
229
|
|
|
230
|
-
- From a terminal: `pi mcp add maps -- node /absolute/path/to/mcp-google-map/dist/cli.js --stdio` (add `--env GOOGLE_MAPS_API_KEY=...` to pass the key).
|
|
230
|
+
- From a terminal: `pi mcp add maps -- node /absolute/path/to/mcp-google-map/dist/cli.js start --stdio` (add `--env GOOGLE_MAPS_API_KEY=...` to pass the key).
|
|
231
231
|
- `${GOOGLE_MAPS_API_KEY}` expands the environment variable on the fly: the key never stays hard-coded in the configuration file.
|
|
232
232
|
- After editing `mcp.json` outside the session, run `/reload` in pi; `/mcp` inspects status, tools, and connection errors.
|
|
233
233
|
- Tools appear with the `mcp__<server>__` prefix: `mcp__maps__maps_geocode`, `mcp__maps__maps_search_places`, ...
|
|
@@ -237,10 +237,10 @@ pi reads MCP servers from `~/.pi/agent/mcp.json` (user) or `.pi/mcp.json` (proje
|
|
|
237
237
|
OpenClaw manages MCP servers in `~/.openclaw/openclaw.json` through its CLI (verified on OpenClaw 2026.4.21):
|
|
238
238
|
|
|
239
239
|
```bash
|
|
240
|
-
openclaw mcp set maps '{"command":"node","args":["/absolute/path/to/mcp-google-map/dist/cli.js","--stdio"],"env":{"GOOGLE_MAPS_API_KEY":"AIza..."},"description":"Google Maps: Places API (New), geocoding, routes, weather"}'
|
|
240
|
+
openclaw mcp set maps '{"command":"node","args":["/absolute/path/to/mcp-google-map/dist/cli.js","start","--stdio"],"env":{"GOOGLE_MAPS_API_KEY":"AIza..."},"description":"Google Maps: Places API (New), geocoding, routes, weather"}'
|
|
241
241
|
```
|
|
242
242
|
|
|
243
|
-
- Without a local install: use `"command":"npx","args":["-y","mcp-google-map","--stdio"]` (runs the published npm package).
|
|
243
|
+
- Without a local install: use `"command":"npx","args":["-y","mcp-google-map","start","--stdio"]` (runs the published npm package).
|
|
244
244
|
- After the change, reload the gateway or restart the agent session so the new server gets connected.
|
|
245
245
|
- Inspect and remove: `openclaw mcp list`, `openclaw mcp show maps`, `openclaw mcp unset maps`.
|
|
246
246
|
- The OpenClaw agent can install and configure the server on its own (shell + `openclaw mcp set`); creating the API key in Google Cloud Console remains a human task.
|