gogcli-mcp-gmail 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 +7 -4
- package/manifest.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31837,16 +31837,17 @@ var failIfNotEmptyParam = external_exports.boolean().optional().describe(
|
|
|
31837
31837
|
);
|
|
31838
31838
|
|
|
31839
31839
|
// ../gogcli-mcp/src/server.ts
|
|
31840
|
-
var VERSION = true ? "2.
|
|
31840
|
+
var VERSION = true ? "2.20.0" : "0.0.0";
|
|
31841
31841
|
|
|
31842
31842
|
// ../gogcli-mcp/src/connector-runtime.ts
|
|
31843
31843
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
31844
31844
|
var DEADLINE_GRACE_MS = 5e3;
|
|
31845
31845
|
var RUNNER_GOG_FAILED = 422;
|
|
31846
31846
|
var RUNNER_DRAINING = 503;
|
|
31847
|
-
function makeFlyExecutor(endpoint, key) {
|
|
31847
|
+
function makeFlyExecutor(endpoint, key, readAccessToken) {
|
|
31848
31848
|
return async (args, opts) => {
|
|
31849
31849
|
const deadlineMs = (opts?.timeout ?? DEFAULT_TIMEOUT_MS) + DEADLINE_GRACE_MS;
|
|
31850
|
+
const accessToken = readAccessToken?.();
|
|
31850
31851
|
let res;
|
|
31851
31852
|
try {
|
|
31852
31853
|
res = await fetch(endpoint + "/run", {
|
|
@@ -31855,7 +31856,7 @@ function makeFlyExecutor(endpoint, key) {
|
|
|
31855
31856
|
Authorization: "Bearer " + key,
|
|
31856
31857
|
"Content-Type": "application/json"
|
|
31857
31858
|
},
|
|
31858
|
-
body: JSON.stringify({ args }),
|
|
31859
|
+
body: JSON.stringify(accessToken ? { args, accessToken } : { args }),
|
|
31859
31860
|
signal: AbortSignal.timeout(deadlineMs)
|
|
31860
31861
|
});
|
|
31861
31862
|
} catch (err) {
|
|
@@ -31896,7 +31897,9 @@ function useRemoteGogRunner(env = process.env) {
|
|
|
31896
31897
|
const endpoint = readEnvVar("GOG_RUNNER_URL", { env });
|
|
31897
31898
|
const key = readEnvVar("GOG_RUNNER_KEY", { env });
|
|
31898
31899
|
if (!endpoint || !key) return false;
|
|
31899
|
-
setDefaultGogExecutor(
|
|
31900
|
+
setDefaultGogExecutor(
|
|
31901
|
+
makeFlyExecutor(endpoint.replace(/\/+$/, ""), key, () => readEnvVar("GOG_ACCESS_TOKEN", { env }))
|
|
31902
|
+
);
|
|
31900
31903
|
return true;
|
|
31901
31904
|
}
|
|
31902
31905
|
|
package/manifest.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"manifest_version": "0.3",
|
|
4
4
|
"name": "gogcli-mcp-gmail",
|
|
5
5
|
"display_name": "gogcli (Gmail)",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.20.0",
|
|
7
7
|
"description": "Extended Gmail for Claude via gogcli — auth + full Gmail support (threads, labels, drafts, attachments, forward, autoreply, bulk operations)",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Chris Hall",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gogcli-mcp-gmail",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.0",
|
|
4
4
|
"mcpName": "io.github.chrischall/gogcli-mcp-gmail",
|
|
5
5
|
"description": "Extended Gmail MCP server via gogcli — auth + full Gmail support (threads, labels, drafts, attachments, forward, autoreply, bulk operations)",
|
|
6
6
|
"author": "Claude Code (AI) <https://www.anthropic.com/claude>",
|