Skip to content

server-gdrive 'auth' command fails to find credentials #2291

Open
@QuantumTutor

Description

@QuantumTutor

Describe the bug
When running npx @modelcontextprotocol/server-gdrive auth, the command fails with a MODULE_NOT_FOUND error, as it cannot find gcp-oauth.keys.json.

Error Message
Error: Cannot find module '/Users/quantum_rt_server/.npm/_npx/901beb8b1a496dd2/node_modules/gcp-oauth.keys.json'
Require stack:

/Users/quantum_rt_server/.npm/_npx/901beb8b1a496dd2/node_modules/@google-cloud/local-auth/build/src/index.js

What I've Tried
The command fails even when credentials are provided using standard methods:

  1. Setting the GOOGLE_APPLICATION_CREDENTIALS environment variable. The command echo $GOOGLE_APPLICATION_CREDENTIALS confirms the variable is set correctly in my shell, but the tool still ignores it.
  2. Placing a valid gcp-oauth.keys.json file in the current working directory.
  3. Providing a direct path to the credentials file as a command-line argument.

Environment:

  • OS: macOS
  • Shell: zsh

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions