google-mcp-suite 1.10.1 → 1.11.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/README.md +2 -1
- package/dist/suite/dispatch.d.ts +16 -0
- package/dist/suite/dispatch.d.ts.map +1 -0
- package/dist/suite/dispatch.js +32 -0
- package/dist/suite/dispatch.js.map +1 -0
- package/dist/suite/index.d.ts +3 -0
- package/dist/suite/index.d.ts.map +1 -0
- package/dist/suite/index.js +21 -0
- package/dist/suite/index.js.map +1 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ That is the whole surface. Read one operation folder and you understand all of t
|
|
|
58
58
|
- **Siloed by design.** Each service runs as its own independent server in its own lane; the orchestrating agent is the single thing that coordinates them.
|
|
59
59
|
- **Strict by construction.** Input and output schemas are validated on every call, vocabulary is sourced from Google's own docs, types are strict (NodeNext ESM, `verbatimModuleSyntax`, `noUncheckedIndexedAccess`), and coverage is pinned at 100% in `bunfig.toml`.
|
|
60
60
|
|
|
61
|
-
One package, one version: everything compiles into `google-mcp-suite`, which ships a bin per service (`google-mcp-gmail`, `google-mcp-calendar`, `google-mcp-sheets`, `google-mcp-docs`, and `google-mcp-drive` today) plus the `google-mcp-doctor` setup CLI.
|
|
61
|
+
One package, one version: everything compiles into `google-mcp-suite`, which ships a bin per service (`google-mcp-gmail`, `google-mcp-calendar`, `google-mcp-sheets`, `google-mcp-docs`, and `google-mcp-drive` today) plus the `google-mcp-doctor` setup CLI. A `google-mcp-suite` front-door bin dispatches to any of them (`npx google-mcp-suite gmail`), which is also what lets MCP registries launch the suite from its package name alone.
|
|
62
62
|
|
|
63
63
|
## MCP, and then some
|
|
64
64
|
|
|
@@ -135,6 +135,7 @@ Then ask your agent for something no single-account tool can do:
|
|
|
135
135
|
src/
|
|
136
136
|
auth/ # shared OAuth: one client secret, per-account tokens
|
|
137
137
|
lib/ # the two MCP primitives: operation() + server()
|
|
138
|
+
suite/ # google-mcp-suite: the front-door bin; dispatches to a service or doctor
|
|
138
139
|
doctor/ # google-mcp-doctor: provisioning + auth-health CLI
|
|
139
140
|
gmail/ # the Gmail server (reference/canary); new services mirror its shape
|
|
140
141
|
calendar/ # the Calendar server; same shape
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The suite's front door: one bin named after the package, so `npx google-mcp-suite
|
|
3
|
+
* <service>` works. Registry-fed MCP clients construct exactly `npx <package>` from a
|
|
4
|
+
* server.json entry, and npx can only run a bin whose name matches the package, so the
|
|
5
|
+
* package name must be runnable; the service argument is what lets one registry entry
|
|
6
|
+
* cover every server in the suite. The suite knows the services; no service imports it.
|
|
7
|
+
*/
|
|
8
|
+
export declare const services: readonly ["gmail", "calendar", "drive", "docs", "sheets"];
|
|
9
|
+
/**
|
|
10
|
+
* The module specifier to import for a dispatchable name, or undefined. Specifiers
|
|
11
|
+
* resolve against the importing module, so they are only correct from inside this
|
|
12
|
+
* directory (index.ts is a sibling); the drift test pins each one to its bin's target.
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolve(name: string): string | undefined;
|
|
15
|
+
export declare const usage: string;
|
|
16
|
+
//# sourceMappingURL=dispatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../src/suite/dispatch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,2DAA4D,CAAC;AAQlF;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAExD;AAED,eAAO,MAAM,KAAK,QASkD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The suite's front door: one bin named after the package, so `npx google-mcp-suite
|
|
3
|
+
* <service>` works. Registry-fed MCP clients construct exactly `npx <package>` from a
|
|
4
|
+
* server.json entry, and npx can only run a bin whose name matches the package, so the
|
|
5
|
+
* package name must be runnable; the service argument is what lets one registry entry
|
|
6
|
+
* cover every server in the suite. The suite knows the services; no service imports it.
|
|
7
|
+
*/
|
|
8
|
+
export const services = ['gmail', 'calendar', 'drive', 'docs', 'sheets'];
|
|
9
|
+
// A Map, not an object literal: lookup must miss on inherited keys ('constructor').
|
|
10
|
+
const entries = new Map([
|
|
11
|
+
...services.map((service) => [service, `../${service}/index.js`]),
|
|
12
|
+
['doctor', '../doctor/index.js'],
|
|
13
|
+
]);
|
|
14
|
+
/**
|
|
15
|
+
* The module specifier to import for a dispatchable name, or undefined. Specifiers
|
|
16
|
+
* resolve against the importing module, so they are only correct from inside this
|
|
17
|
+
* directory (index.ts is a sibling); the drift test pins each one to its bin's target.
|
|
18
|
+
*/
|
|
19
|
+
export function resolve(name) {
|
|
20
|
+
return entries.get(name);
|
|
21
|
+
}
|
|
22
|
+
export const usage = `google-mcp-suite: per-account Google MCP servers, one process per service
|
|
23
|
+
|
|
24
|
+
Usage:
|
|
25
|
+
google-mcp-suite <service> start a server on stdio (${services.join(', ')})
|
|
26
|
+
google-mcp-suite doctor [...] provisioning + auth health (same as google-mcp-doctor)
|
|
27
|
+
google-mcp-suite help
|
|
28
|
+
|
|
29
|
+
The account is chosen by the GOOGLE_MCP_ACCOUNT environment variable; run one
|
|
30
|
+
instance per service per account. Each server also ships as its own bin
|
|
31
|
+
(${services.map((service) => `google-mcp-${service}`).join(', ')}).`;
|
|
32
|
+
//# sourceMappingURL=dispatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatch.js","sourceRoot":"","sources":["../../src/suite/dispatch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC;AAElF,oFAAoF;AACpF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAiB;IACtC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,OAAO,WAAW,CAAU,CAAC;IAC1E,CAAC,QAAQ,EAAE,oBAAoB,CAAC;CACjC,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAAG;;;2DAGsC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;;;;;;GAM3E,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,cAAc,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC","sourcesContent":["/**\n * The suite's front door: one bin named after the package, so `npx google-mcp-suite\n * <service>` works. Registry-fed MCP clients construct exactly `npx <package>` from a\n * server.json entry, and npx can only run a bin whose name matches the package, so the\n * package name must be runnable; the service argument is what lets one registry entry\n * cover every server in the suite. The suite knows the services; no service imports it.\n */\nexport const services = ['gmail', 'calendar', 'drive', 'docs', 'sheets'] as const;\n\n// A Map, not an object literal: lookup must miss on inherited keys ('constructor').\nconst entries = new Map<string, string>([\n ...services.map((service) => [service, `../${service}/index.js`] as const),\n ['doctor', '../doctor/index.js'],\n]);\n\n/**\n * The module specifier to import for a dispatchable name, or undefined. Specifiers\n * resolve against the importing module, so they are only correct from inside this\n * directory (index.ts is a sibling); the drift test pins each one to its bin's target.\n */\nexport function resolve(name: string): string | undefined {\n return entries.get(name);\n}\n\nexport const usage = `google-mcp-suite: per-account Google MCP servers, one process per service\n\nUsage:\n google-mcp-suite <service> start a server on stdio (${services.join(', ')})\n google-mcp-suite doctor [...] provisioning + auth health (same as google-mcp-doctor)\n google-mcp-suite help\n\nThe account is chosen by the GOOGLE_MCP_ACCOUNT environment variable; run one\ninstance per service per account. Each server also ships as its own bin\n(${services.map((service) => `google-mcp-${service}`).join(', ')}).`;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/suite/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { resolve, usage } from './dispatch.js';
|
|
3
|
+
const [name] = process.argv.slice(2);
|
|
4
|
+
if (name === 'help' || name === '--help' || name === '-h') {
|
|
5
|
+
console.log(usage);
|
|
6
|
+
process.exit(0);
|
|
7
|
+
}
|
|
8
|
+
if (name === undefined) {
|
|
9
|
+
console.error(usage);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
12
|
+
const entry = resolve(name);
|
|
13
|
+
if (entry === undefined) {
|
|
14
|
+
// JSON.stringify escapes control bytes, so hostile argv cannot reach a rendering terminal.
|
|
15
|
+
console.error(`Unknown service: ${JSON.stringify(name)}\n\n${usage}`);
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|
|
18
|
+
// Drop the dispatch token so a dispatched CLI (doctor) reads its own arguments.
|
|
19
|
+
process.argv.splice(2, 1);
|
|
20
|
+
await import(entry);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/suite/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAErC,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;IAC1D,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AACD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;IACvB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAC5B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;IACxB,2FAA2F;IAC3F,OAAO,CAAC,KAAK,CAAC,oBAAoB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,KAAK,EAAE,CAAC,CAAC;IACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,gFAAgF;AAChF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC1B,MAAM,MAAM,CAAC,KAAK,CAAC,CAAC","sourcesContent":["#!/usr/bin/env node\nimport { resolve, usage } from './dispatch.js';\n\nconst [name] = process.argv.slice(2);\n\nif (name === 'help' || name === '--help' || name === '-h') {\n console.log(usage);\n process.exit(0);\n}\nif (name === undefined) {\n console.error(usage);\n process.exit(1);\n}\n\nconst entry = resolve(name);\nif (entry === undefined) {\n // JSON.stringify escapes control bytes, so hostile argv cannot reach a rendering terminal.\n console.error(`Unknown service: ${JSON.stringify(name)}\\n\\n${usage}`);\n process.exit(1);\n}\n\n// Drop the dispatch token so a dispatched CLI (doctor) reads its own arguments.\nprocess.argv.splice(2, 1);\nawait import(entry);\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "google-mcp-suite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Google Workspace MCP servers for AI agents, one per service per account: Gmail, Google Calendar, Google Drive, Google Docs, and Google Sheets. Identity is bound to the running instance, so an agent (Claude, Cursor, or any MCP client) can never act on the wrong account; each server exposes Google's curated MCP toolset (where one exists) plus the broader REST surface.",
|
|
6
6
|
"keywords": [
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"url": "https://github.com/simiancraft/google-mcp-suite/issues"
|
|
42
42
|
},
|
|
43
43
|
"bin": {
|
|
44
|
+
"google-mcp-suite": "./dist/suite/index.js",
|
|
44
45
|
"google-mcp-gmail": "./dist/gmail/index.js",
|
|
45
46
|
"google-mcp-calendar": "./dist/calendar/index.js",
|
|
46
47
|
"google-mcp-sheets": "./dist/sheets/index.js",
|