The README assumes that the .env file will be automatically loaded by the application, which is a common practice in Node.js projects. Many Node.js projects use the dotenv library to load environment variables from a .env file, and it’s often set up in the entry point of the application (like index.ts). However, in this case:
Missing dotenv Setup in the Code:
The mcp-gdrive repository’s index.ts file (as seen in the compiled dist/index.js) does not include the import * as dotenv from 'dotenv'; dotenv.config(); lines. Without this, the .env file is never loaded, and process.env.GDRIVE_CREDS_DIR remains undefined.
The README doesn’t mention that you need to add this setup manually, likely because the author assumed it was already part of the codebase or that users would know to add it.