mcp-google-api 0.22.0 → 0.22.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.22.1](https://github.com/Ogekuri/mcp-google-api/compare/v0.22.0..v0.22.1) - 2026-11-06
4
+ ### 🐛 Bug Fixes
5
+ - report skipped server-start dispatch with build remediation [useReq] *(cli)*
6
+ - Root cause of the persistent pi 'MCP connection closed' after the 0.21.0 rename:
7
+ - the REQ-114 launcher 'npx -y mcp-google-api start --stdio' resolves a same-name
8
+ - local project in the spawn cwd, launching a stale pre-rename dist artifact that
9
+ - skips dispatch and exits 0 silently (reproduced: exit 0, zero stdout bytes).
10
+ - Add describeUndispatchedServerStart() and handleUndispatchedEntry() to the CLI
11
+ - entry gate: server-start-shaped argv that matches no gate rule now emits a JSON
12
+ - build-remediation diagnostic on stderr (REQ-094) and exits 1; stdout stays
13
+ - JSON-RPC-clean (CTN-003); non-server-start argv keeps the silent exit-0 no-op.
14
+ - Extend tests/cliEntryGate.unit.test.ts with failing-first reproducers (3 tests);
15
+ - full suite 132/132 green; typecheck, static checks, and build clean.
16
+ - Document the stale-artifact remediation in docs/CONFIGURATION.md; update
17
+ - WORKFLOW.md TRACE-A/EDGE-06 and regenerate REFERENCES.md.
18
+
3
19
  ## [0.22.0](https://github.com/Ogekuri/mcp-google-api/compare/v0.21.0..v0.22.0) - 2026-11-06
4
20
  ### 🐛 Bug Fixes
5
21
  - symlink-aware main-module gate restores CLI dispatch [useReq] *(cli)*
@@ -393,6 +409,7 @@
393
409
  - \[0.20.0\]: https://github.com/Ogekuri/mcp-google-api/releases/tag/v0.20.0
394
410
  - \[0.21.0\]: https://github.com/Ogekuri/mcp-google-api/releases/tag/v0.21.0
395
411
  - \[0.22.0\]: https://github.com/Ogekuri/mcp-google-api/releases/tag/v0.22.0
412
+ - \[0.22.1\]: https://github.com/Ogekuri/mcp-google-api/releases/tag/v0.22.1
396
413
 
397
414
  [0.2.0]: https://github.com/Ogekuri/mcp-google-api/releases/tag/v0.2.0
398
415
  [0.3.0]: https://github.com/Ogekuri/mcp-google-api/compare/v0.2.0..v0.3.0
@@ -414,3 +431,4 @@
414
431
  [0.20.0]: https://github.com/Ogekuri/mcp-google-api/compare/v0.19.0..v0.20.0
415
432
  [0.21.0]: https://github.com/Ogekuri/mcp-google-api/compare/v0.20.0..v0.21.0
416
433
  [0.22.0]: https://github.com/Ogekuri/mcp-google-api/compare/v0.21.0..v0.22.0
434
+ [0.22.1]: https://github.com/Ogekuri/mcp-google-api/compare/v0.22.0..v0.22.1
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  > * **No Support or Feature Requests:** please **do not** open issues, bug reports, or feature requests. They will not be addressed or accepted at this stage.
11
11
  > * **No Warranty:** this software is provided **"AS IS"**, without warranty of any kind, express or implied. Use it strictly for testing and evaluation purposes at your own sole risk.
12
12
 
13
- # mcp-google-api / MCP Google API server (0.22.0)
13
+ # mcp-google-api / MCP Google API server (0.22.1)
14
14
 
15
15
  <p align="center">
16
16
  <img src="https://img.shields.io/badge/node-%3E%3D24-339933?style=flat-square&logo=nodedotjs&logoColor=white" alt="Node.js >= 24">
package/dist/cli.d.ts CHANGED
@@ -141,5 +141,11 @@ declare function runShowCommand(options: {
141
141
  resourcesRoot: string;
142
142
  streams?: ExecStreams;
143
143
  }): number;
144
+ declare function describeUndispatchedServerStart(args: readonly string[]): string | undefined;
145
+ declare function handleUndispatchedEntry(args: readonly string[], streams?: {
146
+ stderr: {
147
+ write: (text: string) => unknown;
148
+ };
149
+ }): number;
144
150
 
145
- export { DOCTOR_PROBES, type DoctorCheck, type DoctorLiveProbe, type DoctorOptions, type DoctorProbeId, type DoctorProbesParseResult, type DoctorReport, EXEC_TOOLS, type ServerStartupOutcome, type ShutdownExitHook, createShutdownHandler, execTool, installShutdownHandlers, parseDoctorProbes, runApiKeyCommand, runAutoUpdateCommand, runDoctor, runEnableDisableCliCommand, runExecCommand, runHostCommand, runInstallUninstallCommand, runPortCommand, runShowCommand, runSnippetCommand, runToolsCommand, startServer };
151
+ export { DOCTOR_PROBES, type DoctorCheck, type DoctorLiveProbe, type DoctorOptions, type DoctorProbeId, type DoctorProbesParseResult, type DoctorReport, EXEC_TOOLS, type ServerStartupOutcome, type ShutdownExitHook, createShutdownHandler, describeUndispatchedServerStart, execTool, handleUndispatchedEntry, installShutdownHandlers, parseDoctorProbes, runApiKeyCommand, runAutoUpdateCommand, runDoctor, runEnableDisableCliCommand, runExecCommand, runHostCommand, runInstallUninstallCommand, runPortCommand, runShowCommand, runSnippetCommand, runToolsCommand, startServer };
package/dist/cli.js CHANGED
@@ -3112,6 +3112,32 @@ function isEntryMainModule() {
3112
3112
  return false;
3113
3113
  }
3114
3114
  }
3115
+ function describeUndispatchedServerStart(args) {
3116
+ const isServerStart = (args.includes("start") || args.includes("run")) && args.includes("--stdio");
3117
+ if (!isServerStart) {
3118
+ return void 0;
3119
+ }
3120
+ return "CLI dispatch was skipped for this server-start launch: the running artifact is not the mcp-google-api entrypoint (stale build after a distribution rename). Rebuild the local artifact with 'npm run build' (or 'npm run verify'), or refresh the global installation with 'npm install -g mcp-google-api@latest', then reconnect the MCP client.";
3121
+ }
3122
+ function handleUndispatchedEntry(args, streams = process) {
3123
+ const error = describeUndispatchedServerStart(args);
3124
+ if (error === void 0) {
3125
+ return 0;
3126
+ }
3127
+ streams.stderr.write(
3128
+ JSON.stringify(
3129
+ {
3130
+ error,
3131
+ requestedEntry: process.argv[1] ?? null,
3132
+ modulePath: fileURLToPath(import.meta.url),
3133
+ remediation: ["npm run build", "npm install -g mcp-google-api@latest"]
3134
+ },
3135
+ null,
3136
+ 2
3137
+ ) + "\n"
3138
+ );
3139
+ return 1;
3140
+ }
3115
3141
  var isRunDirectly = process.argv[1] && (process.argv[1].endsWith("cli.ts") || process.argv[1].endsWith("cli.js") || process.argv[1].endsWith("mcp-google-api") || process.argv[1].includes("mcp-google-api"));
3116
3142
  var isMainModule = isEntryMainModule();
3117
3143
  if (isRunDirectly || isMainModule) {
@@ -3605,12 +3631,16 @@ Usage: mcp-google-api <command> [options]
3605
3631
  ).help();
3606
3632
  cli.parse();
3607
3633
  }
3634
+ } else {
3635
+ process.exitCode = handleUndispatchedEntry(process.argv.slice(2));
3608
3636
  }
3609
3637
  export {
3610
3638
  DOCTOR_PROBES,
3611
3639
  EXEC_TOOLS,
3612
3640
  createShutdownHandler,
3641
+ describeUndispatchedServerStart,
3613
3642
  execTool,
3643
+ handleUndispatchedEntry,
3614
3644
  installShutdownHandlers,
3615
3645
  parseDoctorProbes,
3616
3646
  runApiKeyCommand,