gogcli-mcp-contacts 2.19.1 → 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 +15 -5
- package/manifest.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31119,6 +31119,13 @@ function isGogFileArg(arg) {
|
|
|
31119
31119
|
return typeof arg !== "string";
|
|
31120
31120
|
}
|
|
31121
31121
|
var runExecutor = new AsyncLocalStorage();
|
|
31122
|
+
var defaultExecutor;
|
|
31123
|
+
function setDefaultGogExecutor(executor) {
|
|
31124
|
+
defaultExecutor = executor ? { executor } : void 0;
|
|
31125
|
+
}
|
|
31126
|
+
function activeExecutor() {
|
|
31127
|
+
return runExecutor.getStore() ?? defaultExecutor;
|
|
31128
|
+
}
|
|
31122
31129
|
var TIMEOUT_MS = 3e4;
|
|
31123
31130
|
function readonlyEnvEnabled() {
|
|
31124
31131
|
return readEnvVar("GOG_READONLY") !== void 0 && parseBoolEnv("GOG_READONLY", { default: true });
|
|
@@ -31279,7 +31286,7 @@ async function run(args, options = {}) {
|
|
|
31279
31286
|
const { account, spawner, interactive = false, timeout, readonly: readonly2 = false, redactMode = "full" } = options;
|
|
31280
31287
|
const redact = redactMode === "tokens" ? redactGoogleTokens : redactSecrets2;
|
|
31281
31288
|
const fullArgs = assembleArgs(args, { account, interactive, readonly: readonly2 });
|
|
31282
|
-
const store =
|
|
31289
|
+
const store = activeExecutor();
|
|
31283
31290
|
try {
|
|
31284
31291
|
let output;
|
|
31285
31292
|
if (spawner) {
|
|
@@ -31817,16 +31824,17 @@ var failIfNotEmptyParam = external_exports.boolean().optional().describe(
|
|
|
31817
31824
|
);
|
|
31818
31825
|
|
|
31819
31826
|
// ../gogcli-mcp/src/server.ts
|
|
31820
|
-
var VERSION = true ? "2.
|
|
31827
|
+
var VERSION = true ? "2.20.0" : "0.0.0";
|
|
31821
31828
|
|
|
31822
31829
|
// ../gogcli-mcp/src/connector-runtime.ts
|
|
31823
31830
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
31824
31831
|
var DEADLINE_GRACE_MS = 5e3;
|
|
31825
31832
|
var RUNNER_GOG_FAILED = 422;
|
|
31826
31833
|
var RUNNER_DRAINING = 503;
|
|
31827
|
-
function makeFlyExecutor(endpoint, key) {
|
|
31834
|
+
function makeFlyExecutor(endpoint, key, readAccessToken) {
|
|
31828
31835
|
return async (args, opts) => {
|
|
31829
31836
|
const deadlineMs = (opts?.timeout ?? DEFAULT_TIMEOUT_MS) + DEADLINE_GRACE_MS;
|
|
31837
|
+
const accessToken = readAccessToken?.();
|
|
31830
31838
|
let res;
|
|
31831
31839
|
try {
|
|
31832
31840
|
res = await fetch(endpoint + "/run", {
|
|
@@ -31835,7 +31843,7 @@ function makeFlyExecutor(endpoint, key) {
|
|
|
31835
31843
|
Authorization: "Bearer " + key,
|
|
31836
31844
|
"Content-Type": "application/json"
|
|
31837
31845
|
},
|
|
31838
|
-
body: JSON.stringify({ args }),
|
|
31846
|
+
body: JSON.stringify(accessToken ? { args, accessToken } : { args }),
|
|
31839
31847
|
signal: AbortSignal.timeout(deadlineMs)
|
|
31840
31848
|
});
|
|
31841
31849
|
} catch (err) {
|
|
@@ -31876,7 +31884,9 @@ function useRemoteGogRunner(env = process.env) {
|
|
|
31876
31884
|
const endpoint = readEnvVar("GOG_RUNNER_URL", { env });
|
|
31877
31885
|
const key = readEnvVar("GOG_RUNNER_KEY", { env });
|
|
31878
31886
|
if (!endpoint || !key) return false;
|
|
31879
|
-
|
|
31887
|
+
setDefaultGogExecutor(
|
|
31888
|
+
makeFlyExecutor(endpoint.replace(/\/+$/, ""), key, () => readEnvVar("GOG_ACCESS_TOKEN", { env }))
|
|
31889
|
+
);
|
|
31880
31890
|
return true;
|
|
31881
31891
|
}
|
|
31882
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.
|
|
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.
|
|
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>",
|