Skip to content

Fix Node.js v25 compatibility by updating Google API dependencies#43

Closed
edgycoder-ph wants to merge 1 commit intoa-bonus:mainfrom
edgycoder-ph:fix/node-v25-compatibility
Closed

Fix Node.js v25 compatibility by updating Google API dependencies#43
edgycoder-ph wants to merge 1 commit intoa-bonus:mainfrom
edgycoder-ph:fix/node-v25-compatibility

Conversation

@edgycoder-ph
Copy link
Copy Markdown

Summary

Updates google-auth-library and googleapis to versions compatible with Node.js v25, which removed the deprecated SlowBuffer API.

Problem

When running this MCP server with Node.js v25+, the server crashes on startup with:

TypeError: Cannot read properties of undefined (reading 'prototype')
at buffer-equal-constant-time/index.js:37

This occurs because google-auth-library@9.15.1 has a dependency chain that uses the deprecated SlowBuffer API, which was removed in Node.js v25.

Changes

  • Update google-auth-library: 9.15.1 → 10.5.0
  • Update googleapis: 148.0.0 → 171.4.0

Testing

  • ✅ Builds successfully with TypeScript strict mode enabled
  • ✅ All MCP tools function correctly (tested readGoogleDoc, getRecentGoogleDocs)
  • ✅ No breaking changes to existing functionality
  • Tested with Node.js v25.5.0 on macOS

Additional Notes

The dependency updates resolve the compatibility issue without requiring any code changes. All existing functionality is preserved.

Updates google-auth-library and googleapis to versions compatible with
Node.js v25, which removed the deprecated SlowBuffer API.

Changes:
- Update google-auth-library: 9.15.1 → 10.5.0
- Update googleapis: 148.0.0 → 171.4.0

The older google-auth-library version (9.15.1) had a dependency chain
that used the SlowBuffer API, which was removed in Node.js v25. This
caused a "Cannot read properties of undefined (reading 'prototype')"
error when running the MCP server with Node v25+.

These dependency updates resolve the compatibility issue while
maintaining all existing functionality and passing strict TypeScript
compilation.

Tested with Node.js v25.5.0 on macOS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants