gemini-cli-extensions / gemini-cli-extensions/mysql
MCP server not loading .env file from extension directory
Open
@dolphin1999 is already working on this.
Since Feb 3, 2026.
priority: p2
type: bug
- Dominant language
- No language data
- Stars
- 43
- Forks
- 3
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 1
Description
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:
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?
- Install MySQL MCP
- Configure it
- Load from variable is missing data from
.env
...
Additional Details
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.