google-tools-mcp 1.2.9 → 1.2.10

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.
Files changed (3) hide show
  1. package/README.md +21 -6
  2. package/dist/setup.js +32 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -36,7 +36,7 @@ The wizard walks you through:
36
36
  3. Creating OAuth credentials
37
37
  4. Authenticating with Google
38
38
 
39
- After setup, just add it to your MCP client (see [Step 3](#step-3-add-to-your-mcp-client) below).
39
+ The setup wizard can add the MCP server to Codex or Claude Code automatically when their CLIs are installed. You can also add it manually later (see [Step 3](#step-3-add-to-your-mcp-client) below).
40
40
 
41
41
  ### Manual Setup
42
42
 
@@ -107,11 +107,26 @@ Add the credentials directly to your MCP configuration:
107
107
 
108
108
  </details>
109
109
 
110
- ### Step 3: Add to Your MCP Client
111
-
112
- #### Claude Code (recommended)
113
-
114
- **User-scope** (available in all projects):
110
+ ### Step 3: Add to Your MCP Client
111
+
112
+ #### Codex
113
+
114
+ ```bash
115
+ codex mcp add google -- npx -y google-tools-mcp
116
+ ```
117
+
118
+ With env vars (Option C):
119
+
120
+ ```bash
121
+ codex mcp add google \
122
+ --env GOOGLE_CLIENT_ID=your-client-id \
123
+ --env GOOGLE_CLIENT_SECRET=your-client-secret \
124
+ -- npx -y google-tools-mcp
125
+ ```
126
+
127
+ #### Claude Code
128
+
129
+ **User-scope** (available in all projects):
115
130
 
116
131
  ```bash
117
132
  claude mcp add -s user google -- npx -y google-tools-mcp
package/dist/setup.js CHANGED
@@ -382,7 +382,33 @@ export async function runSetup() {
382
382
  // ── Step 5: Install ──────────────────────────────────────────────────
383
383
  p.log.step(chalk.cyan.bold('Step 5') + chalk.dim(' · ') + 'Install MCP server');
384
384
 
385
+ const hasCodex = hasCli('codex');
385
386
  const hasClaude = hasCli('claude');
387
+ if (hasCodex) {
388
+ const install = await p.confirm({
389
+ message: 'Add to Codex as an MCP server?',
390
+ active: 'yes',
391
+ inactive: 'no',
392
+ initialValue: true,
393
+ });
394
+ if (p.isCancel(install)) cancelled();
395
+
396
+ if (install) {
397
+ const s = p.spinner();
398
+ s.start('Adding to Codex...');
399
+ try {
400
+ await runCommand('codex mcp add google -- npx -y google-tools-mcp');
401
+ s.stop('Added to Codex!');
402
+ } catch (err) {
403
+ s.stop('Failed to add automatically');
404
+ p.log.warn(`Error: ${err.message}`);
405
+ p.log.message(`Run manually:\n${chalk.cyan('codex mcp add google -- npx -y google-tools-mcp')}`);
406
+ }
407
+ } else {
408
+ p.log.message(`To add later:\n${chalk.cyan('codex mcp add google -- npx -y google-tools-mcp')}`);
409
+ }
410
+ }
411
+
386
412
  if (hasClaude) {
387
413
  const install = await p.confirm({
388
414
  message: 'Add to Claude Code as a user-scope MCP server?',
@@ -406,10 +432,15 @@ export async function runSetup() {
406
432
  } else {
407
433
  p.log.message(`To add later:\n${chalk.cyan('claude mcp add -s user google -- npx -y google-tools-mcp')}`);
408
434
  }
409
- } else {
435
+ }
436
+
437
+ if (!hasCodex && !hasClaude) {
410
438
  p.log.message([
411
439
  'Add to your MCP client:',
412
440
  '',
441
+ chalk.dim('Codex:'),
442
+ chalk.cyan(' codex mcp add google -- npx -y google-tools-mcp'),
443
+ '',
413
444
  chalk.dim('Claude Code:'),
414
445
  chalk.cyan(' claude mcp add -s user google -- npx -y google-tools-mcp'),
415
446
  '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "google-tools-mcp",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "description": "The easiest MCP server for Google Workspace — Drive, Docs, Sheets, Gmail, Calendar, and Forms. 153 tools with one-click browser auth. Read Word docs, PDFs, and spreadsheets straight from Drive.",
5
5
  "type": "module",
6
6
  "bin": {