gemini-cli-extensions / gemini-cli-extensions/mysql

MCP server not loading .env file from extension directory

Open
#73 21 comments 0 reactions 1 assignee View on GitHub

@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:
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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.