Skip to content

MCP server not loading .env file from extension directory #73

@shivapoudel

Description

@shivapoudel

Pre-reqs

  • I've searched the current open issues
  • I've updated to the latest versions

Extension Version

0.1.4

Gemini CLI Version

0.26.0

Environment

Darwin Shivas-MacBook-Pro.local 25.2.0 Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:45 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6030 arm64

Current Behavior

Although settings says its loaded from .env it is not loading. See screenshot:
Image

If I export variables in .zshrc then it works

export MYSQL_HOST="localhost"
export MYSQL_PORT=10024
export MYSQL_USER=root
export MYSQL_PASSWORD=xxxx
export MYSQL_DATABASE=local

Expected Behavior

Load from .env although configuration saves data.

Steps to reproduce?

  1. Install MySQL MCP
  2. Configure it
  3. Load from variable is missing data from .env
    ...

Additional Details

No response

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions