@kembec/gcal-mcp 0.1.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.
Files changed (2) hide show
  1. package/index.js +33 -0
  2. package/package.json +27 -0
package/index.js ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+ const { execFileSync } = require('child_process');
3
+
4
+ const PLATFORMS = {
5
+ 'darwin-arm64': '@kembec/gcal-mcp-darwin-arm64',
6
+ 'darwin-x64': '@kembec/gcal-mcp-darwin-x64',
7
+ 'linux-x64': '@kembec/gcal-mcp-linux-x64',
8
+ 'win32-x64': '@kembec/gcal-mcp-win32-x64',
9
+ };
10
+
11
+ const key = `${process.platform}-${process.arch}`;
12
+ const pkg = PLATFORMS[key];
13
+ if (!pkg) {
14
+ console.error(`gcal-mcp: unsupported platform ${key}`);
15
+ process.exit(1);
16
+ }
17
+
18
+ const binName = process.platform === 'win32' ? 'gcal-mcp.exe' : 'gcal-mcp';
19
+
20
+ let binPath;
21
+ try {
22
+ binPath = require.resolve(`${pkg}/bin/${binName}`);
23
+ } catch (e) {
24
+ console.error(`gcal-mcp: platform package ${pkg} is not installed.`);
25
+ console.error('Reinstall with `npm install @kembec/gcal-mcp` to pick the right binary.');
26
+ process.exit(1);
27
+ }
28
+
29
+ try {
30
+ execFileSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
31
+ } catch (e) {
32
+ process.exit(typeof e.status === 'number' ? e.status : 1);
33
+ }
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@kembec/gcal-mcp",
3
+ "version": "0.1.0",
4
+ "description": "MCP server for Google Calendar",
5
+ "bin": {
6
+ "gcal-mcp": "./index.js"
7
+ },
8
+ "main": "./index.js",
9
+ "files": [
10
+ "index.js",
11
+ "README.md"
12
+ ],
13
+ "optionalDependencies": {
14
+ "@kembec/gcal-mcp-darwin-arm64": "0.1.0",
15
+ "@kembec/gcal-mcp-darwin-x64": "0.1.0",
16
+ "@kembec/gcal-mcp-linux-x64": "0.1.0",
17
+ "@kembec/gcal-mcp-win32-x64": "0.1.0"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/Kembec/gcal-mcp.git"
22
+ },
23
+ "license": "MIT",
24
+ "engines": {
25
+ "node": ">=18"
26
+ }
27
+ }