gogcli-mcp-calendar 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
|
@@ -31902,16 +31902,17 @@ var failIfNotEmptyParam = external_exports.boolean().optional().describe(
|
|
|
31902
31902
|
);
|
|
31903
31903
|
|
|
31904
31904
|
// ../gogcli-mcp/src/server.ts
|
|
31905
|
-
var VERSION = true ? "2.
|
|
31905
|
+
var VERSION = true ? "2.20.0" : "0.0.0";
|
|
31906
31906
|
|
|
31907
31907
|
// ../gogcli-mcp/src/connector-runtime.ts
|
|
31908
31908
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
31909
31909
|
var DEADLINE_GRACE_MS = 5e3;
|
|
31910
31910
|
var RUNNER_GOG_FAILED = 422;
|
|
31911
31911
|
var RUNNER_DRAINING = 503;
|
|
31912
|
-
function makeFlyExecutor(endpoint, key) {
|
|
31912
|
+
function makeFlyExecutor(endpoint, key, readAccessToken) {
|
|
31913
31913
|
return async (args, opts) => {
|
|
31914
31914
|
const deadlineMs = (opts?.timeout ?? DEFAULT_TIMEOUT_MS) + DEADLINE_GRACE_MS;
|
|
31915
|
+
const accessToken = readAccessToken?.();
|
|
31915
31916
|
let res;
|
|
31916
31917
|
try {
|
|
31917
31918
|
res = await fetch(endpoint + "/run", {
|
|
@@ -31920,7 +31921,7 @@ function makeFlyExecutor(endpoint, key) {
|
|
|
31920
31921
|
Authorization: "Bearer " + key,
|
|
31921
31922
|
"Content-Type": "application/json"
|
|
31922
31923
|
},
|
|
31923
|
-
body: JSON.stringify({ args }),
|
|
31924
|
+
body: JSON.stringify(accessToken ? { args, accessToken } : { args }),
|
|
31924
31925
|
signal: AbortSignal.timeout(deadlineMs)
|
|
31925
31926
|
});
|
|
31926
31927
|
} catch (err) {
|
|
@@ -31961,7 +31962,9 @@ function useRemoteGogRunner(env = process.env) {
|
|
|
31961
31962
|
const endpoint = readEnvVar("GOG_RUNNER_URL", { env });
|
|
31962
31963
|
const key = readEnvVar("GOG_RUNNER_KEY", { env });
|
|
31963
31964
|
if (!endpoint || !key) return false;
|
|
31964
|
-
setDefaultGogExecutor(
|
|
31965
|
+
setDefaultGogExecutor(
|
|
31966
|
+
makeFlyExecutor(endpoint.replace(/\/+$/, ""), key, () => readEnvVar("GOG_ACCESS_TOKEN", { env }))
|
|
31967
|
+
);
|
|
31965
31968
|
return true;
|
|
31966
31969
|
}
|
|
31967
31970
|
|
package/manifest.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"manifest_version": "0.3",
|
|
4
4
|
"name": "gogcli-mcp-calendar",
|
|
5
5
|
"display_name": "gogcli (Calendar)",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.20.0",
|
|
7
7
|
"description": "Extended Google Calendar for Claude via gogcli — auth + Calendar events + Meet space management",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Chris Hall",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gogcli-mcp-calendar",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.0",
|
|
4
4
|
"mcpName": "io.github.chrischall/gogcli-mcp-calendar",
|
|
5
5
|
"description": "Extended Google Calendar + Meet MCP server via gogcli — auth + Calendar events + Meet space management",
|
|
6
6
|
"author": "Claude Code (AI) <https://www.anthropic.com/claude>",
|