@dongtran/google-calendar-mcp 2.5.0 → 2.5.2

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 CHANGED
@@ -42,25 +42,30 @@ A Model Context Protocol (MCP) server that provides Google Calendar integration
42
42
 
43
43
  **Option 1: Use with npx (Recommended)**
44
44
 
45
- Add to your Claude Desktop configuration:
45
+ Add to your MCP client configuration:
46
+
47
+ **Claude Desktop (macOS)**: `~/Library/Application Support/Claude/claude_desktop_config.json`
48
+ **Claude Desktop (Windows)**: `%APPDATA%\Claude\claude_desktop_config.json`
49
+ **Antigravity**: `~/.gemini/antigravity/mcp_config.json`
46
50
 
47
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
48
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
49
51
  ```json
50
52
  {
51
53
  "mcpServers": {
52
54
  "google-calendar": {
53
55
  "command": "npx",
54
- "args": ["@cocal/google-calendar-mcp"],
56
+ "args": ["@dongtran/google-calendar-mcp"],
55
57
  "env": {
56
- "GOOGLE_OAUTH_CREDENTIALS": "/path/to/your/gcp-oauth.keys.json"
58
+ "GOOGLE_OAUTH_CREDENTIALS_JSON": "{\"installed\":{\"client_id\":\"YOUR_CLIENT_ID\",\"client_secret\":\"YOUR_CLIENT_SECRET\",\"redirect_uris\":[\"http://localhost\"]}}"
57
59
  }
58
60
  }
59
61
  }
60
62
  }
61
63
  ```
62
64
 
63
- **⚠️ Important Note for npx Users**: When using npx, you **must** specify the credentials file path using the `GOOGLE_OAUTH_CREDENTIALS` environment variable.
65
+ **Note**: Replace `YOUR_CLIENT_ID` and `YOUR_CLIENT_SECRET` with values from your downloaded OAuth credentials JSON file.
66
+
67
+ > [!TIP]
68
+ > For complete setup instructions including API enablement and test user configuration, see [SETUP.md](SETUP.md).
64
69
 
65
70
  **Option 2: Local Installation**
66
71
 
package/build/index.js CHANGED
@@ -5956,14 +5956,9 @@ var GoogleCalendarMcpServer = class {
5956
5956
  return;
5957
5957
  }
5958
5958
  }
5959
- if (this.config.transport.type === "stdio") {
5960
- throw new McpError5(
5961
- ErrorCode5.InvalidRequest,
5962
- "Authentication tokens are no longer valid. Please restart the server to re-authenticate."
5963
- );
5964
- }
5965
5959
  try {
5966
- const authSuccess = await this.authServer.start(false);
5960
+ const openBrowser = this.config.transport.type === "stdio";
5961
+ const authSuccess = await this.authServer.start(openBrowser);
5967
5962
  if (!authSuccess) {
5968
5963
  throw new McpError5(
5969
5964
  ErrorCode5.InvalidRequest,