Skip to content

Architectural Fragility: Environment variable loading in config.py #20

Description

@simonives

Currently, the configuration executes load_dotenv() in config.py:4 without specifying an absolute file path.

The Issue:
If an MCP client (such as Claude Desktop) launches the server from a different working directory, load_dotenv() fails to locate the local .env file. The server fails to load the RAINDROP_ACCESS_TOKEN and will crash when an LLM attempts to execute a tool.

Potential Interventions:

  1. Hardcode the Relative Path: Modify config.py to resolve the .env file explicitly relative to the __file__ constant.
  2. Architectural Standardisation: Abandon the .env file for production usage. Mandate in the documentation that users inject the token directly via their MCP client's configuration file (e.g., claude_desktop_config.json).

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