Skip to content

dotenv Instructions Missing From Readme .env file does nothing without adding code to /dist/index.js #5

@Superbonbon1

Description

@Superbonbon1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions