gogcli-mcp-contacts 2.19.2 → 2.20.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/dist/index.js CHANGED
@@ -31824,16 +31824,17 @@ var failIfNotEmptyParam = external_exports.boolean().optional().describe(
31824
31824
  );
31825
31825
 
31826
31826
  // ../gogcli-mcp/src/server.ts
31827
- var VERSION = true ? "2.19.2" : "0.0.0";
31827
+ var VERSION = true ? "2.20.0" : "0.0.0";
31828
31828
 
31829
31829
  // ../gogcli-mcp/src/connector-runtime.ts
31830
31830
  var DEFAULT_TIMEOUT_MS = 3e4;
31831
31831
  var DEADLINE_GRACE_MS = 5e3;
31832
31832
  var RUNNER_GOG_FAILED = 422;
31833
31833
  var RUNNER_DRAINING = 503;
31834
- function makeFlyExecutor(endpoint, key) {
31834
+ function makeFlyExecutor(endpoint, key, readAccessToken) {
31835
31835
  return async (args, opts) => {
31836
31836
  const deadlineMs = (opts?.timeout ?? DEFAULT_TIMEOUT_MS) + DEADLINE_GRACE_MS;
31837
+ const accessToken = readAccessToken?.();
31837
31838
  let res;
31838
31839
  try {
31839
31840
  res = await fetch(endpoint + "/run", {
@@ -31842,7 +31843,7 @@ function makeFlyExecutor(endpoint, key) {
31842
31843
  Authorization: "Bearer " + key,
31843
31844
  "Content-Type": "application/json"
31844
31845
  },
31845
- body: JSON.stringify({ args }),
31846
+ body: JSON.stringify(accessToken ? { args, accessToken } : { args }),
31846
31847
  signal: AbortSignal.timeout(deadlineMs)
31847
31848
  });
31848
31849
  } catch (err) {
@@ -31883,7 +31884,9 @@ function useRemoteGogRunner(env = process.env) {
31883
31884
  const endpoint = readEnvVar("GOG_RUNNER_URL", { env });
31884
31885
  const key = readEnvVar("GOG_RUNNER_KEY", { env });
31885
31886
  if (!endpoint || !key) return false;
31886
- setDefaultGogExecutor(makeFlyExecutor(endpoint.replace(/\/+$/, ""), key));
31887
+ setDefaultGogExecutor(
31888
+ makeFlyExecutor(endpoint.replace(/\/+$/, ""), key, () => readEnvVar("GOG_ACCESS_TOKEN", { env }))
31889
+ );
31887
31890
  return true;
31888
31891
  }
31889
31892
 
package/manifest.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifest_version": "0.3",
4
4
  "name": "gogcli-mcp-contacts",
5
5
  "display_name": "gogcli (Contacts)",
6
- "version": "2.19.2",
6
+ "version": "2.20.0",
7
7
  "description": "Extended Google Contacts for Claude via gogcli — auth + Contacts + Workspace directory (People API)",
8
8
  "author": {
9
9
  "name": "Chris Hall",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gogcli-mcp-contacts",
3
- "version": "2.19.2",
3
+ "version": "2.20.0",
4
4
  "mcpName": "io.github.chrischall/gogcli-mcp-contacts",
5
5
  "description": "Extended Google Contacts + People MCP server via gogcli — auth + Contacts + Workspace directory (People API)",
6
6
  "author": "Claude Code (AI) <https://www.anthropic.com/claude>",